I have FreeRTOS project with 4 tasks. In some cases the device stops responding. When Break the MCU (stm32f4), in most cases it is in task switching subroutines (tasks.c
) and goes to vApplicationIdleHook
. How to find the address of main task at which it is stopeed?
Edit: I have tskTCB
structure of interesting task. Is there a chance to find the return address for that task when I break execution in vApplicationIdleHook
for example? It seems first member pxTopOfStack
may help, but it points to unused memory...