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.

RTOS: MSP432 stack overflow error

Tool/software: TI-RTOS

Hi 

      I am using msp432 with tirtos. When debugging,  I find stack overflow error

     I want to increase my stack size. I find there are three positions that can change stack size, such as 

1、in ccs properties

2、in cmd file

3、in tirtos cfg file

What are the differences between the 3 method?

How can I know which stack is overflow and which param mentioned above should I modify?

Thank you.

  • Hi Jufeng,

    First of all the comment in the .cfg is not correct for all devices (namely the MSP432 devices). I've opened a bug report in it.

    Here is the order that is used to determine the stack size.

    1. Use Program.stack value in the .cfg file unless it is zero
    2. Use --stack_size in the linker command file if it is present
    3. Use CCS project setting
    4. If none are available you get the codegen default. For example: “#10210-D creating ".stack" section with default size of 0x800; use the -stack option to change the default size”

    Sorry this did not get answered Friday. Somehow it slipped through the cracks.

    Todd

**Attention** This is a public forum