paoloboatto
Active member
I'm trying to upload a new firmware to Teensy 4.1 from a c# application. I can reboot the Teensy running teensy_reboot.exe and then load the new hex file running teensy.exe. The problem is that the Loader uses the file located into the Arduino temp folder, no matter what other file name I use under the -file and - path options (as an example I use -file=VRBox.ino -path=C:\Users\paolo\Desktop\tool). I also used the string Arduino uses when compiling the sketch (C:Users\paolo\Desktop\tools\teensy_post_compile -file=VRBox.ino -path=C:\Users\paolo\Desktop\tools -tools=C:\Users\paolo\Desktop\tools -board=TEENSY41 -reboot -port=usb:0/140000/0/2/3 -portlabel=hid#vid_16c0&pid_0478 Bootloader -portprotocol=Teensy) without success (I have copied both the hex file and all the Teensy tools under C:\Users\paolo\Desktop\tools to reduce the path length). The error says that it doesn't find the specified path (that exists) and pid_0478 is not recognized.
Any idea on how to assign the hex file name to the teensy.exe?
Thank you
Paolo
Any idea on how to assign the hex file name to the teensy.exe?
Thank you
Paolo