- LuzineDebug
- Electronics & Arduino
Electronics & Arduino errors: causes and fixes
Upload and boot errors on Arduino, ESP32, ESP8266 and Raspberry Pi: avrdude, boot mode, power supply, serial port.
Fix "avrdude: stk500_getsync(): not in sync" on Arduino
avrdude cannot talk to the board's bootloader, so the upload fails before anything is written. Most of the time, selecting the rig…
Beginner 10 min A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0x13)! The c…Fix "Failed to connect to ESP32" (Wrong boot mode, No serial data received)
esptool could not put the ESP32 into download mode: the chip booted its normal program instead of waiting to be flashed. Hold the…
Beginner 10 min Brownout detector was triggeredFix "Brownout detector was triggered" on ESP32
The ESP32 supply voltage dropped below the safety threshold, so the chip resets to protect itself. The cause is almost always elec…
Intermediate 20 min avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission deniedFix "can't open device /dev/ttyUSB0: Permission denied" (Arduino, ESP32)
On Linux, your user is not allowed to open the serial port. Add it to the dialout group (or uucp on Arch), then log out and back i…
Beginner 5 min Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.Fix "Guru Meditation Error: Core 1 panic'ed (LoadProhibited)" on ESP32
The ESP32 crashed on a CPU exception and reboots: with LoadProhibited, the program read an invalid memory address, most often thro…
Advanced 30 min error: 'x' was not declared in this scopeFix "error: 'x' was not declared in this scope" (Arduino, C++)
The compiler meets a name it does not know at that point in the code. It is almost always a typo or wrong case, a variable declare…
Beginner 5 min Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on…Fix "Sketch too big" on Arduino and ESP32 (flash memory full)
The compiled program does not fit in the board's available flash memory, so the IDE refuses to upload it. Remove debug code and he…
Intermediate 20 min OSError: [Errno 121] Remote I/O errorFix "OSError: [Errno 121] Remote I/O error" with I2C on Raspberry Pi
The I2C bus is open, but no device answered at the requested address. Run i2cdetect -y 1 to see the module's real address, then ch…
Intermediate 15 min