# Error compiling

**URL:** <https://forum.arduino.cc/t/error-compiling/1149489>\
**Category:** IDE 2.x\
**Created:** [July 19, 2023, 12:17am UTC](https://forum.arduino.cc/t/error-compiling/1149489 "2023-07-19T00:17:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![robsedua](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@robsedua](https://forum.arduino.cc/u/robsedua)\
**Post date:** [July 19, 2023, 12:17am UTC](https://forum.arduino.cc/t/error-compiling/1149489/1 "2023-07-19T00:17:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pert](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/pert/32/217111_2.png) [@pert](https://forum.arduino.cc/u/pert)\
**Post date:** [July 19, 2023, 6:29am UTC](https://forum.arduino.cc/t/error-compiling/1149489/2 "2023-07-19T06:29:36Z")

</div>

I have deleted your other cross-post @robsedua.

Cross-posting is against the Arduino forum [rules](https://forum.arduino.cc/faq#keep-tidy). 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](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966). It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

---

<div class="post-metadata">

**Author:** ![b707](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/b707/32/854321_2.png) [@b707](https://forum.arduino.cc/u/b707)\
**Post date:** [July 19, 2023, 6:43am UTC](https://forum.arduino.cc/t/error-compiling/1149489/3 "2023-07-19T06:43:35Z")

</div>

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.

> [@robsedua](#):
>
> Acesso negado.

it means "Access denied"

---

<div class="post-metadata">

**Author:** ![robsedua](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@robsedua](https://forum.arduino.cc/u/robsedua)\
**Post date:** [July 19, 2023, 12:19pm UTC](https://forum.arduino.cc/t/error-compiling/1149489/4 "2023-07-19T12:19:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [July 21, 2023, 5:09am UTC](https://forum.arduino.cc/t/error-compiling/1149489/5 "2023-07-21T05:09:29Z")

</div>

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

> <https://github.com/espressif/arduino-esp32/pull/8433>
>
> \## Description of Change
> Fix escaping issues on 2.0.10 (Windows path and IDE 1.…x). 
> 
> \## Tests scenarios
> Tested on clean Windows 11 box, Arduino IDE 2.1.1, username with spaces, 2.0.10. The issue is present and is fixed by these commits.
> Includes patch by @pennam fixing #8424 for IDE 1.8.x.  
> 
> \## Related links
> Closes #8424 and fixes Windows path issues reported in Arduino forums e.g. \[here\](https://forum.arduino.cc/t/compilation-error-exit-status-1/1149342) and \[here\](https://forum.arduino.cc/t/compiling-for-esp32-fails-access-is-denied/1149574)

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](https://europe1.discourse-cdn.com/arduino/original/4X/d/6/d/d6d06cdc2510d164ddbdde759fe56e215a747352.png)
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:

> [@Compiling for ESP32 fails: "Access is denied."](https://forum.arduino.cc/t/compiling-for-esp32-fails-access-is-denied/1149574/20):
>
> OK, here you go: Use Arduino IDE Boards Manager to install version 2.0.10 of the esp32 boards platform if you already rolled back to a previous version. Select File \> New Sketch from the Arduino IDE menus. Select any ESP32 board from the Arduino IDE Tools \> Board menu. Select Sketch \> Verify/Compile from the Arduino IDE menus. Wait for the compilation to finish. Scroll the black output panel at the bottom of the Arduino IDE window all the way up to the top. Look for the line that starts with…

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [July 24, 2023, 11:29pm UTC](https://forum.arduino.cc/t/error-compiling/1149489/6 "2023-07-24T23:29:46Z")

</div>

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):

> [@ptillisch](#):
>
> 1. Uncheck the box under the " **Arduino: Check For Updates**" setting.

check the box instead of unchecking it.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [January 20, 2024, 11:30pm UTC](https://forum.arduino.cc/t/error-compiling/1149489/7 "2024-01-20T23:30:09Z")

</div>

Closed on January 20, 2024, 11:30pm UTC

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