-
Notifications
You must be signed in to change notification settings - Fork 12
Flash and use hydrausb3_fw example on Linux
Benjamin Vernoux edited this page Nov 1, 2023
·
2 revisions
Latest Pre-built binaries archive for wch-ch56x-isp is available for Ubuntu on https://github.com/hydrausb3/wch-ch56x-isp/releases
- So you can download it and extract it (with 7-Zip ...) and skip steps Prerequisites / Clone wch-ch56x-isp repository with git & Build wch-ch56x-isp code Flash and use hydrausb3_fw example on Linux
- Install pkg-config and libusb-1.0-0-dev
sudo apt-get install pkg-config libusb-1.0-0-dev
cd ~
git clone --recursive https://github.com/hydrausb3/wch-ch56x-isp.git
cd ~
cd wch-ch56x-isp
make clean all
- On HydraUSB3 (disconnect any cable/power supply) and add a Jumper on
Flash Mode P3
- Connect “USB A Male to USB A male cable” to HydraUSB3 then the other side to PC(USB2 or USB3 port)
- The PC shall detect the WCH CH569W Bootloader (enumeration with USB2 HS)
- You can check it is well recognized with
lsusb
which shall find "ID 4348:55e0 WinChipHead" - Note after 10s of inactivity the bootloader exit and run the program
- You can just reset the board to re-enter in bootloader by pressing(1s) & releasing
3V3 DISABLE
button(at left of USB3 connector)
- You can just reset the board to re-enter in bootloader by pressing(1s) & releasing
- You can check it is well recognized with
- Launch(quickly to avoid 10s timeout)
wch-ch56x-isp
to flash(and verify) the hydrausb3_fw example (hereHydraUSB3_Blink_ULED
)sudo ./wch-ch56x-isp -v -f=~/hydrausb3_fw/HydraUSB3_Blink_ULED/obj/HydraUSB3_Blink_ULED.bin
- On HydraUSB3 Remove the Jumper on
Flash Mode P3
- On HydraUSB3 Press(1s) & Release the
3V3 DISABLE
button(at left of USB3 connector) to reset the board
- The HydraUSB3 board shall execute the HydraUSB3_Blink_ULED firmware example by blinking the ULED
- Note: If you press UBTN the ULED blink very fast