I am using an ESP32 board with a code running properly.
I plugged a TFT screen on the board, uploaded my code to use the screen, and started getting this error.
I understand it is related to a lack of power and I saw several suggestions on how to address it.
I removed the screen and reverted the code to what worked before, but the error doesn’t go away.
If everything is disconnected from the ESP32 and it is just powered by the USB does it still give a brown out detection? If so the ESP32 may be damaged or try a different power supply.
To give advice about your setup, we need to know what you actually have. Post a hand drawn wiring diagram, with components clearly identified. A photo of the setup would be useful, too.
The ESP32 is power hungry and you should be using a power supply capable of delivering 0.5 to 1 Ampere.
It's not about time. I don't really have photos to send.
I used breadboard and I have undone all the connections.
What I am trying to do to test is upload the most basic code to the board without anything connected to that.
I can send a photo, but I am not sure it will help.
Yes, I might have damaged the board. I am not sure what could have caused that.
I am new to Ardunio. It's ok if I have damaged the board, I really want to learn how to troubleshoot and fix it if it's ended up not being damaged.
Tks
Wrote 18656 bytes (12053 compressed) at 0x00001000 in 0.2 seconds (effective 765.0 kbit/s)...
Hash of data verified.
Compressed 204192 bytes to 105771...
Writing at 0x00010000... (14 %)
Writing at 0x00014000... (28 %)
Writing at 0x00018000... (42 %)
Writing at 0x0001c000... (57 %)
Writing at 0x00020000... (71 %)
Writing at 0x00024000... (85 %)
Writing at 0x00028000... (100 %)
Wrote 204192 bytes (105771 compressed) at 0x00010000 in 1.8 seconds (effective 920.3 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 128...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.1 seconds (effective 439.8 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Sounds like the brownout is kicking in before it gets to the sketch code.
I believe there may be some way to disable the brownout by configuring certain settings in the IDE (I had a quick Google but was unable to confirm exactly what these settings might be).
I have seen other posts suggesting removing the ESP32 boards completely from the IDE, then re-installing. Seems there may have been bugs in some older versions relating to brownout. Maybe worth a try.
The ESP has a built-in brownout detector which can detect if the voltage is lower than a specific value. If this happens, it will reset the chip in order to prevent unintended behaviour.
I think it is triggering before your sketch code even runs... I think you need to try and disable in the IDE somewhere so the code that gets compiled has brownout turned off.