I've recently procured an ESP-WROOM-32 development board and I tried to upload a basic blinking code on it, however there's a compilation error that looks like this:
Access is denied.
exit status 1
Compilation error: exit status 1
I have tried the following steps to debug:
Reinstalled the ESP32 board manager by Espressif Systems
Cleared all TEMP files
Reinstalled Arduino IDE
I have also tried to do this on the latest version of the IDE (2.1.1) and it throws the same compilation erorr
What could be a possible solution to this? I can't seem to figure it out
Hi @Navdagreat. A bug that causes this error message when your Windows user name contains a space was introduced in the 2.0.10 release of the "esp32" boards platform. The bug has already been identified and fixed:
That fix will be in the next release of the "esp32" boards platform.
The simple solution is to use the Arduino IDE Boards Manager to roll back to the last good version of the platform: 2.0.9. I'll provide instructions you can follow to do that:
Select Tools > Board > Boards Manager from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
Scroll down through the list of boards platforms until you see the "esp32 by Espressif Systems" entry.
Click the "INSTALL" button at the bottom of the entry.
Wait for the installation to finish.
Arduino IDE will occasionally notify you that a new version of the boards platform is available, you'll need to refrain from accepting the offer that will cause an update back to the problematic version of the platform. If you find these notifications annoying, you can disable them via the advanced settings. I'll provide instructions for doing that:
Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
A menu will appear on the editor toolbar:
Select the "Preferences: Open Settings (UI)" command from the menu. ⓘ You can scroll down through the list of commands to find it or type the name in the field.
A "Preferences" tab will open in the Arduino IDE main panel.
Type arduino.checkForUpdates in the "Search Settings" field of the "Preferences" tab.
Uncheck the box under the "Arduino: Check For Updates" setting.
Close the Preferences tab by clicking its X icon.
If you disable the automatic update check, make sure to periodically do a manual check for newer versions of Arduino IDE and your installed boards platforms and libraries. You can check for new versions of Arduino IDE by selecting Help > Check for Arduino IDE Updates from the Arduino IDE menus. You can check for new versions of boards platforms and libraries by selecting "Updatable" from the "Type" menu in the Boards Manager and Library Manager views.
Alternatively, you can keep your 2.0.10 installation of the "esp32" boards platform and apply the fix manually. I provided instructions for doing that here:
Hey, thanks so much for your reply, it worked like a charm!
For some reason, Arduino IDE 2.1.0 was not letting me roll back to the previous version of the esp32 boards, however, the manual solution did suffice.
I have an update with good news! The esp32 boards platform developers made a new release today with the fix. So the workarounds I described in my previous reply are no longer necessary. You can simply update to the 2.0.11 release of the platform:
Select Tools > Board > Boards Manager from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
Scroll down through the list of boards platforms until you see the "esp32 by Espressif Systems" entry.
Click the "UPDATE" button at the bottom of the entry.
Wait for the update to finish.
If you disabled update notifications in the advanced settings according to the instructions I provided in my previous reply, I recommend enabling them again. You can do that by performing the instructions again, only this time when you reach step (4):