Микроконтролери и електроника
http://mcu-bg.com/mcu_site/

avrdude verification error
http://mcu-bg.com/mcu_site/viewtopic.php?f=3&t=13095
Страница 1 от 1

Автор:  Nack [ Съб Юли 26, 2014 6:28 pm ]
Заглавие:  avrdude verification error

Имам следната постановка:

Пиша програма за Atmega328 на C, компилирам с avr-gcc. За програматор ползвам едно Arduino Mega 2560, на което e качено ArduinoISP. Свързал съм контролера на бредборд (без кварц, настроил съм fuse-овете да ползва вътрешния RC) към Arduino-то както е обяснено в коментарите на ArduinoISP. Опитвам се да кача hex файла с avrdude със следните опции:

Код:
E:\arduino-1.0.3\hardware/tools/avr/bin/avrdude
-CE:\arduino-1.0.3\hardware/tools/avr/etc/avrdude.conf                                                               
-v                                                                                               
-patmega328p                                                                                                   
-cstk500v1                                                                                                     
-P\\.\COM15
-b19200                                                                                                   
-U efuse:v:0xFF:m -U hfuse:v:0xD9:m -U lfuse:v:0xE2:m                 
-Uflash:w:WattMeter.hex:i


Получавам това:
Код:
avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "E:\arduino-1.0.3\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM15
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         AVR Part                      : ATMEGA328P
         Chip Erase delay              : 9000 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        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e950f
avrdude: safemode: lfuse reads as 62
avrdude: safemode: hfuse reads as D9
avrdude: safemode: efuse reads as 7
avrdude: verifying efuse memory against 0xFF:
avrdude: load data efuse data from input file 0xFF:
avrdude: input file 0xFF contains 1 bytes
avrdude: reading on-chip efuse data:

Reading | ################################################## | 100% 0.02s

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

avrdude: safemode: lfuse reads as 62
avrdude: safemode: hfuse reads as D9
avrdude: safemode: efuse reads as 7
avrdude: safemode: Fuses OK

avrdude done.  Thank you.


Не мога да разбера защо се получава проблема с верификацията. Пробвах с 2 различни атмеги и 2 различни източника на захранване. Интересното е, че вчера успях да кача програма за мигане на светодиод през Arduino средата. Всичките ми параметри на avrdude (без fuse-овете) са същите, които успешно използва ардуинската среда, но получавам verification error.

Страница 1 от 1 Часовете са според зоната UTC + 2 часа [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/