Author Topic: CH32V003 standalone programmer WCH-MCU-DL  (Read 4886 times)

0 Members and 1 Guest are viewing this topic.

Online mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13790
  • Country: gb
    • Mike's Electric Stuff
CH32V003 standalone programmer WCH-MCU-DL
« on: January 23, 2024, 12:10:59 pm »
So I saw this  standalone programmer on Aliexpress


Edit - updated Aliexpress link to page with all 4 versions - suggest searching "WCH-MCU-DL" for latest

there is some English documentation here: https://www.wch.cn/bbs/thread-113213-1.html


So far I've got as far as creating a key file and downloading a file to the board, but haven't yet managed to get it to talk to the chip.
Has anyone managed to get it to work ?
« Last Edit: February 02, 2024, 05:14:04 pm by mikeselectricstuff »
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Online mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13790
  • Country: gb
    • Mike's Electric Stuff
Re: CH32V003 standalone programmer WCH-MCU-DL
« Reply #1 on: January 23, 2024, 02:29:42 pm »
Some more playing...

Screen colour shows status - green:ready, yellow:busy.red:error.
Starting a program op by shorting J6 pin5/6 sets the BUSY pin of J6 while it's trying - the Busy pin does not assert if programming started using S3

I'm seeing UART traffic on J5, suggesting it's trying to use UART comms not SWD. I'd expect to see an option in DlPubtool to select mode, but can't see anything obvious

Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline HwAoRrDk

  • Super Contributor
  • ***
  • Posts: 1513
  • Country: gb
Re: CH32V003 standalone programmer WCH-MCU-DL
« Reply #2 on: January 24, 2024, 02:48:03 am »
What version of the WCH-MCU-DL do you have? The forum posting seems to state that only the CH32V208-based programmer supports CH32V003 and its single-wire protocol.

Or maybe the thing only supports programming CH32V003 via UART using the bootloader (i.e. like with WCHISPTool) because it doesn't support the single-wire protocol (only regular SWD).

What version firmware is the programmer running? Maybe it needs an upgrade...
 

Online mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13790
  • Country: gb
    • Mike's Electric Stuff
Re: CH32V003 standalone programmer WCH-MCU-DL
« Reply #3 on: January 24, 2024, 09:34:49 am »
Programmer is CH32F103, Firmware V2422V
The forum post is not entirely clear
Quote
The current factory programmer version (3.3V/5V) only support CH32Vxxx series chips(v2420v).If you need to use a programmer to program ch32Fxxx series chip,you need to upgrade the programmer firmware(V2420F)

The WCH-MCU-DL be designed of CH32V208 support V003 series chip programing.And the programmer support all series chip.

Can't see any mention that the 103 doesn't support SWD, and the 103 manual mentions SWD. Seems the 208 is a later version though

I've ordered a V208 version
« Last Edit: January 24, 2024, 09:41:19 am by mikeselectricstuff »
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4069
  • Country: nz
Re: CH32V003 standalone programmer WCH-MCU-DL
« Reply #4 on: January 24, 2024, 09:53:52 am »
Can't see any mention that the 103 doesn't support SWD, and the 103 manual mentions SWD. Seems the 208 is a later version though

The SWD in the 003 is I seem to recall a different SWD from the bigger chips (and none of them are Arm SWD).
 

Online mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13790
  • Country: gb
    • Mike's Electric Stuff
Re: CH32V003 standalone programmer WCH-MCU-DL
« Reply #5 on: January 25, 2024, 09:33:03 am »
Just had a reply confirming my suspicion from  WCH :
Quote
The WCH-MCU-DL of CH32F103 do not support CH32V003.

I'll report back when I get the 208 version.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Online mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13790
  • Country: gb
    • Mike's Electric Stuff
Re: CH32V003 standalone programmer WCH-MCU-DL
« Reply #6 on: February 02, 2024, 01:53:35 pm »
Received the 208 version
It does appear to work, in that it completes without error - not checked the actual code yet.
programs in under 2 secs even with a full chip.

However this one only supports 5V.
It does appear to work OK if the chip is powered from 3.3v - as the programmer will normally only be connected to the SWIO pin, this is probably not a big issue.

Looking again at the Aliexpress listing, there appear to be 4 variants :

CH32V208W-5V
CH32F103R-5V
CH32F103R-2.3V
PWRCFG Generic.

I think the last is a universal voltage version. Ordered one, but may be delayed by CNY



Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 
The following users thanked this post: SteveyG

Online mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13790
  • Country: gb
    • Mike's Electric Stuff
Re: CH32V003 standalone programmer WCH-MCU-DL
« Reply #7 on: February 02, 2024, 07:01:16 pm »
Quick video running through the use of this unit :
https://youtu.be/Qnt_43PZcyo
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 
The following users thanked this post: paf, bingo600

Online mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13790
  • Country: gb
    • Mike's Electric Stuff
Re: CH32V003 standalone programmer WCH-MCU-DL
« Reply #8 on: February 08, 2024, 12:18:25 pm »
Received the "PWRCFG Generic. " version.
As expected, this supports 1.8, 3.3 and 5V, both for logic levels and the power output on the programming header.
Voltage is set by the configuration in the .datakey file.

« Last Edit: February 08, 2024, 01:18:16 pm by mikeselectricstuff »
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline SteveyG

  • Supporter
  • ****
  • Posts: 993
  • Country: gb
  • Soldering Equipment Guru
Re: CH32V003 standalone programmer WCH-MCU-DL
« Reply #9 on: February 10, 2024, 09:11:35 pm »
Just received my dev boards, MCUs and the PWRCFG Generic programmer. Looks ideal for some little LED projects I had planned - nearly had a heart attack when the PIC18F I had planned to use had increased in price to nearly £4.50  :o
YouTube Channel: https://www.youtube.com/user/sdgelectronics/
Use code: “SDG5” to get 5% off JBC Equipment at Kaisertech
 

Offline tinayetsina

  • Newbie
  • Posts: 1
  • Country: zw
    • Github Profile
Re: CH32V003 standalone programmer WCH-MCU-DL
« Reply #10 on: February 29, 2024, 09:12:08 am »
There is a video on their Youtube channel explaining how to operate and use this standalone programmer

https://youtu.be/bxpzd_jhYTs

You can check it out if you have any other WCH-related questions you can contact me
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf