Hello all,
Is there a way to used the Teensy loader cli with a rawhid device that does not require pressing the reset button?
Currently I can use the cli like this to reprogram my board:
$ ./teensy_loader -mmcu=mk20dx256 -w -s program.hex
This works great except I have to press the reset button every time. This is fine for for development.
The problem is my Teensy is not really accessible when I use it in my device. I have to completely disassemble the device whenever I want to update it.
Just for more information. My Teensy shows up as VID 0x16c0 PID 0x0486 when my program is running. In the teensy loader code it appears to only deal with these devices:
teensy_open() - VID 0x16c0 PID 0x0478
hard_reboot() - VID 0x16c0 PID 0x0477
soft_reboot() - VID 0x16c0 PID 0x0483
I'm running the Teensy loader cli under Linux so the soft_reboot() should work. But it appears to only work with the PID 0x0483 device. I can add the necessary support code to my program by I'm not sure what is needed for the soft_reboot() to work with the PID 0x0486 device.
Thanks,
Hartley
Is there a way to used the Teensy loader cli with a rawhid device that does not require pressing the reset button?
Currently I can use the cli like this to reprogram my board:
$ ./teensy_loader -mmcu=mk20dx256 -w -s program.hex
This works great except I have to press the reset button every time. This is fine for for development.
The problem is my Teensy is not really accessible when I use it in my device. I have to completely disassemble the device whenever I want to update it.
Just for more information. My Teensy shows up as VID 0x16c0 PID 0x0486 when my program is running. In the teensy loader code it appears to only deal with these devices:
teensy_open() - VID 0x16c0 PID 0x0478
hard_reboot() - VID 0x16c0 PID 0x0477
soft_reboot() - VID 0x16c0 PID 0x0483
I'm running the Teensy loader cli under Linux so the soft_reboot() should work. But it appears to only work with the PID 0x0483 device. I can add the necessary support code to my program by I'm not sure what is needed for the soft_reboot() to work with the PID 0x0486 device.
Thanks,
Hartley