Error compiling

Good night, can someone help me with this problem in the Arduino IDE.

If I compile any code or examples from the file it gives this error, but I noticed that it's only when I'm using the ESP32 board.

FQBN: esp32:esp32:esp32doit-devkit-v1
Using board 'esp32doit-devkit-v1' from platform in folder: C:\Users\Robson Eduardo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10
Using core 'esp32' from platform in folder: C:\Users\Robson Eduardo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10

cmd /c if exist "C:\Users\Robson Eduardo\AppData\Local\Temp\.arduinoIDE-unsaved2023618-6356-r950q8.btu1o\Blink\partitions.csv" COPY /y "C:\Users\Robson Eduardo\AppData\Local\Temp\.arduinoIDE-unsaved2023618-6356-r950q8.btu1o\Blink\partitions.csv" "C:\Users\Robson Eduardo\AppData\Local\Temp\arduino\sketches\9EF3F1FF6889A9B21FA9F18EC064912D\partitions.csv"
cmd /c if not exist "C:\Users\Robson Eduardo\AppData\Local\Temp\arduino\sketches\9EF3F1FF6889A9B21FA9F18EC064912D\partitions.csv" if exist "C:\Users\Robson Eduardo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10\variants\doitESP32devkitV1\partitions.csv" COPY "C:\Users\Robson Eduardo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10\variants\doitESP32devkitV1\partitions.csv" "C:\Users\Robson Eduardo\AppData\Local\Temp\arduino\sketches\9EF3F1FF6889A9B21FA9F18EC064912D\partitions.csv"
cmd /c if not exist "C:\Users\Robson Eduardo\AppData\Local\Temp\arduino\sketches\9EF3F1FF6889A9B21FA9F18EC064912D\partitions.csv" COPY "C:\Users\Robson Eduardo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10\tools\partitions\default.csv" "C:\Users\Robson Eduardo\AppData\Local\Temp\arduino\sketches\9EF3F1FF6889A9B21FA9F18EC064912D\partitions.csv"
1 arquivo(s) copiado(s).
cmd /c IF EXIST "C:\Users\Robson Eduardo\AppData\Local\Temp\.arduinoIDE-unsaved2023618-6356-r950q8.btu1o\Blink\bootloader.bin" ( COPY /y "C:\Users\Robson Eduardo\AppData\Local\Temp\.arduinoIDE-unsaved2023618-6356-r950q8.btu1o\Blink\bootloader.bin" "C:\Users\Robson Eduardo\AppData\Local\Temp\arduino\sketches\9EF3F1FF6889A9B21FA9F18EC064912D\Blink.ino.bootloader.bin" ) ELSE ( IF EXIST "C:\Users\Robson Eduardo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10\variants\doitESP32devkitV1\bootloader.bin" ( COPY "C:\Users\Robson Eduardo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10\variants\doitESP32devkitV1\bootloader.bin" "C:\Users\Robson Eduardo\AppData\Local\Temp\arduino\sketches\9EF3F1FF6889A9B21FA9F18EC064912D\Blink.ino.bootloader.bin" ) ELSE ( "C:\Users\Robson Eduardo\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.5.1/esptool.exe" --chip esp32 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB -o "C:\Users\Robson Eduardo\AppData\Local\Temp\arduino\sketches\9EF3F1FF6889A9B21FA9F18EC064912D\Blink.ino.bootloader.bin" "C:\Users\Robson Eduardo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10\tools\sdk\esp32\bin\bootloader_dio_80m.elf" ) )
esptool.py v4.5.1
Creating esp32 image...
Merged 1 ELF section
Successfully created esp32 image.
cmd /c if exist "C:\Users\Robson Eduardo\AppData\Local\Temp\.arduinoIDE-unsaved2023618-6356-r950q8.btu1o\Blink\build_opt.h" COPY /y "C:\Users\Robson Eduardo\AppData\Local\Temp\.arduinoIDE-unsaved2023618-6356-r950q8.btu1o\Blink\build_opt.h" "C:\Users\Robson Eduardo\AppData\Local\Temp\arduino\sketches\9EF3F1FF6889A9B21FA9F18EC064912D\build_opt.h"
cmd /c if not exist "C:\Users\Robson Eduardo\AppData\Local\Temp\arduino\sketches\9EF3F1FF6889A9B21FA9F18EC064912D\build_opt.h" type nul > "C:\Users\Robson Eduardo\AppData\Local\Temp\arduino\sketches\9EF3F1FF6889A9B21FA9F18EC064912D\build_opt.h"
Acesso negado.
cmd /c type nul > "C:\Users\Robson" "Eduardo\AppData\Local\Temp\arduino\sketches\9EF3F1FF6889A9B21FA9F18EC064912D/file_opts"

exit status 1

Compilation error: exit status 1

I have deleted your other cross-post @robsedua.

Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting can result in a suspension from the forum. I see you have already established a pattern of doing this, so you are on thin ice.

In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Why the most of your output is in English, but the last sentence is in Spanish (?). It looks like this line was produced by another source(program?) rather than all other output.

it means "Access denied"

Peço desculpa, não percebi que cometi esse erro, não vai se repetir. OBRIGADO !!!

1 Like

Hi @robsedua. The bug that caused this "Acesso negado." / "Access is denied" error has been identified and fixed:

That fix will be in the next release of the "esp32" boards platform. Arduino IDE will notify you once that release is available.

Since the regression was introduced in the 2.0.10 release of the "esp32" boards platform, the simple workaround is to roll back to the last good version. I'll provide instructions you can follow to do that:

  1. Select Tools > Board > Boards Manager from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
  2. Scroll down through the list of boards platforms until you see the "esp32 by Espressif Systems" entry.
  3. Click the "INSTALL" button at the bottom of the entry.
  4. 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:

  1. 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:
    image
  2. 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.
  3. Type arduino.checkForUpdates in the "Search Settings" field of the "Preferences" tab.
  4. Uncheck the box under the "Arduino: Check For Updates" setting.
  5. 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:

Good news, everyone! 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:

  1. Select Tools > Board > Boards Manager from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
  2. Scroll down through the list of boards platforms until you see the "esp32 by Espressif Systems" entry.
  3. Click the "UPDATE" button at the bottom of the entry.
  4. 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):

check the box instead of unchecking it.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.