I am running FreeRTOS v8 and lwIP on STM32F417 - based on STM32F4 cube example.
I have a couple of tasks running including HTTP client and DHCP client. All runs fine for about 24 hours then I get a hard fault.
When restarting and halting in each task (uVision), I noticed at the start of the call stack I was seeing prvTaskExitError. Which is confusing as I thought that only get called when you attempt to leave a task and to that point my tasks are exiting anyway. Sometimes there were even x2 prvTaskExitError in the call stack.
Through trial and error, I changed all my tasks variables to static and I never saw prvTaskExitError in the call stack again, and no more hard faults.
Alot of googling, and I can seem to find anything…Is that normal? I obviously want to make sure I am doing this correctly.