Forum Rule: Always post complete source code & details to reproduce any issue!
-
Platformio build and monitor helper
Admittedly I get annoyed by dumb things, so when using PIO with teensy the upload and monitor never works properly (at least for me) because teensy is still uploading when the monitor tries to start. This also happens with other boards that are still resetting when the the monitor starts causing it to timeout.
So after asking for a feature that would add a delay and being shown a workaround I wound up with a nice simple script that can use a config property named monitor_delay
See final post here https://github.com/platformio/platfo...re/issues/4416
Hope this helps someone else
-
Admittedly I get annoyed by dumb things
:-) know that feeling...
My solution is to use the TyTools https://github.com/Koromix/tytools for uploading and monitoring.
Here one of my platformio.ini files (windows, changing for other OS should be straight forward I assume)
Code:
[platformio]
[env]
framework = arduino
[TeensyBase]
platform = teensy
upload_command = C:\toolchain\TyTools\tyCommanderC upload $SOURCE --autostart --wait --multi
[env:T4.0]
extends =TeensyBase
board = Teensy40
[env:T3.2]
extends = TeensyBase
board = Teensy31
[env:SAMD21-seeed_xiao]
platform = atmelsam
board = seeed_xiao
upload_protocol = jlink
-
Senior Member+
TyTools / TyCommander is the icing on the Teensy cake!
Note: it cannot upload encrypted eHex to T_4.x's that need it.
@koromix added option: --delegate >> as used in github.com/Defragster/Tset/.../TSet.cmd2#L55
After asking for 'which board' it then hits 'auto software Button' and steps aside for Teensy Loader to do the job, and waits for return without locking Loader out of the USB port.
Not sure it has any use - other than .eHex builds that only PJRC can upload.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules