向各位大牛请教下:
修改工程下链接文件的FLASH地址为非零,在IAR的DEBUG下,用同一个程序仿真测试不正常。
步骤如下:
修改工程下链接文件的地址从0x2000开始,用的单片机是LUM1138(64KB),程序大小小于40KB
我的链接文件如小
define memory mem with size = 4G;
define region FLASH = mem:[from 0x00002000 to 0x0003ffff];
define region SRAM = mem:[from 0x20000000 to 0x2000ffff];
define block HEAP with alignment = 8, size = 0x00000000 { };
initialize by copy { readwrite };
do not initialize { section .noinit };
place at start of FLASH { readonly section .intvec };
place in FLASH { readonly };
place in SRAM { readwrite, block HEAP };
[
本帖最后由 wbqq2008 于 2011-11-24 15:56 编辑 ]
此帖出自
小平头技术问答
一周热门 更多>