we’re using freeRTOS 6.0.0 together with a Renesas RH850 microcontroller (R7F7010233AFP), which has 32kb RAM. I’ve got an implementation where several tasks (1ms, 10ms, 100ms, 200ms, 500ms, 1s) are running.
When I add e.g. SCI transmit function call in 100ms I recognize in my MULTI debugger that it hangs in vApplicationStackOverflowHook which calls OS_ApplStackOverflowHook and has an endless loop.
In FreeRTOSConfig.h I set configMINIMAL_STACK_SIZE to 1024 and configTOTAL_HEAP_SIZE to 0x5500.
When it stays in endless loop and hangs I see this call stack:
0 vApplicationStackOverflowHook(pxTask=0, pcTaskName=0x34) [src\app\os_tasks.c:149,2]
1 vTaskSwitchContext() [src\os\freeRTOS\RTOS\tasks.c:1593,26]
2 INTOSTM0() [src\os\freeRTOS\RTOS\portable\GHS\RH850F1L\portasm.850:245,10]
3 .intvectApp() [src\bspRH850\startup\dr7f701057_startup.850:136,1]
So it was called from 1ms interrupt which handles the tasks.
Both pointers pxTask and pcTaskName are at 0x0:
Could you give me a hint what I can do?
How can I find the reason of the stack overflow?
Which values should I change to fix the overflow?
Would be really great if you can help me!