查看: 3604|回复: 1

[其他] 求助有关OSEK 的问题 万分感谢 万分感谢

[复制链接]

该用户从未签到

2

主题

2

帖子

0

新手上路

Rank: 1

积分
7
最后登录
1970-1-1
发表于 2010-8-23 12:48:11 | 显示全部楼层 |阅读模式
 
我用的单片机是 MPC565 现在用 CW6.6 编译 OSEK
编译正常 烧写也没问题 程序运行都正常 但就是拔掉仿真器 重新上电 程序就不运行了 (我是烧到内部FLASH)
我感觉应该是 程序初始化 映射地址的那个文件有问题 、
但怎么改也没有效果
还请各位 帮帮忙 非常感谢
下面是 我说的那个文件 MPC565.lcf
MEMORY
{
 flash1: org = 0x00000000, len = 0x17fff
    extTab: org = 0x003f8000, len = 0x180     /* External Interrupt Relocation */
                                              /* Table should be placed on the */
                                              /* address aliquot 0x800 */
    intram1: org = 0x3f8200,  len = 0x2600
    intram2: org = 0x3fB000,  len = 0x4000
}
FORCEACTIVE { _OsOrtiStart _OsOrtiStackStart OsBuildNumber}
FORCEFILES { vectormpc.o }
SECTIONS
{
        /* The first group contains code and constant data */
 GROUP : {
  .vects  : {}
             /* First take all code from all objects and libraries */
  .ostext (TEXT)   : {cfg.o os.o ostsk.o osisr.o osalm.o osctr.o osres.o osevt.o osmsg.o ossch.o osset.o ostrg.o}
      /* Next take all CONST data */
  .osrodata (CONST) : {cfg.o os.o ostsk.o osisr.o osalm.o osctr.o osres.o osevt.o osmsg.o ossch.o osset.o ostrg.o}
  
         /* First take all code from all objects and libraries */
  .text (TEXT)   : {
   *(.text) *(.rodata) *(.rdata) *(.init) *(.fini)
  }
  /* Next take all small CONST data */
  .sdata2 (DATA) : {}
  .rodata (CONST) : {}
        extab (CONST) : {}
        .dtors (CONST) : {}
        .ctors (CONST) : {}
        extabindex (CONST) : {}
       
 } > flash1
        /* The second group will allocate space for the initialized data
         * (.data/.sdata) and the unititialized data (.bss/.sbss) in the "ram" section.
         */
 GROUP : {
  .data (DATA) : {}
  /* .sdata contains small address data */
  .sdata (DATA) : {}
                /* This will allocate the the .bss symbols */
  .sbss (BSS) : {}
  .bss  (BSS) : {}
                /* Any space left over will be used as a heap */
 } >intram1
  /* .vects contains vector table */
    GROUP : {
        /* .extTab contains the External Interrupt Relocation Table for */
        /* the Enhanced Interrupt Dispatcher */
        .extTable (DATA) : {}
    } >extTab  
}
_heap_addr  = _e_bss;
_heap_end   = ADDR(intram1)+SIZEOF(intram1);
_stack_end  = ADDR(intram2);
_stack_addr = ADDR(intram2)+SIZEOF(intram2);

我感觉就应该是这个文件的问题
谢谢大家 万分感谢
我知道答案 目前已有0人回答
回复

使用道具 举报

该用户从未签到

0

主题

23

帖子

0

新手上路

Rank: 1

积分
14
最后登录
1970-1-1
发表于 2011-4-19 10:48:27 | 显示全部楼层

RE:求助有关OSEK 的问题 万分感谢 万分感谢

路过。。。。
您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条

Archiver|手机版|小黑屋|恩智浦技术社区

GMT+8, 2025-7-24 04:17 , Processed in 0.081390 second(s), 22 queries , MemCache On.

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.

快速回复 返回顶部 返回列表