-
Notifications
You must be signed in to change notification settings - Fork 236
Serial Monitor keeps ESP devices in flash mode #1015
Comments
There is no such issue for other device like Devkit AZ3166. And no issue on Linux or Mac OS for ESP32. It looks like related to unreliable reset on windows for ESP32 development boards, please check doc to see if it helps. |
I understood that this issue is weird. I have pre-manufactured boards (I apologize for forgetting to add board info, now it is fixed) and I didn't have this problem before upgrading to AE 0.3.0. I will try this another computer to verify if it is a problem with the current computer. |
Some analysis: It is about the additional Serial signals beside RX and TX. The current Arduino Extension (version 0.3.0) behaves different on the DTS and RTS signals that results in pulling the GPIO0 to low. Under this conditions a reset will start flash mode. This is reported by boot mode:(1,6) (use 74880 baud) Using the Arduino IDE and pressing reset while the Serial Monito is open reports: boot mode:(3,6) Conclusion: The current Arduino Extension behaves different that the former versions and the Arduino IDE regarding the Serial interfaces (DTS and RTS). |
Noticed the same issue today. When using the Arduino IDE I see no issue, but using VSCode and this extension, if I reset my board while the serial monitor is open I just get stuck in boot mode. This similar issue points to DTR being handled differently in these different serial monitor tools and gives the same result mathertel found above: Is there any way to adjust this behaviour in the serial monitor? |
As the previous commentators, I've just encountered the same issue with my Wemos D1 R2. |
Same issues here updating to the latest everything using a NodeMCU as my main board. The roll back solution works, but I have other projects which now require the latest IDE, so it isn't possible for me to use it anymore. A dirty hardware solution i found was to connect a NC push button to GPIO 2 which you would then click when you wanted to upload to the board. This holds the ESP in the correct boot mode other times except upload. |
Some ugly workarounds:
|
Hi, the latest serialport lib we used causes the issue, see serialport issue and hupcl. And we have discovered a workaround to fix it. |
Arduino extension v0.3.1 is released to fix the issue. |
After this update, I cannot DTR/RTS reset Arduino Mega Embed from Robodyn (CH340) by serial port (disconnect/connect from VSCode) anymore. It has othervise worked perfectly up to this update. Bug #1053 created. |
Visual Studio Code: 1.43.2
Arduino Extension: 0.3.0
Boards: Wemos D1 Mini, DOIT ESP32 DEVKIT V1
Isssue: Opened Serial Monitor keeps ESP8266 and ESP32 in flash mode.
Details:
ESP8266 after pressing reset twice:
ESP32 after pressing reset twice:
Close Serial Monitor and re-plug USB cable and device works OK.
Downgrading to VSC 14.2.1 and AE 0.2.29 fixes this.
The text was updated successfully, but these errors were encountered: