Author Topic: Successful using Ch32v003 on Breakout boards, but not Ch32v203 chips  (Read 935 times)

0 Members and 1 Guest are viewing this topic.

Offline jlsiliconTopic starter

  • Contributor
  • Posts: 13
  • Country: us
I have had success in mounting / using Ch32v003 chips on Tssop-to-Dip Breakout boards.
Straight forward, no Xtal needed, Flashed, code ran.

But, I have had pretty much zero success with the Ch32v203 chips with me mounting them on the Tssop Breakout boards..
I used the -F6P6 & -F8P6 chips.

Ch32v203f8p6 Pinout :
https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.aliexpress.com%2Fi%2F1005005801896958.html&psig=AOvVaw15t_64zYyAZnWOtGVFsbIn&ust=1714918443225000&source=images&cd=vfe&opi=89978449&ved=0CBIQjRxqFwoTCNClrZCm9IUDFQAAAAAdAAAAABAJ

Ch32v203f8p6 suggested board schematic :
https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.cnblogs.com%2Fzxyy-%2Fp%2F16689243.html&psig=AOvVaw296XSjPBuPeeltaoA_LeMr&ust=1714917556959000&source=images&cd=vfe&opi=89978449&ved=0CBIQjRxqFwoTCLCGgNiT9IUDFQAAAAAdAAAAABAE

The WCH-E Linker connects with the MounRiverStudio, but does not see / download to the Ch32v203 chips.
- Let me correct that - once in a while, the Ch32v203 pops up in the menu:Download:Config panel as MCU Type.
- Two chips, I finally downloaded to, one 2003 blinked slowly a few times then stopped, I clicked reset pin: blinked twice then stopped again - nothing from the printf() Uart back.

I connected Reset with 10k pullup and 0.1uf bypass cap, and the 0.1uF & 10uF caps across Vdd & Vss pins.

They seem very flakey, and unreliable ...
I thought maybe the internal osc mode was jittery - and adding the ext xtal might fix this , but the -F8p6 does not have ext osc pins.

I tested the Debugger on my bought Ch32v203c8t6 Bluepill boards , Ch32v003F4P6 starter board, my self made breakout mounted Chh3v003f4p6 , ...
- they all Link / Flash / run great.
I made projects with SD card, PSRAm , mpu6050 , qmc5883, etc - successfully.

But these Ch32v203F8T6 usually don't seem to work on simple reakout boards...

Anybody have ideas any ... ?


« Last Edit: May 04, 2024, 03:32:25 pm by jlsilicon »
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6026
  • Country: es
Suggested schematic... Show yours, and pictures of the real thing.
For example, capacitors must be as close as possible, not 10cm away.
Make sure the config bits are not enabling the Brown out reset.
« Last Edit: May 04, 2024, 02:22:09 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline corgon

  • Newbie
  • Posts: 5
  • Country: cz
To program this chip you must connect SWDIO and also SWCLK pins to WCH-E.
 

Offline jlsiliconTopic starter

  • Contributor
  • Posts: 13
  • Country: us
I followed the same Debug connections as for the mounted Ch32f003f6p6 chips - that I tested as working, but Not for the Ch32v203 chips.

Debugger :  Ch32v203f8p6 :

SWD --------> p0 PD6/SWDIO
3V3 ---------> Vdd
Gnd ---------> Vss

-and-

SWD --------> p0 PD6/SWDIO
SWC --------> p1 PD7/SWCLK
3V3 ---------> p3 Vdd
Gnd ---------> p4 Vss

-and-

SWD --------> p0 PD6/SWDIO
SWC --------> p1 PD7/SWCLK
3V3 ---------> p3 Vdd
Gnd ---------> p4 Vss
RST ---------> p5 NRST

I tried with breadboard , and direct pinning and soldering the caps , as pictured - still no results.
I had a few results (Blinked a few times then stopped , no Uart output) , out of 2 of the boards - after making 8 boards.

The hanging wire in the picture is the RST - so I can touch to Gnd to reset.

Another schematic Link :
https://www.wch.cn/uploads/image/20231226/1703596323131395.png
Which gaveme the correction for the Uart TX/RX = PA9/PA10.
« Last Edit: May 04, 2024, 04:40:25 pm by jlsilicon »
 

Offline jlsiliconTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Actually after rewiring the Uart to Tx/Rx = PA9/PA10 :
- i do get garbage on the Terminal - if I click the Reset pin.
Wihich shows that the Ch32v203 is booting some with a bad speed, then crashing (stops because no Led blink).
« Last Edit: May 04, 2024, 05:11:04 pm by jlsilicon »
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6026
  • Country: es
Always solder the capacitors directly on the pins.
Don't you see the solder bridge in pin 12?
« Last Edit: May 04, 2024, 05:11:44 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline jlsiliconTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Ok, soldering the caps fixed one chip board.

Also, I had 240R instead of 1K on the LED - which kept crashing/reseting the chip - and the Uart could Not link.
The 1K in series with the LED instead of 240R solved the crashing.
Will try other boards.

Thanks !

ps: I can Flash my programs now, and they run - including reading the Uart back.
  But, the menu:Download:Config - still gives me a "Failed to Configure MCU" - if I click 'clear Code Protect' btn ... for any of my Breakout ch32v203 boards ...
« Last Edit: May 05, 2024, 02:19:54 am by jlsilicon »
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6026
  • Country: es
Ensure VDD supply is strong enough.
Apart from the 10uF on the chip, try adding a larger 100uF on the breadboard.

240R is nothing, a red led (~1.8Vf) will draw only 6mA at 3.3V.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf