avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avrdude-dev] Atmega32u2


From: Jkx
Subject: Re: [avrdude-dev] Atmega32u2
Date: Tue, 27 Jul 2010 04:08:09 +0200

On Mon, 26 Jul 2010 19:06:17 +0200
Joerg Wunsch <address@hidden> wrote:

> As Jkx wrote:
> 
> > Atmega32u2 is binary compatible w/ the at90us162,
> 
> "binary compatible" doesn't tell much about the programming method.
> It only relates to the instruction set, position of IO registers, and
> the location of the memory areas.
> 
> > but avrdude refuse to
> > flash it (even w/ a -F)
> 
> If even overriding the signature check (with -F) doesn't work, you
> have to give us more details about *what happens exactly*, including
> your programming hardware and command-line options.


I use an official STK500v2. You will find below, the result of a flash. 
This is really slow while writing (without any timeout msg). The reading
timeouts, and produce some missmatches. 

For the fuse, i'm not sure, fusecalc give me a different fuse than avrdude
found. 

In my initial email, I said the 32u2 is binary compatible with the usb162
but that's false. They have the same pinouts, the same registers but I don't
know the memory address. And worst, the 32u2 has 32k vs 16k on the 162 of
course. 

Thanks for help. 


address@hidden ~/a/atmega32u2-blink> avrdude -c stk500v2 -p usb162 -P 
/dev/ttyUSB0 -F -U flash:w:main.hex  -v

avrdude: Version 5.10, compiled on Jan 19 2010 at 18:01:15
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/home/jkx/.avrduderc"
         User configuration file does not exist or is not a regular file, 
skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : stk500v2
         AVR Part                      : AT90USB162
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC6
         RESET disposition             : possible i/o
         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        512    4    128  9000  
9000 0x00 0x00
           flash         65     6   128    0 yes     16384  128    128  4500  
4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  
9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  
9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  
9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  
9000 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 : STK500V2
         Description     : Atmel STK500 Version 2.x firmware
         Programmer Model: STK500
         Hardware Version: 2
         Firmware Version Master : 2.10
         Topcard         : Unknown
         Vtarget         : 5.1 V
         SCK period      : 260.5 us
         Varef           : 5.0 V
         Oscillator      : 3.686 MHz

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.10s

avrdude: Device signature = 0x1e958a
avrdude: Expected signature for AT90USB162 is 1E 94 82
avrdude: safemode: lfuse reads as 5E
avrdude: safemode: hfuse reads as D9
avrdude: safemode: efuse reads as F4
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 Intel Hex
avrdude: writing flash (282 bytes):

Writing | ################################################## | 100% 7.54s

avrdude: 282 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 Intel Hex
avrdude: input file main.hex contains 282 bytes
avrdude: reading on-chip flash data:

Reading |                                                    | 0% 0.00savrdude: 
stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ################################################## | 100% 12.42s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0006
         0x57 != 0x77
avrdude: verification error; content mismatch

avrdude: safemode: lfuse reads as 5E
avrdude: safemode: hfuse reads as D9
avrdude: safemode: efuse reads as F4
avrdude: safemode: Fuses OK

avrdude done.  Thank you.

address@hidden ~/a/atmega32u2-blink> 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]