Forum Discussion
Altera_Forum
Honored Contributor
14 years agoTASK_STACKSIZE setting in Simple Socket Server
I just got the Nios II Simple Socket Server example app working on a custom board with a Cyclone III and 512KB SRAM (no other RAM). the original elf file was almost 900kbytes, with a significant por...
Altera_Forum
Honored Contributor
14 years agoYes, in uCOS you allocate yourself the stack when creating the task, either with a memory allocation call or a static table. And you specify the stack size in the OsCreateTaskEx() call.
As for the interrupts, when you use a multitasking OS they are usually hidden from the application, but are still occurring and handled by the drivers. The ISR will then just drop the registers on the stack currently in use, so it can be any task stack.