Observation of void vApplicationIdleHook( void )

Hi,

I don’t know what version of FreeRTOS I used before but I can see this FreeRTOS V7.0.2.

I went back to that project and I added only this line

#define configUSE_IDLE_HOOK                 1

I added this API, void vApplicationIdleHook( void ).
The API wasn’t call at all. Then I copied all FreeRTOS v10.0.0 files to overwrite the old files, after that the API was called.
I’m doing verification for API’s.
TASKA and TASKB with priority 1. TASKA waits 5 sec before toggling LED, and TASKB waits 3 sec before toggling LED. vApplicationIdleHook( void ) suppose to toggle another LED, but it never called. FreeRTOS v10.0.0 solved it.

Note sure if you have a question or not. To find why it is not working in V7 you can just step through the code in the debugger - this is the relevant line in that version https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/V7.0.1/Source/tasks.c#L1975

1 Like