Question
Does cubeide assign the wrong stack size?
When I use CMSIS RTOS I set a stack size of 128 words. Then the following code is generated:
/* Create the thread(s) */
/* definition and creation of cmdHandlerTask */
const osThreadAttr_t cmdHandlerTask_attributes = {
.name = "cmdHandlerTask",
.priority = (osPriority_t) osPriorityNormal,
.stack_size = 128
};
cmdHandlerTaskHandle = osThreadNew(CmdHandlerTask, NULL, &cmdHandlerTask_attributes);When I read the documentation, the stack size in osThreadAttr_t is in bytes and the code seems to confirm this. Is this a bug or have I misunderstood it? (Im new to stm32 and this kind of low level programming so Im not too confident that I understood things right.)
Can someone confirm or disprove my suspicion?
Best,
Anders