ESP32 uart problems


I’m encountering a problem where uart receive data from UART1 is being lost.

This seems to occur when communicating via WiFi.

I have used a logic analyser to observe the serial data going in and by toggling a port pin when data is read.
I have set the uart receive buffer to 16384 bytes, but this does not make any observable difference. When there is an event that is consuming some time (say 40ms) and the uart dispatcher is not being called, incoming uart data gets lost.

My guess is the esp32 uart fifo gets filled, but the mongoose higher level code is not retrieving the data and buffering it.

Is this the expected behaviour? Any suggestions how I can mitigate this problem?


I ended up using the ESP-IDF drivers. The receive buffer on those drivers works as I expect.