caojinyu 发表于 2012-10-12 15:31:48

我的avrdude烧写总是出现这个问题

我在ubuntu12.04下面用avrdude烧写avr程序,总是出现一个问题。但是有的时候就不出现,然后烧写成功。
sudo avrdude -c usbasp   -F -pm16 -e -U flash:w:LED2.hex:i

avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9403
avrdude: erasing chip
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: reading input file "LED2.hex"
avrdude: writing flash (212 bytes):

Writing | ################################################## | 100% 0.07s



avrdude: 212 bytes of flash written
avrdude: verifying flash memory against LED2.hex:
avrdude: load data flash data from input file LED2.hex:
avrdude: input file LED2.hex contains 212 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.07s



avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
         0x0c != 0x00
avrdude: verification error; content mismatch

avrdude: safemode: lfuse changed! Was e1, and is now 0
Would you like this fuse to be changed back? n
avrdude: safemode: hfuse changed! Was 99, and is now 0
Would you like this fuse to be changed back? n
avrdude: safemode: Fuses OK

avrdude done.Thank you.
高手帮帮忙啊,这到底是怎么回事啊,郁闷了好几天了。

sunliezhi 发表于 2012-10-12 16:14:36

更换usbasp下载器的排线,
它自身的排线芯线比较细,传导不良,
换成粗些的排线。
以上是我“下多一次晕多一次”之后的发现,从此再无烦恼。
页: [1]
查看完整版本: 我的avrdude烧写总是出现这个问题