ch32-rs / wlink

An open source WCH-Link library/command line tool written in Rust.
Apache License 2.0
157 stars 26 forks source link

Is there a way to unlock the flash of the different boards. #15

Closed KurtE closed 1 year ago

KurtE commented 1 year ago

That is some of the example boards I have received have their flash locked. I needed to use the WCH Link utility image unlock button to allow me to program the boards.

But after I update the USB driver to work with wlink, that become more problematic... So wondering if there is a command line way to do this.

Thanks Kurt

andelf commented 1 year ago

I unlock the flash using https://github.com/ch32-rs/wchisp It has a predefined config register map.

KurtE commented 1 year ago

Thanks, I will have to try it out.

Looks like all of the artifacts up there have expired. So will see what it takes to try to build it.

Edit: it built and was able to run it. Once I updated the USB driver was able to flash an ch32v307 :)