Page 1 of 1

ESP32 HardwareSerial WDT reset

Posted: Thu Jun 14, 2018 4:04 am
by raz0rf0x
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.

Code: Select all

Meditation Error: Core  1 panic'ed (Interrupt wdt timeout on CPU1)
The gist of it is this:

Code: Select all

 
 HardwareSerial RS485Serial(2);
 ...
 RS485Serial.begin(1200);
 ...
    while(RS485Serial.available()) {
      messageBuffer[bufferlen++] = RS485Serial.read();}
Any ideas what may be causing that?

Re: ESP32 HardwareSerial WDT reset

Posted: Thu Jun 14, 2018 9:58 am
by ESP_Sprite
What hardware are you using?