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.
中間重復(fù)報錯部分就不貼了