* refactor(usb): Rewrite jump-to-bootloder to node-hid * refactor(usb): Rewrite the whole usb packages to HID-API * refactor(usb): Deleted not valid usb command files * refactor(usb): Deleted not supported usb commands * Remove obsolete script. * Remove obsolete script. * Fix script. * Fix script. * No need to assign the silent property because it has been removed. * This workaround may work on other platforms, but it certainly doesn't work on Linux. It makes some scripts not work, so I'm commenting it out. * Fix bootloader VID and PID.
9 lines
304 B
Bash
Executable File
9 lines
304 B
Bash
Executable File
#!/bin/sh
|
|
set -e # fail the script if a command fails
|
|
|
|
node jump-to-bootloader.js
|
|
./blhost --usb 0x15a2,0x0073 flash-security-disable 0403020108070605
|
|
./blhost --usb 0x15a2,0x0073 flash-erase-region 0xc000 475136
|
|
./blhost --usb 0x15a2,0x0073 flash-image uhk-right.srec
|
|
./blhost --usb 0x15a2,0x0073 reset
|