ESP32 HardwareSerial WDT reset

raz0rf0x
Posts: 1
Joined: Thu Jun 14, 2018 3:58 am

ESP32 HardwareSerial WDT reset

Postby raz0rf0x » 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.

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?

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 HardwareSerial WDT reset

Postby ESP_Sprite » Thu Jun 14, 2018 9:58 am

What hardware are you using?

Who is online

Users browsing this forum: No registered users and 151 guests