根基工程:
[root@host14 rules.d]# avrdude -c USBASP -p m328p
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
非 root 不会:
[user0@host14 ~]$ avrdude -c USBASP -p m328p
avrdude: Warning: cannot open USB device: Permission denied
avrdude: error: could not find USB device "USBasp" with vid=0x16c0 pid=0x5dc
avrdude done. Thank you.
该规则已添加如下/etc/udev/rules.d/21-usbasp.rules
:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", GROUP="users", MODE="0666"
我究竟做错了什么?