-1

我正在使用 mac/avrcrosspack。

这应该将 hexfile 写入芯片:

avrdude -c avrisp -p t45 -P /dev/tty.usbmodem411 -e -b 19200  –U flash:w:gp2.hex:i

但它只读取芯片的内容并愉快地结束:

avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.05s
avrdude: Device signature = 0x1e9206
avrdude: erasing chip
avrdude: safemode: Fuses OK (H:FF, E:DF, L:E2)
avrdude done.  Thank you.

即使我将文件名更改为文件夹中不存在的文件名,它也会这样做。看起来它找不到文件,所以它只是退出而没有错误。如何在 flash:w: 参数中指定整个路径,或者我应该将十六进制放在哪里才能正常工作?

4

1 回答 1

0

but it only reads the contents of the chip and happily ends:

I don't see where it "reads the contents", but it seems to only erase the chip and doesn't perform the flashing afterwards.

avrdude: erasing chip

Looking at your command line, the -e (erase) parameter may override the following flash option. As far as i know, if you flash a device, the erase is performed implicitly.

Try removing the -e option.

于 2014-01-17T07:52:22.180 回答