CC2541如何定义16K的数组?
时间:10-02
整理:3721RD
点击:
使用CC2541,定义16K的数组,编译报错如下,请问需要如何设置?谢谢!
Error[e16]: Segment XDATA_Z (size: 0x4039 align: 0) is too long for segment definition. At least 0x3039 more bytes needed. The problem occurred while
processing the segment placement command "-Z(XDATA)XDATA_Z,XDATA_I=_XDATA0_START-_XDATA0_END", where at the moment of placement
the available memory ranges were "XDATA:f00-1eff"
Reserved ranges relevant to this placement:
XDATA:1-eff XSTACK
XDATA:f00-1eff XDATA_Z
BIT:0-7 BREG
BIT:90-97 SFR_AN
BIT:f8-ff SFR_AN
看错误是:RAM不够了
CC2541只有8K RAM,当然无法定义16K数组。