最近一直在研究stm32f103VET6开发板
使用的野火CMSIS-DAP仿真器进行与指南者板子开发。
使用的是基于ubuntu openocd + vscode +makefile环境 进行烧写与程序仿真。
相比IDE也有很多优势,用熟了简单方便而且还快,还是免费环境,更主要是linux环境。
但最近发生两次这个Error: unable to find CMSIS-DAP device问题
进行了大量百度和谷歌,多次安装系统,最终定位了问题。
有很多介绍使用rules.d方案,没有效果!!!!
首先问题定位:
dji@dji-MANIFOLD-2-C:/home$ lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
|__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
|__ Port 2: Dev 3, If 0, Class=Hub, Driver=hub/4p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
|__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 11, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 2: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 2: Dev 6, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 2: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 1: Dev 5, If 2, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 1: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 1: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 12M