系統(tǒng)版本:Ubuntu 20.04.3 LTS
內(nèi)核版本:5.10.102.1-microsoft-standard-WSL2
MRS工具鏈版本:MRS_Toolchain_Linux_x64_V1.40(于2022年4月6日晚在官網(wǎng)下載)
問題描述:在MRS_Toolchain_Linux_x64_V1.40/OpenOCD/bin目錄下運(yùn)行下面命令啟動openocd失敗
$ sudo ./openocd -f wch-riscv.cfg
./openocd: symbol lookup error: ./openocd: undefined symbol: jaylink_device_get_usb_bus_ports
嘗試安裝libjaylink-dev后依然失敗
$ sudo apt install libjaylink-dev
$ sudo ./openocd -f wch-riscv.cfg
./openocd: symbol lookup error: ./openocd: undefined symbol: jaylink_device_get_usb_bus_ports
libjaylink-dev版本0.1.0-3
$ sudo apt search libjaylink-dev
Sorting... Done
Full Text Search... Done
libjaylink-dev/focal,now 0.1.0-3 amd64 [installed]
? library for interacting with J-Link programmers (development files)
猜測是libjaylink-dev api不對引起的問題,希望給出解決方案,謝謝