我有atmega1281和AD-USBISP V03.6
我有编译问题写在闪存上
问题是
sudo avrdude -p m1281 -P /dev/ttyUSB0 -c stk500v2 -U flash:w:test.hex:i
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0xffffff (retrying)
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0xffffff (retrying)
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0xffffff
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.我猜想的第一个问题是stk500v2_ReceiveMessage(): timeout
但是我不知道如何解决这个问题。
如何解决这个问题,把test.hex写在avr的flash上?
发布于 2015-09-17 04:41:09
您可以使用-c选项选择编程器类型,对于USBISP使用-c usbasb。因此,请尝试以下操作
sudo avrdude -p m1281 -P /dev/ttyUSB0 -c usbasb -U flash:w:test.hex:i如果失败,请添加另一个选项-B 10来设置时钟
sudo avrdude -p m1281 -P /dev/ttyUSB0 -B 10 -c usbasb -U flash:w:test.hex:i阅读更多信息here
https://stackoverflow.com/questions/32604274
复制相似问题