Only logging in VSC Terminal after upload, not after restart
Posted: Wed Dec 13, 2023 12:31 pm
Using lolin_s2_mini board (ESP32-S2), connected with USB-C to my PC, running VSC/Platformio with Arduino framework. Using "Upload and Monitor" works fine, I see the upload and the VSC Terminal connects properly:
Next I can see all serial logging from my program in the Terminal. So far so good.
However, when I restart my device (or when it crashes), the serial connection gets lost. I can reconnect by typing Ctrl-T in the VSC Terminal window (says: Reconnecting to COM8, Connected!), but that's too late for seeing the restart or crash info from the device.
I tried things with monitor_rts and monitor_dtr without success.
How can I keep the VSC Terminal connected to my device permanently, or reconnect automatically?
Code: Select all
Hard resetting via RTS pin...
--- Terminal on COM8 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
However, when I restart my device (or when it crashes), the serial connection gets lost. I can reconnect by typing Ctrl-T in the VSC Terminal window (says: Reconnecting to COM8, Connected!), but that's too late for seeing the restart or crash info from the device.
I tried things with monitor_rts and monitor_dtr without success.
How can I keep the VSC Terminal connected to my device permanently, or reconnect automatically?