Electronics > Microcontrollers

wch openocd liberated from proprietary driver

(1/1)

jnk0le:
openocd fork for wch is finally liberated from proprietary driver.
Only requirement is to install winusb (libusb) by zadig tool. (uninstall proprietary one first)

All that was needed was this:
https://github.com/jnk0le/openocd-wch/commit/aa6b548f74dbfba2f240660fcc70ed70f12a1ca9

Literally.

ch347 (aka ch342 aka ch345 aka ch341) based adapters couldn't be liberated due to missing some files.

prebuild packages are available here: https://github.com/jnk0le/openocd-wch/releases/tag/28012024-liberated


prosper:
so, this consists of a flash driver for the various wch mcus, a transport driver for the single wire debug interface, and a driver for tge various wchlink programmers?

at a glance, it seems to support riscv and arm mcus, but not the 8051s. Which wchlinks does it support? (wait, i see, the linkE only)

is this going to be upstreamed, or is the plan to maintain it as a fork?



very exciting. thanks for your work on this!

jnk0le:

--- Quote from: prosper on February 21, 2024, 02:44:00 am ---Which wchlinks does it support? (wait, i see, the linkE only)

--- End quote ---
Should support all, but the button-less one still needs proprietary driver.


--- Quote from: prosper on February 21, 2024, 02:44:00 am ---so, this consists of a flash driver for the various wch mcus, a transport driver for the single wire debug interface, and a driver for tge various wchlink programmers?

at a glance, it seems to support riscv and arm mcus, but not the 8051s.

--- End quote ---
It's basically generic openocd with added support for WCH stuff.



--- Quote from: prosper on February 21, 2024, 02:44:00 am ---is this going to be upstreamed, or is the plan to maintain it as a fork?

--- End quote ---
The code is spaghetti enough to not get upstreamed, not to mention the way it's being developed (https://github.com/jnk0le/openocd-wch/pull/1#issuecomment-1738259661) and merged back into the tree

jnk0le:

--- Quote ---Should support all, but the button-less one still needs proprietary driver.
--- End quote ---

Wait, button less one is CH549 (aka ch375 of course). Should be liberated as well.

ch347 is the HS jtag flashed onto WCH-LinkE (or a dedicated chip with jtag)

Navigation

[0] Message Index

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod