MCU-Flash-Tools icon indicating copy to clipboard operation
MCU-Flash-Tools copied to clipboard

rvprog: WHC-LinkE returns code 2 (Unsupported programmer)

Open mahagr opened this issue 1 year ago • 3 comments

I tried to flash firmware to game console, but the rvprog returns an error code:

Searching for WCH-Link in RISC-V mode ...
ERROR: Unsupported programmer (code: 2)!

The programmer is from a different vendor (icbbuy.com), but uses the same USB ID:

Bus 003 Device 078: ID 1a86:8010 QinHeng Electronics WCH-Link

Should I just add the code manually or is there something else I need to consider before updating the rvprog code?

mahagr avatar Dec 22 '24 22:12 mahagr

Looks like it's using CH32V307, but is compatible with LinkE:

https://github.com/cnlohr/ch32v003fun/blob/master/minichlink/pgm-wch-linke.c#L332C9-L334

The programmer came with 10x CH32V003 chips included.

mahagr avatar Dec 22 '24 22:12 mahagr

Try now. If you installed the tool via pip, you need to reinstall or update it.

wagiminator avatar Dec 23 '24 08:12 wagiminator

Works, thanks!

mahagr avatar Dec 23 '24 20:12 mahagr