This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC2650STK: stackSize for Task

Part Number: CC2650STK

Tool/software: Code Composer Studio

Hi, I need help with Task stack size assignment. When I create Task, I assign a stack size of 1300. After starting the program, I check the stack size with ROV and see that stack size of my Task is 1304. I don’t understand where 4 extra bytes in stack size came from?

Kind regards, Egor.

  • Hi Egor,

    This seems to be due to the values chosen. 1300/8 gives a non-integer value (so it might cause a problem when allocating a 64 bits in the stack). As a result, the system increases the stack until the number of 8byte chunk is an integer.

    Regards,