I am new to esp32 development. Recently bought Node32 lite wifi by Gravitech and followed the installation process by using Arduino IDE Boards Manager at GitHub - espressif/arduino-esp32: Arduino core for the ESP32.
When I tried to run the WiFi Scan example, I get the
"exit status 1
Error compiling for board ESP32 Dev Module."
Hope someone can help.
From the company that produces the board, it said I need to choose Node32s, but when I used it, I got the same error too.
Please post the full error message and your full code using the instructions in Read this before posting a programming question
Have you tried uploading a blank sketch, just to see if uploading works?
Comment all the code in the sketch you are trying to upload. Upload the 'empty' sketch. Not work, issue not with sketch. Works, uncomment a few lines of code, upload, works? Uncomment a few more lines, and so on and so forth till you find the offending thingies.
Also, you might want to disconnect the devices connected to the ESP and try code upload.
UKHeliBob:
Please post the full error message and your full code using the instructions in Read this before posting a programming question
That one line is my error message, that is why I am confused. The code is only example code of WifiScan.
Idahowalker:
Have you tried uploading a blank sketch, just to see if uploading works?
Comment all the code in the sketch you are trying to upload. Upload the 'empty' sketch. Not work, issue not with sketch. Works, uncomment a few lines of code, upload, works? Uncomment a few more lines, and so on and so forth till you find the offending thingies.
Also, you might want to disconnect the devices connected to the ESP and try code upload.
Tried uploading an empty sketch, still got that error. It helps me to minimize the error scope, thank you.
hazqeel:
That one line is my error message, that is why I am confused.
That little black area in the IDE where the error appears is scrollable and expandable. There will be more informative error messages in the lines above the few you can see by default.
And there is even a button down at the bottom/right to copy the error message(s)
Most of the trouble shooting guides suggest that having the esp32 core installed in the wrong place is the most common error but I currently have it in both(!) the Arduino.app folder AND my sketch folder and it still gives the same error.
GypsumFantastic:
That little black area in the IDE where the error appears is scrollable and expandable. There will be more informative error messages in the lines above the few you can see by default.
Ya, I know that. I've been coding for years. This is the error messages when copied from the black thing.
Arduino: 1.8.12 (Windows 10), Board: "Node32s, 80MHz, 921600"
exit status 1
Error compiling for board Node32s.
fitzgerads:
Most of the trouble shooting guides suggest that having the esp32 core installed in the wrong place is the most common error but I currently have it in both(!) the Arduino.app folder AND my sketch folder and it still gives the same error.
You have the same error with me right? May I know which board you use?
Solved
Turns out, the problem is the IDE. I uninstalled the IDE, clear the cache, and then restart the laptop. Reinstalled the IDE and necessary board manager. The code can be uploaded to the board.