Skip to content

Commit 0a7e167

Browse files
seaxwikittaakos
andauthored
If you get an error when compiling for an ESP32 board with esp board package 2.0.10 on Windows or Linux [HC-1350] (#249)
* Create If-you-get-an-Access-is-denied-error-when-compiling-for-an-ESP32-board-with-esp-board-package-2-0-10.md * Update If-you-get-an-Access-is-denied-error-when-compiling-for-an-ESP32-board-with-esp-board-package-2-0-10.md * Remove changing username as a solution * Update filename * Update If-you-get-a-compilation-error-when-compiling-for-an-ESP32-board-with-esp-board-package-2-0-10-on-Windows-or-Linux.md * Grammar * Less redundant title * Update filename * Update content/Software Support/Compilation/If-you-get-an-error-when-compiling-for-an-ESP32-board-with-esp-board-package-2-0-10-on-Windows-or-Linux.md Co-authored-by: Akos Kitta <1405703+kittaakos@users.noreply.github.com> * Add 1.8.19 workaround * Fix link class name --------- Co-authored-by: Akos Kitta <1405703+kittaakos@users.noreply.github.com>
1 parent 4af2fc6 commit 0a7e167

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
title: 'If you get an error when compiling for an ESP32 board with esp board package 2.0.10 on Windows or Linux'
3+
---
4+
5+
Version 2.0.10 of the **esp32 board package** introduced a bug[^github-issue][^github-pr] that would cause compilation to fail for some Windows and Linux users. On Windows, the error output includes an `Access is denied` message.
6+
7+
[^github-issue]: [Core Compilation failure on Linux in v2.0.10 #8424](https://github.com/espressif/arduino-esp32/issues/8424)
8+
[^github-pr]: [2.0.10 escaping fix #8433](https://github.com/espressif/arduino-esp32/pull/8433)
9+
10+
The causes for the error are different depending on which system you're using:
11+
12+
* [Windows](#windows)
13+
* [Linux](#linux)
14+
15+
---
16+
17+
<a id="windows"></a>
18+
19+
## If you're using Windows
20+
21+
On Windows, the error output may look like this:
22+
23+
```
24+
Access is denied.
25+
cmd /c type nul > "C:\\Users\\Hannes" "Siebeneicher\\AppData\\Local\\Temp\\arduino\\sketches\\2B717D34C8CC4EA7678C7773DD033E96/file_opts"
26+
exit status 1
27+
Compilation error: exit status 1
28+
```
29+
30+
The issue is expected to be fixed in the next release of the esp32 board package.
31+
32+
Meanwhile, you can try this solution:
33+
34+
* Use <a class="link-download" href="https://downloads.arduino.cc/arduino-1.8.19-windows.exe">Arduino IDE 1.8.19</a>
35+
* Downgrade to **esp32 2.0.9**:
36+
* To make 2.0.9 and earlier versions available in the board manager, you need to add `https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json` as an ["Additional boards manager URL" in Preferences](https://support.arduino.cc/hc/en-us/articles/360016466340-Add-third-party-platforms-to-the-Boards-Manager-in-Arduino-IDE).
37+
* You cannot use the Nano ESP32 with this version.
38+
39+
---
40+
41+
<a id="linux"></a>
42+
43+
## If you're using Linux
44+
45+
On Linux, the error output may look like this:
46+
47+
```
48+
Compiling core...
49+
bash -c "echo '-DARDUINO_CORE_BUILD' > /tmp/arduino_build_925905/file_opts"
50+
>: -c: line 1: unexpected EOF while looking for matching `''
51+
>: -c: line 2: syntax error: unexpected end of file
52+
exit status 2
53+
Error compiling for board Adafruit ESP32 Feather.
54+
```
55+
56+
The issue is expected to be fixed in the next release of the esp32 board package.
57+
58+
Meanwhile, you can try these solutions:
59+
60+
* Use Arduino IDE 2.1.1 or later.
61+
* Use Arduino 1.8.19 downloaded as `.zip` download from the official <a class="link-up-right" href="https://www.arduino.cc/en/software#legacy-ide-18x">Downloads page</a>, instead of a package manager like `apt`.
62+
* Downgrade to **esp32 2.0.9**:
63+
* To make 2.0.9 and earlier versions available in the board manager, you need to add `https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json` as an ["Additional boards manager URL" in Preferences](https://support.arduino.cc/hc/en-us/articles/360016466340-Add-third-party-platforms-to-the-Boards-Manager-in-Arduino-IDE).
64+
* You cannot use the Nano ESP32 with this version.

0 commit comments

Comments
 (0)