r/ArduinoHelp • u/Barbie_Toes_1024 • 15d ago
Compile error
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 😭
1
u/yaten_ko 15d ago
Faulty cable, paste the error message in chatGPT follow instructions
1
1
u/InevitablyCyclic 15d ago
Turn on verbose compile messages.
Is this a compile/verify issue or only when you try to upload? If it's upload then do you have the correct port set and is the board in upload mode (hold boot, press and release reset)?
1
u/yaten_ko 14d 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.
1
u/Sufficient_Cup_4298 15d ago
Port is not selected. You might have to select a port manually. See the "ESP32 Dev Module" at the top there, on the right of the three dark cyan colour buttons? Clicking on it opens a box. Select a port from the box. Do this while the ESP32 is connected to the computer.