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.

CCS/MSP430G2231: Linker Problem in CCS Version 9.0.1.00004?

Part Number: MSP430G2231

Tool/software: Code Composer Studio

Hello,

I want to write a small application for the MSP430g2231. But every time when I build the Project, the warning message "The ".stack" section size is required to be aligned to 4 bytes, but the specified size, 0x32 is not. The aligned size is 0x34" is shown.  Can somebody explain to me what this message means and how I prevent it?

Thanks.

Gordon

  • The size of the stack is counted in bytes.  The size of the stack must be divisible by 4.  The value 0x32, which is 50 decimal, is not.  So,  this diagnostic is issued and the stack size is increased to 0x34, or 52.  To avoid this diagnostic, change the linker option --stack_size to 0x34, or some other value that is divisible by 4.

    Thanks and regards,

    -George