You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
I have an issue that occurs when I press the reset button while reading from the serial monitor within VS Code. After pressing the reset button while reading from the serial monitor, the esp32 sketch code will stop functioning, and nothing can be read from the serial monitor. The only solution is to unplug and replug the ESP32, or re-upload the sketch. This issue happens regardless of the sketch code and can be replicated using a simple blink sketch that prints to the serial monitor (I've attached a quick sketch below as well).
Steps of replication:
Create sketch, initialize the arduino folder within VS Code
Set the board to NodeMCU-32s (the same issue will occur regardless of board type I've found)
Connect the esp32, select the serial port, and upload the sketch
Set the serial monitor baud rate to match the rate specified in the sketch
Open the serial monitor
At this stage, the light on the ESP32 is now blinking and every second "Hello" is printed to the serial monitor, as expected.
Press the reset (EN) button on the ESP32
Now no matter what I do, the LED on the ESP32 stays off and nothing will print to the serial monitor.
Another interesting complication is that if I do steps 1 to 5 but before pressing the reset button, I close the serial monitor, and press the reset button, the same issue occurs: no blinking light.
I have used the same sketch code within the Arduino IDE using an ESP32, as well as using the same code on an Arduino UNO while using VS Code. No issues, works like a charm in both cases. This problem only occurs when I use an ESP32 in VS Code.
If anyone has any ideas of things I may be doing wrong please let me know!
I have an issue that occurs when I press the reset button while reading from the serial monitor within VS Code. After pressing the reset button while reading from the serial monitor, the esp32 sketch code will stop functioning, and nothing can be read from the serial monitor. The only solution is to unplug and replug the ESP32, or re-upload the sketch. This issue happens regardless of the sketch code and can be replicated using a simple blink sketch that prints to the serial monitor (I've attached a quick sketch below as well).
Steps of replication:
At this stage, the light on the ESP32 is now blinking and every second "Hello" is printed to the serial monitor, as expected.
Now no matter what I do, the LED on the ESP32 stays off and nothing will print to the serial monitor.
Another interesting complication is that if I do steps 1 to 5 but before pressing the reset button, I close the serial monitor, and press the reset button, the same issue occurs: no blinking light.
I have used the same sketch code within the Arduino IDE using an ESP32, as well as using the same code on an Arduino UNO while using VS Code. No issues, works like a charm in both cases. This problem only occurs when I use an ESP32 in VS Code.
If anyone has any ideas of things I may be doing wrong please let me know!
esp32-blink.ino
c_cpp_properties.json
arduino_properties.json
The text was updated successfully, but these errors were encountered: