My program prints important information to serial monitor immediately after establishing a serial connection. By the time I’ve started the Monitor, it’s already too late. It is not acceptable for this application to simply insert a delay before printing to Monitor (the boss cares a lot about time till TFT screen lights up).
How can I get the Monitor to start as early as possible, automatically, when program starts.
Note: The program was originally developed in Arduino IDE. There, it was possible to keep the serial monitor connected from on program upload to the next, so I could always catch the initial output.
I didn’t even realize that was there!!
It is almost fast enough, but not quite. If I insert delay(200) soon after the Serial connection is established,I can see everything I need to. I think that will suffice for my current situation.
Where does this script reside?
Is it possible to add the Monitor startup functionality to my Debug task?
I don’t think it’s a script, but a variation of the pio run command… specifically pio run -e your_env -t monitor will will auto-launch the serial monitor if the build is successful.