首先,由于一些网络问题,我很难通过Homebrew安装avrdude。所以我从手工下载它。
但是,在解压缩我刚刚下载的avrdude-7.0.tar.gz文件之后,我在那里找不到bin目录。然后,我通过PATH将其目录添加到系统export PATH=$PATH:/Users/myUserName/Developer/bin/avrdude-7.0/bin/中。但是当我重新启动电脑后尝试在终端上使用avrdude时,上面写着zsh: command no
我想打电话给SCons的avrdude作为目标。例如,运行scons erase-device应该运行avrdude命令。我试图通过创建调用avrdude的Builder对象并将它们添加到环境中来做到这一点。# a string forming a base avrdude command that we can just add on to in the targets
avrdude_base = 'avrdudeto erase everything--flash, EE
avrdude -p m1280 -c avrispmkII -P usb -U test.hexavrdude: usb_open(): cannot read serial number "error sending control message: Operation not permitted"
avrdude: usb_open(): cannot read product name"error sending control message: Operation not permitted&