我有一个ATmega328P-XMINI微芯片(谷歌给我的结果是它是一个8位芯片)。
我对嵌入式编程是个新手。上路的时候需要一些帮助。现在,我只是在尝试与avrdude建立连接(稍后将代码加载到芯片上时,我只会尝试获得一个健康的连接)。但是我得到了这个错误。我不知道如何解决这个问题,也不知道哪里出了问题。
我所知道的是usbdev输入输出错误,我认为这是罪魁祸首。
另一行惊呼usb设备正忙,也令人怀疑。
免责声明:我使用gentoo,因此无法访问atmel studio (我无法访问windows程序)。
发出的命令(尝试使用和不使用sudo):
sudo avrdude -p m328p -c xplainedmini错误码:
avrdude: usb_open(): cannot read serial number "Connection timed out"
avrdude: usb_open(): cannot read product name "Connection timed out"
avrdude: usbdev_open(): WARNING: failed to set configuration 1: Device or resource busy
avrdude: usbdev_send(): wrote -5 out of 7 bytes, err = Input/output error
avrdude: jtag3_send(): failed to send command to serial port
avrdude: failed to sync with the JTAGICE3 in ISP mode连接后的Dmesg:
[ 7704.920695] usb 2-2: new full-speed USB device number 6 using xhci_hcd
[ 7705.048875] usb 2-2: New USB device found, idVendor=03eb, idProduct=2145, bcdDevice=10.00
[ 7705.048877] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7705.048878] usb 2-2: Product: mEDBG CMSIS-DAP
[ 7705.048880] usb 2-2: Manufacturer: ATMEL
[ 7705.048881] usb 2-2: SerialNumber: ATML2323051800004280
[ 7705.051076] hid-generic 0003:03EB:2145.0003: hiddev97,hidraw1: USB HID v1.11 Device [ATMEL mEDBG CMSIS-DAP] on usb-0000:00:14.0-2/input0
[ 7705.051145] cdc_acm 2-2:1.1: ttyACM0: USB ACM devicemicrochip documentation and product page
任何关于调试这个问题的技巧,我都非常感谢。
发布于 2020-02-11 21:39:34
不要紧,我花了20分钟来阐述这个问题并对其进行格式化。才能意识到把它插上再插上就能解决它。
我是个笨蛋!
https://stackoverflow.com/questions/60170128
复制相似问题