bmd-studio / stm32-for-vscode

STM32 extension for working with STM32 and CubeMX in VSCode
MIT License
207 stars 27 forks source link

Feature request: spawn a `python3 -m serial.tools.miniterm` instance in the same terminal as the build+flash #177

Open DeflateAwning opened 6 months ago

DeflateAwning commented 6 months ago

Request: add a new command to spawn an instance of the PySerial miniterm (a UART terminal) right after the build and the flash succeed.

PlatformIO (another popular embedded systems VSCode extension) supports this action, and it's very helpful! The options in PlatformIO are "Build", "Upload" (which also builds), and "Upload and Monitor" (which opens the serial monitor as described).

To do this, we'd probably need to add an option to the yaml configuration file which specifies the baud rate.

This is very helpful, as the first thing I always do after flashing is open a serial terminal to monitor whatever project I'm working on. Having it open automatically and be intergrated into VSCode would be very awesome!

jortbmd commented 6 months ago

Hi thanks for all the suggestion! It is really nice having somebody with a fresh perspective kicking at the things that could be better. For this however I am hesitant to include it in the extension. It would definitely be a nice feature to have in there. However it would need a lot of testing and a revision to how we handle these kind of preferences (which comport, which baudrate) and I feel it is one of these features that would be easy to implement but hard to get right. I have seen and used other specific serial monitor extension, which are okay but all have some rough edges. For now there are a lot of other things I want to do first: testing, better build flow, release and debug builds etc.. As there are some good enough alternatives: Arduino IDE, Serial monitor extension, something terminal based. I will put it on the back-burner for now. Will leave this open and let you know if I plan on starting working on this.