Hi all,
Is there an automated way to temporarily stop (or pause) the Serial Monitor during a build? Coming from the Arduino IDE, I’m used to just pressing Upload and having everything done, but in PlatformIO, the build fails.
That depends on how you’re using platformio
If you’re using CLI under *nix using gnu screen offers a workaround
screen -S DM -p 0 -X stuff "^C"; pio run -t upload -e d1_mini -vv ; screen -d -m -S DM pio device monitor --filter log2file
1 Like
Weird. If you always use the “Upload and Monitor” task in VSCode, it should automatically close the old serial monitor before trying to upload.
Well that’s odd.
Issue on my iMac, but not on Mac Mini
If anyone else encounters a similar issue, the problem was due to an extension in Visual Studio Code. I’m not certain if it was the “Arduino” or “Serial Monitor” extension, but removing them resolved the issue.
1 Like