Skip to content

Updates for Nano ESP32 [HC-1354, HC-1356] #252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Use Nano ESP32 with Arduino IoT Cloud
id: 9625780196508
---

Nano ESP32 support was added to Arduino Cloud July 27th, 2023.

1. Open the <a class="link-external" href="https://create.arduino.cc/iot/devices">Devices tab in Arduino Cloud</a>.
1. Click the **Add** button.
1. Select **"Arduino Board"**.
1. Connect your Nano ESP32 board to your computer and wait for it to be discovered by IoT Cloud.
1. Follow the instructions to set up the device.
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
title: Errors when compiling for an ESP32 board with esp32 board package 2.0.10 on Windows or Linux
id: 9682191506204
---

> **Note:** The esp32 package maintained by Arduino has been renamed to **Arduino ESP32 Boards**.

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.

[^github-issue]: [Core Compilation failure on Linux in v2.0.10 #8424](https://github.com/espressif/arduino-esp32/issues/8424)
[^github-pr]: [2.0.10 escaping fix #8433](https://github.com/espressif/arduino-esp32/pull/8433)

These issues have been fixed in 2.0.11 and later. **[Upgrade the board package](#solution)** to resolve the issue.

---

## Scope of the error

**Windows:**

* Users of Arduino IDE 2 where the `Arduino15` folder path contained a space (typically in the user folder name) were affected.

* Example error output:

```
Access is denied.
cmd /c type nul > "C:\\Users\\Hannes" "Siebeneicher\\AppData\\Local\\Temp\\arduino\\sketches\\2B717D34C8CC4EA7678C7773DD033E96/file_opts"
exit status 1
Compilation error: exit status 1
```

**Linux:**

* Users of Arduino IDE 1 that had installed the software using APT (Advanced package tool) were affected.
* Example error output:

```
Compiling core...
bash -c "echo '-DARDUINO_CORE_BUILD' > /tmp/arduino_build_925905/file_opts"
>: -c: line 1: unexpected EOF while looking for matching `''
>: -c: line 2: syntax error: unexpected end of file
exit status 2
Error compiling for board Adafruit ESP32 Feather.
```

---

<a id="solution"></a>

## Solution

Fix the issue by upgrading the board package to 2.0.11 or later:

1. Open the Boards Manager by clicking the ![Boards Manager icon](img/symbol_board.png) button in the sidebar (IDE 2) or select **Tools > Board > Boards Manager** in the top menu bar.

1. Search for "esp32" to show the **Arduino ESP32 Boards** (Arduino) and **esp32** (Espressif Systems) board packages.

![Updating Arduino ESP32 Boards in the Board Manager.](img/update-esp32.png)

1. One or both of these packages will display the text `"2.0.10 installed"`. If you have packages are installed, it is recommended to update both to the latest version. Move your cursor to the board package row, and click the **Update button** (the latest available version is selected by default).
* In IDE 1, you need to move your mouse cursor inside the board package row to reveal the **Update** button. Also, the option menu for version selection will not show if only one newer version is available. In this case, just click **Update** to install 2.0.11.

1. Wait while Arduino IDE updates the board package.

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.