【问题标题】:avrdude error on atmega1281atmega1281 上的 avrdude 错误
【发布时间】:2015-12-12 18:50:05
【问题描述】:

我有 atmega1281 和 AD-USBISP V03.6
我在 Flash 上写入编译问题
问题是

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
但我不知道如何解决这个问题。
如何解决这个问题并在avr的flash上​​写test.hex

【问题讨论】:

    标签: avr avrdude


    【解决方案1】:

    您可以使用-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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-13
      • 1970-01-01
      • 2017-07-08
      • 2011-03-21
      相关资源
      最近更新 更多