-
-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEAT: Configurable delay between Upload and Monitor #4416
Comments
Not as elegant as bultin delay functions but since it is a solution I will close this, thank you |
I would actually like to see this implemented in the core for more robustness in these native USB-serial cases, maybe @ivankravets has an opinion on that. |
for anyone coming across this, here is the extra script I used
|
To expand on this, I wanted to have this set from the pio ini file so I added a field to the environment The python script named extra_script.py is now this
|
Just for my interest, the script in #3742 (comment) that waits for the previously found monitor port to re-appear, does it work better? No fine-tuned delay options then. |
I felt like it went beyond the scope of the problem (inability to know if teensy upload is complete) and that it created the potential for more problems than it solves along with added complexity and offers a smaller use case. Just my 2c though |
But it also hooks the "after upload" function, so upload is compeleted at that point. |
yes, but I did not find a way to detect if monitor was selected, so if I disconnect the board, upload fails, reboot fails, board gets stuck and a few other cases it will wait potentially indefinitely. |
I think this is because after upload in the case of teensy is really after file copy and teensy doesn't return a true success(this may have changed). The com thing is nice in its own right but would need a time limit to let it bailout. I think I'll mess with it in a bit and see if I can get what I want out of it :-) |
ok so I changed things up a bit to offer best of both worlds these are the config options used
and this is the script
|
When using a Teensy board Upload and Monitor fails.
I do not feel like this is a bug just a limitation due to how the Teensy is written to.
Since programming a Teensy is done outside of PIO there is no exact way to tell if the upload has actually completed and the board reset.
I think adding a configuration option that specifies an amount of time to wait between upload and monitor would help this and other issues I have encountered.
ALA:
monitor_delay: 10000
Which would cause a 10 second delay before starting the serial monitor.
The text was updated successfully, but these errors were encountered: