It would be nice to use the cli loader i prefer to go this route but it needs to be fully automated. I have compiled the source my self as well. Could you share all your changes you did to get it working?
Im not sure how you would go about forcing a reset on the teensy though?
Hi,
Ok, first and obvious, the makefile must be edited
-then, remove the #ifdef in the MCUs array
- in write_usb_device() (windows-portion of sourcecode), the tmpbuffer is too small - i enlarged it to 1090.
last.. hm..there is a problem with the timeout/waiting in write_usb_device() - it does not work.
i spent 1/2 hour to find the reason, but without success. i never used the winapi in c. so..maybe you want to find a better way than mine.
quickly, i found a solution that is not good, but
good enough*. - Add "Sleep(100);" before " if (!GetOverlappedResult(..."
that's it.
For the reset: Hm, the linuxpart shows how this has to be done. For windows, this does not work - as you can see, if you try the "hard reset" ("-r")
I think, some kind of waiting in the reset functions has to be done.
Frank
edit:* it works - for me.