ESP32 HardwareSerial WDT reset
Posted: Thu Jun 14, 2018 4:04 am
I am trying to read from an RS485 module using UART2 on pins 16&17 at 1200 8N1.
For some reason whenever there is incoming data from the serial it crashes on a WDT reset.
Stack trace says that it is freaking out at the Serial2.read(); line.
The gist of it is this:
Any ideas what may be causing that?
For some reason whenever there is incoming data from the serial it crashes on a WDT reset.
Stack trace says that it is freaking out at the Serial2.read(); line.
Code: Select all
Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1)
Code: Select all
HardwareSerial RS485Serial(2);
...
RS485Serial.begin(1200);
...
while(RS485Serial.available()) {
messageBuffer[bufferlen++] = RS485Serial.read();}