bugAVR Downloader/UploaDEr - Bugs: bug #27341, atxmega128A1 with avr isp mk2:...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #27341: atxmega128A1 with avr isp mk2: cannot read device signature, flashing fails

Submitted by:  None
Submitted on:  Fri 28 Aug 2009 08:33:48 AM UTC  
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Works For Me Privacy:  Public
Assigned to:  Joerg Wunsch <joerg_wunsch> Originator Name:  Matthias Trute
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Programmer hardware: 
Device type: 

Tue 12 Jan 2010 04:53:06 PM UTC, comment #1: 

This has somehow been fixed now, whichever of all the
recent changes did it.

Before testing again, please await the next release.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Fri 28 Aug 2009 08:33:48 AM UTC, original submission:  

Hi,

avrdude cannot program the atxmega128a1 device. The transcript follows. Tested with an AVR ISP MK2 on Linux Ubuntu Jaunty (
uname -a gives Linux Ayla 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 19:25:34 UTC 2009 x86_64 GNU/Linux)

The error message comes with release 5.8 and 5.7 versions as well.

The very same hardware works from a Windows VMWare Installation
with avr studio programmer. The test program is a simplified hello-world Appnote from Atmel for the serial port that works well when flashed from windows.

-----------------------------

$ /opt/avrdude/bin/avrdude -p atxmega128a1 -P usb -c avrisp2  -v -v  -U flash:w:main.hex  -F

avrdude: Version 5.8cvs, compiled on Aug 28 2009 at 10:20:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/opt/avrdude/etc/avrdude.conf"
         User configuration file is "/home/mt/.avrduderc"

         Using Port                    : usb
         Using Programmer              : avrisp2
avrdude: usbdev_open(): Found AVRISP mkII, serno: 0000B0035998
avrdude: usbdev_open(): using read endpoint 0x82
         AVR Part                      : ATXMEGA128A1
         Chip Erase delay              : 0 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 0
         StabDelay                     : 0
         CmdexeDelay                   : 0
         SyncLoops                     : 0
         ByteDelay                     : 0
         PollIndex                     : 0
         PollValue                     : 0x00
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom         0     0     0    0 no       2048  256      0     0     0 0x00 0x00
           application    0     0     0    0 no     131072  256      0     0     0 0x00 0x00
           apptable       0     0     0    0 no       8192  256      0     0     0 0x00 0x00
           boot           0     0     0    0 no       8192  256      0     0     0 0x00 0x00
           flash          0     0     0    0 no     139264  256      0     0     0 0x00 0x00
           prodsig        0     0     0    0 no        512  256      0     0     0 0x00 0x00
           usersig        0     0     0    0 no        512  256      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           fuse0          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse1          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse2          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse4          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse5          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           lock           0     0     0    0 no          1    0      0     0     0 0x00 0x00

         Programmer Type : STK500V2
         Description     : Atmel AVR ISP mkII
         Programmer Model: AVRISP mkII
         Hardware Version: 1
         Firmware Version Master : 1.12
         Vtarget         : 3.3 V
         SCK period      : 10.37 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
avrdude: Expected signature for ATXMEGA128A1 is 1E 97 4C
avrdude: reading input file "main.hex"
avrdude: input file main.hex auto detected as Intel Hex
avrdude: writing flash (1252 bytes):

Writing | ################################################## | 100% 0.09s

avrdude: 1252 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 1252 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.07s

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

avrdude: safemode: Fuses OK

avrdude done.  Thank you.

make: *** [program] Fehler 1
mt@Ayla:~/projekte/avr/forth/amforth/appl/atxmega/c$

Teh sources are from svn://svn.sv.gnu.org/avrdude/trunk/avrdude a few minutes ago

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-01-12 joerg_wunsch StatusNone => Works For Me
        Assigned toNone => joerg_wunsch
        Open/ClosedOpen => Closed

    Back to the top


    Powered by Savane 3.7