2025-05-15 4:06 AM
Hello Experts,
I see that in cmsis_oc.c that the function osThreadIsSuspended is disabled. The variable INCLUDE_eTaskGetState is responsible for it.
But how do we enable INCLUDE_eTaskGetState to 1 by default?
I see in FreeRTOS.h header than the macro is set to 0.
Can i just force it to 1 in FreeRTOS.h? or do we need to enable any particular config parameters in the .ioc file ?
Kindly Help!
2025-05-15 7:47 AM
You should define INCLUDE_eTaskGetState in project file FreeRTOSConfig.h
Note that cmsis_os.c is CMSIS RTOS V1 and it would be better to use cmsis_os2.c for CMSIS RTOS V2.