AnsweredAssumed Answered


Question asked by evading on Oct 24, 2014
Latest reply on Oct 24, 2014 by Montassar BEN ROMDHANE
In some of the demos for FreeRTOS on cortex M0 MCUs configMINIMAL_STACK_SIZE is set to 60 while on some others it set to 70. Using the STM32Cube software it's set to 128.

My question is what is actually the MINIMAL stack size?

Looking in the STM32 Cortex-M0 programming manual I see that the processor registers are R0-R12, MSP, PSP, LR, PC, PSR, ASPR, IPSR, EPSR, PRIMASK, CONTROL. Wouldn't that mean that the MINIMAL stack size is just 23 words? Or is there more info that needs to be saved for a context switch?