cc2640 IAR错误
我在hidemukbd工程中添加了一个初始化pwm的功能函数,在HidEmuKbd_init中调用,编译IAR报这个错误
Error[Lp015]: section placement failure: overcommitted content in [0x00000000-0x000000ff]
请问这是什么原因.
可参考:
Error[Lp015]: section placement failure: overcommitted content in [0x20000520-0x200043db]
分析:
1、查看OutPut下****.map文件最后显示
30 431 bytes of readonly code memory
2 881 bytes of readonly data memory
17 103 bytes of readwrite data memory
Errors: 1
Warnings: none
data readwrite memory =17103 = 0x42CF
2、再查看TOOLS下***.xcl文件显示
--config_def ICALL_STACK0_ADDR=0x0000C000
--config_def ICALL_RAM0_ADDR=0x200043DC
比较 ICALL_RAM0_ADDR=0x200043DC 与 Error[Lp015]: section placement failure: overcommitted content in [0x20000520-0x200043db]
解决:
把 ICALL_RAM0_ADDR 修改为 > 0x200043db 但要小于 0x20005000 = 20k
如--config_def ICALL_RAM0_ADDR=0x20004400