注册/登录
论坛 > S08&DSC
发帖|
看2046|回1|收藏
tao180539 看全部
2022-11-24 11:25:29
我把以下程序的存放位置修改了以下,放到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   


附件列表
非分页flash.png (2022-11-24 11:22 上传)

原图尺寸 159.46 KB, 下载次数: 220

非分页flash.png

yang1501639860 看全部
2024-4-17 16:04:31
你好,我也遇到这种问题了,往0C00地址写东西写不进去,请问怎么解决的?

恩智浦技术社区

Powered by Discuz! X3.4

首页|标准版|触屏版|电脑版