PaulStoffregen / teensy_loader_cli

Command line Teensy Loader
http://www.pjrc.com/teensy/loader_cli.html
332 stars 152 forks source link

added windows routines #29

Open WMXZ-EU opened 7 years ago

WMXZ-EU commented 7 years ago

merged windows routines from teensy_reboot.c to allow download (soft boot) with either serial or hid active. tested on windows 10 with blink_slow_Teensy31.hex (is hid and not serial) will work also after prog button pressed dummy "list_teensies" routine was added "#else-windows" to allow compilation on non-windows systems added Frank's changes to readme file

PaulStoffregen commented 7 years ago

Looks like this adds a fixed 1/4 second delay per write.

WMXZ-EU commented 7 years ago

Without the additional delay, I got the synchronization (GetOverlappedResult) error. maybe we could leave with a slower transfer, or find a better way to wait for write completion.

(pressed closed by mistake, so I reopened it)

WMXZ-EU commented 7 years ago

a delay of 0.05 was the found suitable to get programming working for T3.2 on my windows10 laptop. Could the error 31 'device not functioning' indicate a handshake problem?