Description
Board
Arduino Nano ESP32
Device Description
Vanilla Arduino Nano ESP32
Hardware Configuration
No GPIO
Version
v3.0.2
IDE Name
Arduino IDE
Operating System
Windows 11
Flash frequency
?
PSRAM enabled
no
Upload speed
115200
Description
I tried to use v3.0.2 of esp32 board manager with Arduino Nano ESP32 but it couldn't keep the correct serial port. Let me describe the repro steps (I'm using Arduino IDE):
- Enter the ROM Boot Mode (i.e. firmware download mode, see also this doc)
- Select COM11 (ESP32 Family Device)
- Upload Using Programmer (Esptool) with AnalogReadSerial example sketch
- Press RST button
- However, the serial port is still COM11 (ESP32 Family Device) and no output is coming
The only way to work with v3.0.2 is entering Bootloader-mode, then COM12 (Arduino Nano ESP32, Arduino Nano ESP32) is showed up. Once I upload the same sketch without Programmer, serial output works. However, when I press RST button, COM12 is gone and COM11 is back. In other words, the workaround is that using Bootloader-mode whenever I reset the board, that is insane.
This behavior only happens with v3.0 of esp32, though. I checked v2.0.17 of esp32, then RST button correctly keeps COM12 and the serial port is working. Same as the Arduino's Arduino ESP32 Boards, RST keeps COM12.
Sketch
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
int sensorValue = analogRead(A0);
// print out the value you read:
Serial.println(sensorValue);
delay(1); // delay in between reads for stability
}
Debug Message
N/A
Other Steps to Reproduce
Note: When I use Blink sketch, LED properly blinks after RST even though the serial port is wrong (COM11).
Note: When the correct port is showed up (i.e. after uploading with Bootloader-mode), physically reconnecting USB cable still remains the correct port (COM12). However, once I press RST button, it never goes back to COM12 even after reconnecting USB cable again. Bootloader-mode is the only way to recover. => Update: The first half isn't true. It sometimes changes to the wrong port by just reconnecting USB cable.
Note: Also, re-uploading a new sketch when the correct port is showed up doesn't change the serial port. Only pressing RST button triggers this problematic behavior.
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.