Im struggling with basic wch-link on ch549 on Ubuntu. The problem is that wch-link doesnt want connect to stm32f0 via swd.
./wlink -vv regs
15:22:51 [TRACE] (1) wlink::usb_device::libusb: [src/usb_device.rs:112] Device: 1a86:8012
15:22:51 [DEBUG] (1) wlink::usb_device::libusb: Serial number: "BC66FB29B78F"
15:22:51 [DEBUG] (1) nusb::platform::linux_usbfs::device: Opened device fd=3 with id 0
15:22:51 [DEBUG] (1) nusb::platform::linux_usbfs::device: Claimed interface 0 on device id 0
15:22:51 [DEBUG] (1) nusb::platform::linux_usbfs::device: Released interface 0 on device 0: Ok(())
15:22:51 [DEBUG] (1) nusb::platform::linux_usbfs::device: Closing device 0
Error: WCH-Link is connected, but is not in RV mode
That is happens with WCH-Link_APP_IAP_ARM.bin
In that case I have both LED are always ON.
If I use WCH-Link_APP_IAP_RV.bin
./wlink -vv regs
15:23:27 [TRACE] (1) wlink::usb_device::libusb: [src/usb_device.rs:112] Device: 1a86:8010
15:23:27 [DEBUG] (1) wlink::usb_device::libusb: Serial number: "BC66FB29B78F"
15:23:27 [DEBUG] (1) nusb::platform::linux_usbfs::device: Opened device fd=3 with id 0
15:23:27 [DEBUG] (1) nusb::platform::linux_usbfs::device: Claimed interface 0 on device id 0
15:23:27 [TRACE] (1) wlink::probe: [src/probe.rs:217] send command: GetProbeInfo
15:23:27 [TRACE] (1) wlink::probe: [src/probe.rs:198] send 810d01 01
15:23:27 [DEBUG] (1) nusb::platform::linux_usbfs::device: Submitted URB 0x61c4057b2360: 4 bytes on ep 1
15:23:27 [DEBUG] (2) nusb::platform::linux_usbfs::device: Handling events for device 0
15:23:27 [DEBUG] (2) nusb::platform::linux_usbfs::device: URB 0x61c4057b2360 for ep 1 completed, status=0 actual_length=4
15:23:27 [DEBUG] (1) nusb::platform::linux_usbfs::device: Submitted URB 0x61c4057b2950: 64 bytes on ep 81
15:23:27 [DEBUG] (2) nusb::platform::linux_usbfs::device: Handling events for device 0
15:23:27 [DEBUG] (2) nusb::platform::linux_usbfs::device: URB 0x61c4057b2950 for ep 81 completed, status=0 actual_length=7
15:23:27 [TRACE] (1) wlink::probe: [src/probe.rs:208] recv 820d04 02080100
15:23:27 [INFO] Connected to WCH-Link v2.8(v28) (WCH-Link-CH549)
......
Error: Probe is not attached to an MCU, or debug is not enabled. (hint: use wchisp to enable debug)
I used all versions of WCH-Link 2.8, 2.11, 2.12m the same result.
So, Im wonder does it support ARM chips like stm32f0?
Im struggling with basic wch-link on ch549 on Ubuntu. The problem is that wch-link doesnt want connect to stm32f0 via swd.
Error: WCH-Link is connected, but is not in RV mode
That is happens with WCH-Link_APP_IAP_ARM.bin
In that case I have both LED are always ON.
If I use WCH-Link_APP_IAP_RV.bin
I used all versions of WCH-Link 2.8, 2.11, 2.12m the same result.
So, Im wonder does it support ARM chips like stm32f0?