Koromix / tytools

Collection of tools to manage Teensy boards
https://koromix.dev/tytools
The Unlicense
214 stars 27 forks source link

TyCommander can Integrate with --delegate SerMon under Arduino 2.0 install #103

Open Defragster opened 1 year ago

Defragster commented 1 year ago

Placing a platform.local.txt with these lines including the {{local path}} to the EXE: tools.teensyloader.cmd.path={{local path}}\TyCommanderC.exe tools.teensyloader.upload.pattern="{cmd.path}" upload --autostart --wait --delegate "{build.path}/{build.project_name}.hex"

Path for platform.local.txt is: C:\Users{{Local User}}\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.57.1\platform.local.txt

Where {{Local User}} is used and "1.57.1" is used for the current 'hardware\avr\' install path Windows Base path is > %appdata%..\local\Arduino15\packages\teensy\hardware\avr

Teensy Loader is still used with --delegate and this doesn't change it starting up and getting .Hex or .eHex path as needed. TyCommander then asks which Teensy and puts it in to bootloader for Teensy.exe to program while USB Serial is AUTO disconnected.

With Teensy.exe doing the upload Encrypted .eHex is supported and the 'multiple Teensy' SerMon feature of TyCommander works in a separate window rather than in the small window embedded in the IDE GUI.

Perhaps this is easy to add an option to 'Integrate to Arduino 2.x' tool item?

BTW: Once this is done - TyComm will still get called to select Teensy - but if Serial is set Off in TyComm - other SerMon can be used.