c:/users/olive/appdata/local/arduino15/packages/esp32/tools/s3-gcc/2021r2-p5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\olive\AppData\Local\arduino\cores\c30f7d16a1a5fb0d9adb0276d4670e8a\core.a(main.cpp.o):(.literal._Z8loopTaskPv+0x8): undefined reference to `setup()'
c:/users/olive/appdata/local/arduino15/packages/esp32/tools/s3-gcc/2021r2-p5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\olive\AppData\Local\arduino\cores\c30f7d16a1a5fb0d9adb0276d4670e8a\core.a(main.cpp.o):(.literal._Z8loopTaskPv+0xc): undefined reference to `loop()'
c:/users/olive/appdata/local/arduino15/packages/esp32/tools/s3-gcc/2021r2-p5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\olive\AppData\Local\arduino\cores\c30f7d16a1a5fb0d9adb0276d4670e8a\core.a(main.cpp.o): in function `loopTask(void*)':
C:\Users\olive\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-arduino.5\cores\esp32/main.cpp:42: undefined reference to `setup()'
c:/users/olive/appdata/local/arduino15/packages/esp32/tools/s3-gcc/2021r2-p5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\olive\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-arduino.5\cores\esp32/main.cpp:48: undefined reference to `loop()'
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
This worked fine for just 3 weeks ago and I didnt have any problems at all uploading an empty sketch.
I have uninstalled and reinstalled the "Arudino ESP32 Borards", but nothing works, The arduino keeps disconecting and connecting to my computer.
What might be the problem?, or have any off you had the same problem?
This is not related to a DFU mode. This is simply a matter of the compiler that runs on your computer not considering the sketch code on your computer to be valid. The error would occur even if you didn't have the Nano ESP32 board connected to your computer as it does not involve the board hardware in any way.
It might be that you have a separate problem with the board being in a DFU mode, but we need to focus all our attention on getting the sketch to compile successfully for now because Arduino IDE will only attempt an upload process after a successful compilation.
Every Arduino sketch must define a setup and a loop function. So if you the sketch is truly empty, then the error is normal and expected.
Please try this experiment and then report the results:
Select File > Examples > 01.Basics > BareMinimum from the Arduino IDE menus.
The "BareMinimum" example sketch will open in a new Arduino IDE window.
Select Sketch > Verify/Compile from the Arduino IDE menus. â Alternatively, you can click the "Verify" button on the Arduino IDE toolbar if you prefer.
Wait for the compilation to finish.
Please add a reply here on this forum topic to tell us whether the compilation of the "BareMinimum" sketch failed as happened with your "empty" sketch, or whether it was successful.