0

我有这个代码

#!/bin/bash 
MEEP="$(pwd)"
cd $MEEP 
$MEEP/avrdude -C $MEEP/avrdude.conf -patmega32u4 -cstk500v2 -Pusb -e -Ulock:w:0x3F:m -Uefuse:w:0xcb:m -Uhfuse:w:0xd8:m -Ulfuse:w:0xff:m
$MEEP/avrdude -C $MEEP/avrdude.conf -patmega32u4 -cstk500v2 -Pusb -Uflash:w:$MEEP/dosketch.cpp.hex:i -Ulock:w:0x2F:m

如您所见,avrdude avrdude.conf 十六进制文件和命令文件都在一个文件夹中。基本上我想做的就是在一个文件夹中完成所有的编程。我首先尝试了“./avrdude”来表示它在根文件夹中,但仍然有我下面的错误是

/Users/Demon/Desktop/MEEP/prog_tecla.command: line 5: /Users/Laura/avrdude: No such file or directory
/Users/Demon/Desktop/MEEP/prog_tecla.command: line 7: /Users/Laura/avrdude: No such file or directory
4

0 回答 0