我想用atmega8做一个电路的克隆,我有原理图和电路板,问题是我想读atmega8芯片上的十六进制文件,我的问题是它是否可行?如果我想在avrdudess上检测芯片的类型,是否需要编写锁字节、高熔断器和低熔断器,还是只需要预测锁字节?
发布于 2016-08-15 18:07:06
-U flash:r:flash.hex:i -U eeprom:r:eeprom.hex:i
选项添加到avrdude
调用中来读取flash和EEPROM的内容。0xFF
都被以某种方式处理时,可能是特殊情况,例如,从闪存加载默认配置。如果常量存储在eeprom中,那么如果不复制它的内容,程序将无法按预期工作。正如您所看到的,只复制它是更安全的,除非您有一个很好的反驳(一些技术问题,或者您绝对确信闪存中的程序没有使用eeprom或其他东西)。- read the eeprom and flash memories, fuse and lock bytes of the original chip
- (put the original chip aside)
- perform an erase cycle on the chip you want to become a copy of the original one (make sure EESAVE is unprogrammed)
- program the fuse bytes (be cautious about RSTDISBL and similar bits)
- (connect crystal/resonator/RC/... if necessary -- see 'Clock Sources' section in the datasheet)
- program the eeprom
- **check the "Disable flash erase (-D)" checkbox,** program the flash memory and lock bits (it's preferable to do it with one invocation of `avrdude`, make sure `-U:flash:w:...` option is given before `-U:lock:w:...`)
你必须使用ISP程序员,ArduinoISP应该就足够了。
https://stackoverflow.com/questions/38942149
复制相似问题