pok3rtool icon indicating copy to clipboard operation
pok3rtool copied to clipboard

Add Holtek ISP USB Protocol Support (v2)

Open hansemro opened this issue 2 years ago • 1 comments

For HT32 ISP discussion, see #12.

Working commands (with -t isp):

  • 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.

hansemro avatar Jan 28 '23 22:01 hansemro

Fixed minor errors on macOS and Windows.

hansemro avatar Jan 28 '23 23:01 hansemro