I have a TTGO Micro 32 V2.0 which just an extra cover on an ESP32-PICO-D4. So I want to upload using the ESP-32-PICO-D4 in the board manager. I used this as addition board managers url.
If I use Arduino 1.8 series the code compiles fine but when I use Arduino 2 series it gives this error.
Access is denied.
exit status 1
Compilation error: exit status 1
For the meantime I am using the Ard 2 for editing and Ard 1.8 for verifying but is there any fix for this?
Hi @anuragyoyo. 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:
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):