Author Topic: wch openocd liberated from proprietary driver  (Read 6983 times)

0 Members and 1 Guest are viewing this topic.

Offline jnk0leTopic starter

  • Regular Contributor
  • *
  • Posts: 52
  • Country: pl
wch openocd liberated from proprietary driver
« on: February 19, 2024, 12:07:58 am »
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


« Last Edit: March 10, 2024, 01:46:35 pm by jnk0le »
 

Offline prosper

  • Regular Contributor
  • *
  • Posts: 82
  • Country: ca
Re: wch openocd liberated from proprietary driver (WCH-LinkE only)
« Reply #1 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. 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!
 

Offline jnk0leTopic starter

  • Regular Contributor
  • *
  • Posts: 52
  • Country: pl
Re: wch openocd liberated from proprietary driver (WCH-LinkE only)
« Reply #2 on: February 24, 2024, 03:01:55 pm »
Which wchlinks does it support? (wait, i see, the linkE only)
Should support all, but the button-less one still needs proprietary driver.

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.
It's basically generic openocd with added support for WCH stuff.


is this going to be upstreamed, or is the plan to maintain it as a fork?
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
« Last Edit: February 25, 2024, 11:45:12 pm by jnk0le »
 

Offline jnk0leTopic starter

  • Regular Contributor
  • *
  • Posts: 52
  • Country: pl
Re: wch openocd liberated from proprietary driver (WCH-LinkE only)
« Reply #3 on: February 26, 2024, 12:32:21 am »
Quote
Should support all, but the button-less one still needs proprietary driver.

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)
« Last Edit: February 26, 2024, 12:43:05 am by jnk0le »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf