2022-06-30 01:08 PM
Hello there!
I am working on a STM32F407 project with an Ethernet port through which I am setting up a TCP client with LwIP and also managing a couple of other tasks with FreeRTOS.
The code generator writes the MX_LWIP_Init() function in the defaultTask, and if I run the entire client in this task, it works great (I'm using the netconn functions to connect and send/receive data).
But my biggest question is what is so special about this task? because when I try to run the client in other tasks it doesn't work at all. Even to the point where if I want to run MX_LWIP_Init() in another task, it throws the hardfault handler (I'm disabling all other tasks during the test so they don't interfere)
I find this quite annoying because I can't use the LwIP features in any other task besides the default task.