When I program Attiny40, I get a verification error
C:avrdude>avrdude.exe -c serbb_prog -P com2 -p t40 -U flash:w:D:developattiny40-testDebugattiny40-test.hex:a
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.08s
avrdude.exe: Device signature = 0x1e920e
avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude.exe: erasing chip
avrdude.exe: reading input file "D:developattiny40-testDebugattiny40-test.hex"
avrdude.exe: input file D:developattiny40-testDebugattiny40-test.hex auto detected as Intel Hex
avrdude.exe: writing flash (70 bytes):
Writing | ################################################## | 100% 1.24s
avrdude.exe: 70 bytes of flash written
avrdude.exe: verifying flash memory against D:developattiny40-testDebugattiny40-test.hex:
avrdude.exe: load data flash data from input file D:developattiny40-testDebugattiny40-test.hex:
avrdude.exe: input file D:developattiny40-testDebugattiny40-test.hex auto detected as Intel Hex
avrdude.exe: input file D:developattiny40-testDebugattiny40-test.hex contains 70 bytes
avrdude.exe: reading on-chip flash data:
Reading | ################################################## | 100% 0.93s
avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x0040
0xff != 0xfc
avrdude.exe: verification error; content mismatch
avrdude.exe done. Thank you.
Flash dump differs from the hex file:
C:avrdude>avrdude.exe -c serbb_prog -P com2 -p t40 -t
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.08s
avrdude.exe: Device signature = 0x1e920e
avrdude> dump flash 0x0 0x50
>>> dump flash 0x0 0x50
- 11 c0 18 c0 17 c0 16 c0 15 c0 14 c0 13 c0 12 c0 |................|
0010 11 c0 10 c0 0f c0 0e c0 0d c0 0c c0 0b c0 0a c0 |........ . . . .|
0020 09 c0 08 c0 11 27 1f bf cf e3 d1 e0 de bf cd bf | ....'..........|
0030 02 d0 07 c0 e5 df 28 9a 51 e0 46 b1 45 27 46 b9 |......(.Q.F.E'F.|
0040 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
avrdude> quit
>>> quit
avrdude.exe done. Thank you.
--
Best regards
|