ESP32 Reboots when doing serial comms
Posted: Thu Jul 09, 2020 11:56 pm
I have a custom designed PCB that intermittently reboots with the following message:
It is running the following code:
With a meter on the 3V line, I measure a stable 3.294 volts at all times. After 9 beeps, it always reboots.
However, if I REMOVE the call Serial.println("beep"), reboot doesn't happen. My guess is that is partially related to power. I tried lowering to 9600 baud, but it still happens. Any ideas how fix, or work around, this? The power 'should' be good enough, since it was designed to allow up to 2A current.
Has anyone ever seen something like this before?
Code: Select all
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Core 0 register dump:
PC : 0x400d5f70 PS : 0x00060730 A0 : 0x00000000 A1 : 0x3ffc4e50
A2 : 0x00000000 A3 : 0x00000000 A4 : 0x00000000 A5 : 0x00000000
A6 : 0x00000000 A7 : 0x00000000 A8 : 0x800d6042 A9 : 0x3ffc4e10
A10 : 0x00000000 A11 : 0x00000000 A12 : 0x3ffc3cc8 A13 : 0x00000000
A14 : 0x3ffc3c80 A15 : 0x00000000 SAR : 0x00000000 EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
Backtrace: 0x400d5f70:0x3ffc4e50 0x7ffffffd:0x3ffc4e70
Code: Select all
void loop()
{
delay(5000);
Serial.println("beep");
}
However, if I REMOVE the call Serial.println("beep"), reboot doesn't happen. My guess is that is partially related to power. I tried lowering to 9600 baud, but it still happens. Any ideas how fix, or work around, this? The power 'should' be good enough, since it was designed to allow up to 2A current.
Has anyone ever seen something like this before?