I just unpacked my new Nano ESP32 board and loaded the Example WiFi->WiFiScan.
Selected the board Arduino Nano ESP32 with the proper port ttyACME0.
As a result I'm getting a long list of errors deep in the library code
(Attached as zip file).
Did I miss here something?
Do I have to update the board manager in IDE for the Nano ESP32?
I assume that board is by default included (at least I was able to select from the list of all boards).
Any help is much appreciated.
TIA NanoESP32-errorlog 20250425T1900.txt.zip (6.2 KB)
I see you are using the "esp32" boards platform to add support for the Nano ESP32 board to Arduino IDE. That is a 3rd party platform which is not maintained by Arduino. Although the developers of the platform added support for the Nano ESP32 board to the platform codebase, they didn't actually test to ensure the development work on the platform is compatible with the board, which caused the support to be broken in the latest release of the platform.
The Arduino company maintains a platform named "Arduino ESP32 Boards" that is dedicated exclusively to the Nano ESP32 board. We carefully test that platform for use with the Nano ESP32 board, so you will find that it is much more stable for use with this board. The Arduino company recommends the use of the "Arduino ESP32 Boards" platform by Nano ESP32 . The alternative "esp32" boards platform should only be used by advanced users who either require a capability that is only available from that platform, or want to contribute to the development of that platform through beta testing.
Please try this:
Select Tools > Board > Boards Manager... from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
Find the "Arduino ESP32 Boards" entry in the list of boards platforms.
If it is not already installed, click the "INSTALL" button at the bottom of the entry.
Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:
Successfully installed platform ...
Select Tools > Board > Arduino ESP32 Boards > Arduino Nano ESP32 from the Arduino IDE menus.
Select File > Examples > WiFi > WiFiScan from the Arduino IDE menus.
The "WiFiScan" example sketch from the "Arduino ESP32 Boards" platform will open in a new Arduino IDE window.
Now compile or upload the "WiFiScan" example you opened in step 6 of those instructions. This time it should work without any errors.
used the board manager to installed Arduino Nano ESP32 boards
selected the board Arduino Nano32
opened the example sketch WiFi -> WiFiScan.ino
compiled and uploaded the sketch
And the result was astonishing, it worked.
Thank you very much for the detailed and precise instructions.
Your help is much appreciated.
PS. I installed previously ESP32 boards for an ESP32-WROOM-32 board that I was testing.
I'm hoping there will be no conflict between those two 'environments'.
Stay tuned.
There isn't any conflict. The only thing you need to be careful about is that if when you are using the Nano ESP32 board, make sure to select the board definition from the Arduino ESP32 Boards platform in Arduino IDE instead of the board definition from the "esp32" boards platform.
If you are using Arduino IDE's Tools > Board menu, you can accomplish that by selecting Tools > Board > Arduino ESP32 Boards > Arduino Nano ESP32 (instead of Tools > Board > esp32 > Arduino Nano ESP32).
If you are using the board selector on the Arduino IDE toolbar, the first time you select the Nano ESP32 board from the menu, a "Select Other Board and Port" dialog will appear, which will allow you to chose from the two different board definitions available for the Nano ESP32. Just make sure to select the one that has "Arduino ESP32 Boards" written to the right of it, instead of the other option that has "esp32" to the right of it: