I have thread where I statically declared working area with a size of 2048 bytes. THD_WORKING_AREA(waThread, 2048U); When I debug and look in ChibiOS/RT 3.x.x Debug View -> Threads tab then the StkUnused is calculated as 0.
Example from my debug view
Code: Select all
Address StkLimit Stack StkUnused
0x20000658 0x20000690 0x20000E14 0
It works correctly if I set the thread working area to 1024 bytes instead.