This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

msp430g2231 IAR CSTACK 问题



我的程序compile时没错,make时出现如下错误

Error[e16]: Segment CSTACK (size: 0x40 align: 0x1) is too long for segment definition. At least 0x10 more bytes needed. The problem occurred while 
processing the segment placement command "-Z(DATA)CSTACK+_STACK_SIZE#", where at the moment of placement the available memory ranges 
were "CODE:250-27f"
   Reserved ranges relevant to this placement:
   200-21f              DATA16_I
   220-24f              DATA16_Z
   250-27f              CSTACK
Error while running Linker

我用的芯片是430g2231,IDE版本是IAR5.10.1

程序删减一些就不会出现这种错误,请大侠指点!

如果我把Stack size 改小没这个错误,但是运行时会出现Stack溢出问题。