const unsigned char DATAF[4092] __attribute__((at(0x0001f000))) ={1,2,3,4,5} ;
const unsigned char LDROM[4092] __attribute__((at(0x00100000))) ={1,2,3,4,5,6,7,8,9,10} ;
const unsigned int CONFIG0 __attribute__((at(0x00300000))) = 0xF8BFFF7C;
const unsigned int CONFIG1 __attribute__((at(0x00300000))) = 0x00005000; 在FLASH空间我是那么定义的,但是在SRAM空间,我觉得去掉const 及给确定地址就好了。至于防止初始化,要看看启动代码,不做相应的清零就好了吧。启动代码我好像没有找到清零部分。有研究过的,请指点。
|