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.

MSP430FR2676: How to set a proper stack size

Part Number: MSP430FR2676


Hi team,

The above figure shows a stack space usage for customer application engineering, in the above figure:

1. The main function main occupies 126 bytes of space;

2. ADC_ISR is an ADC interrupt that requires 28 bytes of space to execute;

3. __TI_auto_init_noinit_nopinit_hold_wdt occupies 20 bytes;

4. __TI_decompress_none occupies 20 bytes;

5. __TI_decompress_lzss occupies 32 bytes; Abort occupies 4 bytes;

Where ADC_ISR may trigger an interrupt to main at any time, so the minimum stack space should be greater than 126+28=154 bytes.

So the customer has 2 questions may need your help:

1. What do the __TI_auto_init_noinit_nopinion_hold_wdt, __TI_decompress_none, __TI_decompress_lzss, abort respectively do? When will they run? Is it necessary to calculate them to calculate the minimum stack usage?

2. If 2 interrupts are enabled, is the minimum stack plus the sum of 2 interrupt functions, or is it the larger of 2 interrupt functions?

Could you help check this case? Thanks.

Best Regards,

Cherry

**Attention** This is a public forum