Hi Phillip,
I just stumbled upon the return type of uxTaskGetStackHighWaterMark(): It's UBaseType_t, and that is defined as unsigned char in this port. The stack size is provided as unsigned short words to xTaskCreate(), thus theoretically 64kB are possible here.
Wouldn't it be better to patch tasks.c to make it return unsigned short instead of UBaseType_t, as prvTaskCheckFreeStackSpace() correctly returns a uint16_t? Otherwise uxTaskGetStackHighWaterMark() will return a misguiding value.
Thanks,
Flössie
Hi Phillip,
I just stumbled upon the return type of
uxTaskGetStackHighWaterMark(): It'sUBaseType_t, and that is defined asunsigned charin this port. The stack size is provided asunsigned shortwords to xTaskCreate(), thus theoretically 64kB are possible here.Wouldn't it be better to patch
tasks.cto make it returnunsigned shortinstead ofUBaseType_t, asprvTaskCheckFreeStackSpace()correctly returns auint16_t? OtherwiseuxTaskGetStackHighWaterMark()will return a misguiding value.Thanks,
Flössie