Sketch Compilation Fails for Nano ESP32

Received the new Arduino Nano ESP32 board today. I am trying to compile the first sketch for it. Even though I already had the Arduino-ESP32 core from Espressif installed, I also installed the new ESP32 package from Arduino as suggested by the getting started tutorial.

But I am not able to compile or upload the Blink sketch. I get a few errors in the process as shown below.

FQBN: arduino:esp32:nano_nora
Using board 'nano_nora' from platform in folder: C:\Users\Vishnu Mohanan\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.10
Using core 'esp32' from platform in folder: C:\Users\Vishnu Mohanan\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.10

loading library from d:\Code\Arduino\libraries\Conflicting: invalid library: no header files found
cmd /c if exist "D:\\Code\\Arduino\\Nano-ESP32\\Blink\\partitions.csv" COPY /y "D:\\Code\\Arduino\\Nano-ESP32\\Blink\\partitions.csv" "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Temp\\arduino\\sketches\\8DA72F1453A887AECAAF7F5938781341\\partitions.csv"
cmd /c if not exist "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Temp\\arduino\\sketches\\8DA72F1453A887AECAAF7F5938781341\\partitions.csv" if exist "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\esp32\\2.0.10\\variants\\arduino_nano_nora\\partitions.csv" COPY "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\esp32\\2.0.10\\variants\\arduino_nano_nora\\partitions.csv" "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Temp\\arduino\\sketches\\8DA72F1453A887AECAAF7F5938781341\\partitions.csv"
cmd /c if not exist "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Temp\\arduino\\sketches\\8DA72F1453A887AECAAF7F5938781341\\partitions.csv" COPY "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\esp32\\2.0.10\\tools\\partitions\\app3M_fat9M_fact512k_16MB.csv" "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Temp\\arduino\\sketches\\8DA72F1453A887AECAAF7F5938781341\\partitions.csv"
cmd /c IF EXIST "D:\\Code\\Arduino\\Nano-ESP32\\Blink\\bootloader.bin" ( COPY /y "D:\\Code\\Arduino\\Nano-ESP32\\Blink\\bootloader.bin" "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Temp\\arduino\\sketches\\8DA72F1453A887AECAAF7F5938781341\\Blink.ino.bootloader.bin" ) ELSE ( IF EXIST "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\esp32\\2.0.10\\variants\\arduino_nano_nora\\bootloader.bin" ( COPY "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\esp32\\2.0.10\\variants\\arduino_nano_nora\\bootloader.bin" "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Temp\\arduino\\sketches\\8DA72F1453A887AECAAF7F5938781341\\Blink.ino.bootloader.bin" ) ELSE ( "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esptool_py\\4.5.1/esptool.exe" --chip esp32s3 elf2image --flash_mode dio --flash_freq 80m --flash_size 16MB -o "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Temp\\arduino\\sketches\\8DA72F1453A887AECAAF7F5938781341\\Blink.ino.bootloader.bin" "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\esp32\\2.0.10\\tools\\sdk\\esp32s3\\bin\\bootloader_qio_80m.elf" ) )
esptool.py v4.5.1
Creating esp32s3 image...
Merged 1 ELF section
Successfully created esp32s3 image.
cmd /c if exist "D:\\Code\\Arduino\\Nano-ESP32\\Blink\\build_opt.h" COPY /y "D:\\Code\\Arduino\\Nano-ESP32\\Blink\\build_opt.h" "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Temp\\arduino\\sketches\\8DA72F1453A887AECAAF7F5938781341\\build_opt.h"
cmd /c if not exist "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Temp\\arduino\\sketches\\8DA72F1453A887AECAAF7F5938781341\\build_opt.h" type nul > "C:\\Users\\Vishnu Mohanan\\AppData\\Local\\Temp\\arduino\\sketches\\8DA72F1453A887AECAAF7F5938781341\\build_opt.h"
Access is denied.
cmd /c type nul > "C:\\Users\\Vishnu" "Mohanan\\AppData\\Local\\Temp\\arduino\\sketches\\8DA72F1453A887AECAAF7F5938781341/file_opts"

exit status 1

Compilation error: exit status 1

A screenshot is added below.

Is anybody else experiencing the same issue?

Yes, it was discussed recently

1 Like

I should add that the fix I described in the link b707 shared won't work for the Arduino Nano ESP32 @vishnumaiea is using. The reason is that the support for this new board was only added in the 2.0.10 release of the "esp32 by Espressif Systems" boards platform, so you won't find that board under the Tools > Board > esp32 menu in Arduino IDE if you perform the roll back to the 2.0.9 release of the platform as instructed in that post.

Fortunately the esp32 boards platform developers made a new release with the fix for the bug earlier today so an even better solution is now available. I'll provide instructions:

  1. Select File > Preferences... from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Add the following URL to the "Additional Boards Manager URLs" field:
    https://espressif.github.io/arduino-esp32/package_esp32_index.json
    
    If there are other URLs in the field, separate them with commas (,).
  3. Click the OK button on the "Preferences" dialog.
  4. You will now see a "Downloading index: ..." notification at the bottom right corner of the IDE window. Wait for that notification to close.
  5. Select Tools > Board > Boards Manager from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
  6. Scroll down through the list of boards platforms until you see the "esp32 by Espressif Systems" entry.
  7. Click the "INSTALL" button at the bottom of the entry.
  8. Wait for the installation to finish.
  9. Scroll down through the list of boards platforms until you see the "esp32 by Arduino" entry.
  10. Click the "REMOVE" button at the bottom of the entry.
  11. Wait for the uninstall process to finish.
  12. Select Tools > Board > esp32 > Arduino Nano ESP32 from the Arduino IDE menus.

You should now be able to compile and upload to your Nano ESP32 board.


Please let me know if you have any questions or problems while following those instructions.

1 Like

Thanks for the input. I have updated the Espressif ESP32 package to the latest version 2.0.11 and I am able to compile for the generic ESP32-S3 board. But the Arduino Nano ESP32 is still not on the list.

The Arduino ESP32 package is not yet updated to version 2.0.11 and so it doesn't fix the issue.

I just found the Arduino Nano ESP32 on the ESP32 package from Espressif. Earlier I was looking at the group of boards that starts with the letter "A". Compilation is now working. Thank you.

You are welcome. I'm glad it is working now. Thanks for taking the time to post an update!

Regards,
Per

1 Like