info : prints ISP version, model, page size, flash size
version : get ISP version
reboot : reboot device
wipe : mass erase device
dump : dump entire flash (dumps zeros if flash security is enabled)
flash : mass erases device then flashes image starting at address 0
version argument need to be passed but will be ignored
Non-working commands:
setversion : does nothing as it is impossible to write to ROM
Version 2 changes:
Resolves major Windows regression experienced in #15 by keeping hid_WINDOWS.c and leveraging on HidD_GetInputReport to do GET_REPORT control transfers.
This ultimately made me drop support for arbitrary control messages in favor for fewer regressions (introduced by using hid_libusb on Windows).
macOS and Linux will continue to use libusb 1.0.
Squash and clean up commits.
Requires #11 for compiling in MSYS2/MINGW environment.
For HT32 ISP discussion, see #12.
Working commands (with
-t isp
):info
: prints ISP version, model, page size, flash sizeversion
: get ISP versionreboot
: reboot devicewipe
: mass erase devicedump
: dump entire flash (dumps zeros if flash security is enabled)flash
: mass erases device then flashes image starting at address 0Non-working commands:
setversion
: does nothing as it is impossible to write to ROMVersion 2 changes:
Requires #11 for compiling in MSYS2/MINGW environment.