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 agoYour first problem is probably sorting out the stack used by calls into the OS.
One thing that can help stack problems is to use a dedicated interrupt stack. You then don't need to allow space for the interrupts on all the stacks, and don't have issues when an IRQ interrupts code near to the stack limit. I don't know anything about the OS you are using... all the IO boards I've used run 'bare board', usually manage to write a buffer manager and interrupt scheme but that is about it, don't bother with any blocking calls and task switching.