r/ArduinoHelp • • 24d ago

Compile error

Post image

It compiles fine for arduino boards but fails on esp32, I tried looking it up, couldn't find help, and tried chatgpt for 2-3 hrs (which was a waste of time 🥲).

I had a school project which I managed with pc of one of my friends, but I want this to get working because I want to make this my hobby 😭

0 Upvotes

7 comments sorted by

View all comments

1

u/yaten_ko 23d ago

To change the ESP32 frequency and upload speed in Arduino IDE, follow these steps:
Open Arduino IDE.
Go to Tools → Board → ESP32 Arduino → ESP32 Dev Module.
Go to Tools → CPU Frequency.
Select 240 MHz (WiFi/BT) (default).
If flashing fails, try 160 MHz or 80 MHz.
Go to Tools → Upload Speed.
Change 921600 to 115200.
If it still fails, try 57600.
Go to Tools → Port and select the ESP32’s COM port.
Click Upload.
Important: CPU Frequency (MHz) controls the processor speed, not the flashing speed. If the ESP32 won’t flash, Upload Speed = 115200 is the setting most likely to help.
If it gets stuck on “Connecting…”:
Press and hold the BOOT button on the ESP32.
Click Upload.
Release BOOT when you see Writing at 0x….
If uploading still fails, copy the exact error message from Arduino IDE.