|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
[bug #27341] atxmega128A1 with avr isp mk2: cannot read device signature, flashing failsURL: <http://savannah.nongnu.org/bugs/?27341> Summary: atxmega128A1 with avr isp mk2: cannot read device signature, flashing fails Project: AVR Downloader/UploaDEr Submitted by: None Submitted on: Fr 28 Aug 2009 08:33:48 UTC Category: None Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Originator Name: Matthias Trute Originator Email: m_trute@... Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: 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 _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?27341> _______________________________________________ Nachricht geschickt von/durch Savannah http://savannah.nongnu.org/ _______________________________________________ avrdude-dev mailing list avrdude-dev@... http://lists.nongnu.org/mailman/listinfo/avrdude-dev |
|
|
Re: [bug #27341] atxmega128A1 with avr isp mk2: cannot read device signature, flashing fails-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Hi, this problem seems to be in the avrdude.conf.in file. I replaced avrdude.conf.in file from avrdude 5.6 with the file from avrdude 5.8, compile 5.6 and voila, I got the error I attached the part from ATxmega128A1 from 5.6 and 5.8 and a screenshot from diffuse, comparing both files. http://roboter-gallery.de/pub/avrdude/diff.png Hope this helps. Markus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkqY3z4ACgkQkLMXWByOeRfi6gCfRB/A1WZl+m2bmdk6d9BJMI+V bZEAn14dA7ioxWZcvOxiRgpPjQc+LL5M =7ngo -----END PGP SIGNATURE----- #------------------------------------------------------------ # ATxmega128A1 #------------------------------------------------------------ part id = "x128a1"; desc = "ATXMEGA128A1"; signature = 0x1E 0x97 0x4C; has_jtag = yes; has_pdi = yes; nvm_base = 0x01C0; memory "eeprom" page_size = 32; size = 2048; ; memory "flash" size = 0x20000; page_size = 512; ; memory "boot" size = 0x2000; page_size = 512; ; # signature is actually in IO address space memory "signature" size = 3; offset = 0x90; ; memory "fuse0" size = 1; offset = 0x20; ; memory "fuse1" size = 1; offset = 0x21; ; memory "fuse2" size = 1; offset = 0x22; ; memory "fuse4" size = 1; offset = 0x24; ; memory "fuse5" size = 1; offset = 0x25; ; memory "lockbits" size = 1; offset = 0x27; ; memory "calibration" size = 512; ; memory "usersig" size = 512; offset = 0x200; ; ; #------------------------------------------------------------ # ATXMEGA128A1 #------------------------------------------------------------ part id = "x128a1"; desc = "ATXMEGA128A1"; signature = 0x1e 0x97 0x4c; has_jtag = yes; has_pdi = yes; nvm_base = 0x01c0; memory "eeprom" size = 0x0800; offset = 0x08c0000; page_size = 0x100; readsize = 0x100; ; memory "application" size = 0x00020000; offset = 0x0800000; page_size = 0x100; readsize = 0x100; ; memory "apptable" size = 0x00002000; offset = 0x0081e000; page_size = 0x100; readsize = 0x100; ; memory "boot" size = 0x00002000; offset = 0x00820000; page_size = 0x100; readsize = 0x100; ; memory "flash" size = 0x00022000; offset = 0x0800000; page_size = 0x100; readsize = 0x100; ; memory "prodsig" size = 0x200; offset = 0x8e0200; page_size = 0x100; readsize = 0x100; ; memory "usersig" size = 0x200; offset = 0x8e0400; page_size = 0x100; readsize = 0x100; ; memory "signature" size = 3; offset = 0x1000090; ; memory "fuse0" size = 1; offset = 0x8f0020; ; memory "fuse1" size = 1; offset = 0x8f0021; ; memory "fuse2" size = 1; offset = 0x8f0022; ; memory "fuse4" size = 1; offset = 0x8f0024; ; memory "fuse5" size = 1; offset = 0x8f0025; ; memory "lock" size = 1; offset = 0x8f0027; ; ; _______________________________________________ avrdude-dev mailing list avrdude-dev@... http://lists.nongnu.org/mailman/listinfo/avrdude-dev |
| Free embeddable forum powered by Nabble | Forum Help |