error verifying flash data written in pn

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hi friends i never faced this problem before.

i tried rogramming my atmega 16 through a bsd programmer.

it writes to the flash but then says 'mismatch at first byte'

Quote:
> "make.exe" program

Creating load file for EEPROM: usart.eep
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 --no-change-warnings -O ihex usart.elf usart.eep || exit 0
c:\WinAVR\bin\avr-objcopy.exe: there are no sections to be copied!
avrdude -p atmega16 -P lpt1 -c bsd -U flash:w:usart.hex

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9403
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "usart.hex"
avrdude: input file usart.hex auto detected as Intel Hex
avrdude: writing flash (192 bytes):

Writing | ################################################## | 100% 0.06s

avrdude: 192 bytes of flash written
avrdude: verifying flash memory against usart.hex:
avrdude: load data flash data from input file usart.hex:
avrdude: input file usart.hex auto detected as Intel Hex
avrdude: input file usart.hex contains 192 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.06s

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

avrdude done. Thank you.

make.exe: *** [program] Error 1

> Process Exit Code: 2
> Time Taken: 00:00

i had changed some fuse bits to suite my external crystal. Then changed it back to the default. But this problem still exists.