Download the file m128diag.hex
to the ATmega128 chip using the
STK500 programmer connected to the default serial port:
% avrdude -p m128 -c stk500 -y -e -i m128diag.hex avrdude: AVR device initialized and ready to accept instructions avrdude: Device signature = 0x1e9702 avrdude: erasing chip avrdude: erase-rewrite cycle count is now 52 avrdude: done. avrdude: reading input file "m128diag.hex" avrdude: input file m128diag.hex auto detected as Intel Hex avrdude: writing flash (18130 bytes): 18175 avrdude: 18176 bytes of flash written avrdude: verifying flash memory against m128diag.hex: avrdude: reading on-chip flash data: 18175 avrdude: verifying ... avrdude: 18176 bytes of flash verified avrdude done. Thank you. %
Upload the flash memory from the ATmega128 connected to the STK500
programmer and save it in raw binary format in the file named
m128diag.flash
:
% avrdude -p m128 -c stk500 -f r -o m128diag.flash avrdude: AVR device initialized and ready to accept instructions avrdude: Device signature = 0x1e9702 avrdude: current erase-rewrite cycle count is 52 (if being tracked) avrdude: reading flash memory: 131071 avrdude: writing output file "m128diag.flash" avrdude done. Thank you. %
Go to the first, previous, next, last section, table of contents.