The 'cause' flag in OnTaskStopReady() isn't defined anywhere I can see, however it must have a meaning as SystemView decodes the reason and adds it to the Task Block lines in the viewer. It's possible to guess at a few, eg
0x0C == Wait for event with timeout
0x04 == Wait for timeout
those are out of one of the sample traces. So 0x04 looks like the 'timeout' flag and 0x08 the 'event' flag.
There must be more however, the FreeRTOS port for instance sends ((3u << 3 )|3) == 0x1B for tasks being suspended which shows up as 'waiting, suspended'
Is there a proper definition of the flags in this field please
0x0C == Wait for event with timeout
0x04 == Wait for timeout
those are out of one of the sample traces. So 0x04 looks like the 'timeout' flag and 0x08 the 'event' flag.
There must be more however, the FreeRTOS port for instance sends ((3u << 3 )|3) == 0x1B for tasks being suspended which shows up as 'waiting, suspended'
Is there a proper definition of the flags in this field please