ch582m archlinux+mrs+wch-link
如果只是类似blink led这种最简单的程序,没有问题 灯也会正常闪
但只要多加一行CH58X_BLEInit();就无法烧录
主要报错如下
Info : wlink_init ok
Info : This adapter doesn't support configurable speed
Info : JTAG tap: riscv.cpu tap/device found: 0x00000001 (mfg: 0x000 (), part: 0x0000, ver: 0x0)
Warn : Bypassing JTAG setup events due to errors
Info : [riscv.cpu.0] datacount=0 progbufsize=0
Warn : We won't be able to execute fence instructions on this target. Memory may not always appear consistent. (progbufsize=0, impebreak=0)
Error: OpenOCD only supports Debug Module version 2 (0.13) and 3 (1.0), not 0 (dmstatus=0x0). This error might be caused by a JTAG signal issue. Try reducing the JTAG clock speed.
Error: libusb_bulk_write error: LIBUSB_ERROR_PIPE
Error: libusb_bulk_read error: LIBUSB_ERROR_PIPE
Info : WCH-Link version 0.0
Error: libusb_bulk_write error: LIBUSB_ERROR_PIPE
Error: libusb_bulk_read error: LIBUSB_ERROR_PIPE
Error: communication fail,please contact [个人信息保护,已隐藏]
-------------------------------------End --------------------------------------
Operation Finished (took 187s.613ms). Open debug interface has code leak risk.
After download, please close simulator-debug interface, enable code and data protection promptly.
中间重复报错部分就不贴了