I can program the CH32L103C8T6 MCU through the USB bootloader. The program starts and runs normally when powered on. But I cannot use the WCH-Link-R1-1v1 to debug. When I try to load the WCH-Link debugger, it just doesn't work. The error is...
Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
localhost:3333: No connection could be made because the target machine actively refused it.
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
localhost:3333: No connection could be made because the target machine actively refused it.
localhost:3333: No connection could be made because the target machine actively refused it.
Worth noting that when trying to connect, the running firmware on the MCU stops, and it won't start even by pressing the RESET pushbutton. Must cycle VDD to run the firmware again.
I was using this debugger with a CH32V203 chip without issues before, so the WCH-Link is not damaged...
What can be the problem? Please help!