ARM7. Stack Size for Sys and User mode

piero74 wrote on Wednesday, June 25, 2008:

Hi all. Hi Richard

I have a doubt.
FREERTOS start in supervisor mode (port on ARM7 core), and when scheduler starts, change in sys mode. But after this, i have idle task and application tasks, which have their stack area in freertos heap memory. So, i can choose for CSTACK (user mode) (in startup file) a very low size? (i suppose that this memory area will never be used)??


jorick23 wrote on Wednesday, June 25, 2008:

Hi, Piero!

CSTACK isn’t used so you don’t even have to define it in your linker definition file.  I’ve completely eliminated it in mine.

I’m using an STR750 (ARM7 core) with the IAR v4 compiler.