在线时间27 小时
UID149166
注册时间2015-11-6
NXP金币0
该用户从未签到
中级会员
- 积分
- 230
- 最后登录
- 2023-12-19
|
我把以下程序的存放位置修改了以下,放到ROM_0C00,修改之前是ROM_C000,结果程序不运行了,这2个块都属于非分页flash,这里是为啥
_PRESTART, /* Used in HIWARE format: jump to _Startup at the code start */
STARTUP, /* startup data structures */
ROM_VAR, /* constant variables */
STRINGS, /* string literals */
VIRTUAL_TABLE_SEGMENT, /* C++ virtual table segment */
//.ostext, /* OSEK */
NON_BANKED, /* runtime routines which must not be banked */
COPY /* copy down information: how to initialize variables */
/* in case you want to use ROM_4000 here as well, make sure
that all files (incl. library files) are compiled with the
option: -OnB=b */
INTO ROM_0C00;//*, ROM_0C00, ROM_4000*/(默认是ROM_C000)
/* non-paged FLASHs */
ROM_0C00 = READ_ONLY 0x0C00 TO 0x2FFF;// //
ROM_4000 = READ_ONLY 0x4000 TO 0x7FFF;
ROM_C000 = READ_ONLY 0xC400 TO 0xFEFF;//0xC000 TO 0xFEFF;
FLASH_To_RAM_CODE = READ_ONLY 0xC000 TO 0xC3FF RELOCATE_TO 0x3C00;//手动添加。2022-11-21 14:20:58
|
|