ch32v003fun icon indicating copy to clipboard operation
ch32v003fun copied to clipboard

blink bricked CH32V003A4M6?

Open xsrf opened this issue 2 years ago • 3 comments

Hey, so is it possible that your blink example basically bricked my CH32V003A4M6? 🙈 The CH32V003A4M6 has SWIO and PD4 on the same physical pin. Your blink example toggles PD4 instantly. I use the official WCH-Link to flash the chip but after flashing blink (I've successfully flashed other code too) it won't connect anymore.

> minichlink.exe
Found WCH Link
WCH Programmer is LinkE version 2.8
link error, nothing connected to linker
Could not setup interface.

Do you know of a way to recover it?

xsrf avatar Sep 02 '23 14:09 xsrf

Use the "-u" option of mminichlink. You'll need to have the WCH-LinkE control the power to your board.

On Sat, Sep 2, 2023 at 10:47 AM Andreas @.***> wrote:

Hey, so is it possible that your blink example basically bricked my CH32V003A4M6? 🙈 The CH32V003A4M6 has SWIO and PD4 on the same physical pin. Your blink example toggles PD4 instantly. I use the official WCH-Link to flash the chip but after flashing blink (I've successfully flashed other code too) it won't connect anymore.

minichlink.exe Found WCH Link WCH Programmer is LinkE version 2.8 link error, nothing connected to linker Could not setup interface.

Do you know of a way to recover it?

— Reply to this email directly, view it on GitHub https://github.com/cnlohr/ch32v003fun/issues/234, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPEX7GUD6GRBQAMDZRTQPTXYNBHZANCNFSM6AAAAAA4IUSMR4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

dwillmore avatar Sep 02 '23 14:09 dwillmore

@dwillmore thx, that helped ;) I've seen the -tf option to disable the power supply and hoped it would work when it just enables the power for flashing, but that was not the case. Missed the -u somehow - thx!

Maybe adding a delay to the example at the beginning would help with that kind of issue? :)

xsrf avatar Sep 02 '23 15:09 xsrf

It may. I've been meaning to make some changes to the blink anyway.

On Sat, Sep 2, 2023 at 11:10 AM Andreas @.***> wrote:

@dwillmore https://github.com/dwillmore thx, that helped ;) I've seen the -tf option to disable the power supply and hoped it would work when it just enables the power for flashing, but that was not the case. Missed the -u somehow - thx!

Maybe adding a delay to the example at the beginning would help with that kind of issue? :)

— Reply to this email directly, view it on GitHub https://github.com/cnlohr/ch32v003fun/issues/234#issuecomment-1703859696, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPEX7DNWOH3BYS57JJEUPDXYND6RANCNFSM6AAAAAA4IUSMR4 . You are receiving this because you were mentioned.Message ID: @.***>

dwillmore avatar Sep 02 '23 15:09 dwillmore