My project works unexpectedly well on an ESP32 microcontroller.
So now I would like to step it up a little and introduce threads. I did so but now it crashes. I read somewhere that LWIP is not always compiled with threading-support enabled. How can I check if it is? And if not: how can I rebuild the platform-io-esp32-lwip-library to use threads?
Arduino-ESP32 runs the user’s code (
loop()) in a FreeRTOS task too, and there calling into lwIP functions, via the e.g.
WiFiClient abstraction library, works fine.
Do you have a minimal example of a crashing program?
Unfortunately not but/because it looks like a memory allocation problem I found out.
After I enlarged the pthread-stack-size, it worked fine.