tytools
tytools copied to clipboard
Suggestion: Add tytools to platformio to automate use there
Not sure if this should be a tytools issue or a platformio one, but thought I'd start here. It would be great if tytools were a tool available to platformio users directly.
That would be cool and maybe it can be done, though I don't know anything about platformio (tried it once and that's it). I'd like to look into it eventually but available time is very limited right now. So no promises :)
This is how I use tyTools in PlatformIO:
- Add the following file
upload_with_tycmd.py
to the top-level directory of your PlatformIO project (next toplatformio.ini
):
Import("env")
env.Replace(
UPLOADER="\"c:\\program files\\tyTools\\tycmd.exe\"",
UPLOADCMD="$UPLOADER upload $UPLOADERFLAGS $SOURCE"
)
- Add this to
platformio.ini
:
extra_scripts = upload_with_tycmd.py
upload_protocol = custom
upload_flags = -B<teensy serial number>
The last parameter (upload_flags
) is optional and allows to send the sketch to a fixed Teensy, identified by its serial number.
Hope it helps
Thanks, @jbliesener, but my purpose for this issue was to suggest that the tytools to be installed by platformio automatically, as they have been more reliable for me than the default tools.
FWIW, I already have tytools working with platformio on macOS with a slightly different technique:
[env]
upload_command = tycmd upload -B $UPLOAD_PORT $SOURCE
where tycmd is already in the $PATH, and for a specific teensy target:
[env:<your target name>]
upload_port = <your specific teensy, like "2236890-Teensy">