I am still unable to understand the problem but it seems like the call to the function main_GW();
is problematic. What is the definition of that function?
Please do the following:
- Comment out everything from the task loop to verify that it is running successfully.
- Enable checks as I mentioned in my first response:
- Enable stack overflow checking: https://www.freertos.org/Stacks-and-stack-overflow-checking.html
- Enable configASSERT: https://www.freertos.org/a00110.html#configASSERT
- Enable malloc failure checking by defining
vApplicationMallocFailedHook
: https://www.freertos.org/a00016.html
Thanks.