在线时间0 小时
UID114328
注册时间2009-3-7
NXP金币0
该用户从未签到
新手上路

- 积分
- 7
- 最后登录
- 1970-1-1
|
我用的单片机是 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);
我感觉就应该是这个文件的问题
谢谢大家 万分感谢
|
|