Forum Discussion
Altera_Forum
Honored Contributor
21 years agoIf you change OS_STK from int to short you will only get half as much stack, yet if you double the stack size the OS still won't run, so it must be type casting each stack array element to a long * causing the stack variables to over-align each other (or if mis-alignments don't work as you mentioned, then writing onto the same stack space twice would happen).
Basically what I am asking is should sizeof(OS_STK) by 4 or 2? In many comments it says 16bit yet I can only get it working as 32bit. I have modified the sys_thread_new to use the TaskCreateExt function so that the extra options can be used, and as you said they appear to return byte counts.