MSP430FR6972编译出错,提示Error[e16]: Segment DATA20_ID (size: 0x19e align: 0x1)

2019-03-23 22:27发布

感觉应该不是内存溢出,只要我把先列程序第三行注释掉就没问题,那怕是再定义个1K的数组
求大神搭救?
_EINT();
while(cy_index != 0){;}
//while(cy_index != 1119){;}
_DINT() ;



IAR编译器
错误提示如下:


Error[e16]: Segment DATA20_ID (size: 0x19e align: 0x1) is too long for segment definition. At least 0x4 more bytes needed. The problem occurred while processing the segment placement command  "-Z(CONST)DATA20_C,DATA20_ID,CODE_ID=9400-FE70,10040-13FFF", where at the moment of placement the available memory ranges were "CODE:13e66-13fff"
   Reserved ranges relevant to this placement:
   9400-942f            CSTART
   9430-9973            ISR_CODE
   9974-fe6f            CODE
   fe70-fe70            DATA20_C
   10000-136c3          CODE
   136c4-13fff          DATA20_C
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
4条回答
放开那个鸡腿
2019-03-24 10:01
本帖最后由 放开那个鸡腿 于 2018-4-4 09:05 编辑
qwerghf 发表于 2018-4-4 08:56
cy_index是怎么定义的,看看产生什么影响

一个计数标志;问题已经解决了,内存配置比较细致,确实是溢出了,修改下配置范围就好了

一周热门 更多>

相关问题

    相关文章