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();}