在线时间1 小时
UID423748
注册时间2013-3-28
NXP金币0
该用户从未签到
高级会员

- 积分
- 653
- 最后登录
- 2018-12-14
|
发表于 2014-1-13 11:10:22
|
显示全部楼层
回复:L1981: No copydown created for initialized object“variable" . Initialization
看下这个有没有帮助:
L1981: No copydown created for initialized object . Initialization data lost.
Description
The named object is allocated in RAM and it is defined with some initialization values. But because no copy down information is allocated, the initialization data is lost.
Example
int i= 19;
int j;
When linking the code above with no startup code, then the linker does issue this warning for i as its initialization value 19 is not used.
Tips
If you do not want this object to be initialized, change the source or ignore the warning.
If you want this object to be located in a ROM area, check the source.
Is the object constant or not? "const char* test=..." is not const, use "const char* const test=..."
If you want this object to be initialized at runtime, you need some startup code. You can use the one provided with the compiler or take it as example and adapt it to your needs.
|
|