Msp430单片机C语言编译问题。Error[e16]:Segment CSTACK

来源:百度知道 编辑:UC知道 时间:2024/06/01 17:45:59
Error[e16]:Segment CSTACK(size:0x64 align:0x1)is too long for segment definition, At least 0x1e more bytes needed. The problem occurred while processing the segment placement command"-Z(DATA)CSTACK+_STACK_SIZE#",where at the moment of placement the avaiable memory ranges ware "CODE:2BA-2FF"
Reserved ranges relevant to this placement:
200-285 DATA16_I
286-2b9 DATA16_Z
2ba-2ff CSTACK
error while running Linker
这个是什么意思?谁能解决这个问题。

RAM区溢出,
以下1,2只能减少量的数据
1 优化代码 ,将可以的变量申请const存入ROM
2 重设堆栈,options-》General options -》stack/Heap重设数据,设置时小心程序运行时堆栈溢出
3 升级CPU

IAR下,在options-》target-》device里面选择一个更大容量的430单片机