cancel
Showing results for 
Search instead for 
Did you mean: 

CMCIS OSv2/FreeRTOS and Thread State

mccabehm
Associate III

Just started playing with FreeRTOS on a NUCLEO-H563ZI board using CMCIS OSv2. 

Why does osThreadGetState() translate eSuspended to osThreadBlocked? I suspended a thread and then checked its state with osThreadGetState() which reports the state as blocked, not suspended.

Does it matter?

1 REPLY 1
TDK
Guru

That's what the documentation says it will do.

TDK_0-1695929739427.png

https://arm-software.github.io/CMSIS_5/RTOS2/html/group__CMSIS__RTOS__ThreadMgmt.html#gad3dc89e942e38d9f3af858a0269a820d

 

If you feel a post has answered your question, please click "Accept as Solution".