|
From: | Mattew Fornero |
Subject: | [avr-gcc-list] AVR109-GCC bootloader problem on mega8 |
Date: | Sat, 1 Apr 2006 18:51:27 -0500 |
avrdude: verification error, first mismatch at byte 0x0000
0x12 != 0xff |
else if(val =='Z') { temp_int = 0xabcd; address = 0; _WAIT_FOR_SPM(); _PAGE_ERASE( address ); _WAIT_FOR_SPM(); _FILL_TEMP_WORD( address, temp_int); _WAIT_FOR_SPM(); _PAGE_WRITE( address << 1 ); _WAIT_FOR_SPM(); _ENABLE_RWW_SECTION(); sendchar('!'); sendchar('\r'); } |
C:\WinAVR\bin\avrdude -p atmega8 -P com2 -c avr109 -v -v -U flash:w:main.hex avrdude: Version 5.0 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ System wide configuration file is "C:\WinAVR\bin\avrdude.conf" Using Port : com2 Using Programmer : avr109 AVR Part : ATMEGA8 Chip Erase delay : 10000 us PAGEL : PD7 BS2 : PC2 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 200 StabDelay : 100 CmdexeDelay : 25 SyncLoops : 32 ByteDelay : 0 PollIndex : 3 PollValue : 0x53 Memory Detail : Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- eeprom 4 10 128 0 no 512 0 0 9000 9000 0xff 0xff flash 33 6 64 0 yes 8192 64 128 4500 4500 0xff 0x00 lfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 hfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 lock 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 calibration 0 0 0 0 no 4 0 0 0 0 0x00 0x00 signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00 Programmer Type : avr910 Description : Atmel AppNote AVR109 Boot Loader Connecting to programmer: . Found programmer: Id = "AVRBOOT"; type = S Software Version = 1.5; No Hardware Version given. Programmer supports auto addr increment. Programmer supports buffered memory access with buffersize=64 bytes. Programmer supports the following devices: Device code: 0x76 avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e9307 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 "main.hex" avrdude: input file main.hex auto detected as Motorola S-Record avrdude: writing flash (2138 bytes): Writing | ################################################## | 100% 1.28s avrdude: 2138 bytes of flash written avrdude: verifying flash memory against main.hex: avrdude: load data flash data from input file main.hex: avrdude: input file main.hex auto detected as Motorola S-Record avrdude: input file main.hex contains 2138 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 1.17s avrdude: verifying ... avrdude: verification error, first mismatch at byte 0x0000 0x12 != 0xff avrdude: verification error; content mismatch avrdude done. Thank you. |
[Prev in Thread] | Current Thread | [Next in Thread] |