Can I use an idle hook function in FreeRTOS to perform low-priority tasks?
@Middleware & OS
Hello, can I use an idle hook function in FreeRTOS to perform low-priority tasks? My idle hook isn't being executed. Here's my configuration:
What should I check?
Solution:Jump to solution
@Boss lady If your idle hook isn't being executed, check that the idle hook is enabled in your
FreeRTOSConfig.h
file by setting configUSE_IDLE_HOOK
to 1.
,
check that your idle hook function is correctly implemented and matches the expected function signature....2 Replies
Solution
@Boss lady If your idle hook isn't being executed, check that the idle hook is enabled in your
FreeRTOSConfig.h
file by setting configUSE_IDLE_HOOK
to 1.
,
check that your idle hook function is correctly implemented and matches the expected function signature.
,
make sure that there are periods when no other tasks are ready to run so the idle task can execute.Thanks @Enthernet Code I applied this changes and it now runs smoothly