avrdude-dev
[Top][All Lists]
Advanced

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

[avrdude-dev] [bug #43839] unable to verify device signature or program


From: Galen Seitz
Subject: [avrdude-dev] [bug #43839] unable to verify device signature or program boot memory on xmega16d4 from ELF file
Date: Tue, 16 Dec 2014 19:14:22 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0

URL:
  <http://savannah.nongnu.org/bugs/?43839>

                 Summary: unable to verify device signature or program boot
memory on xmega16d4 from ELF file
                 Project: AVR Downloader/UploaDEr
            Submitted by: galens
            Submitted on: Tue 16 Dec 2014 07:14:21 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Galen Seitz
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

device: xmega16d4
programmer: jtagice mkII or avrisp mkII
host: CentOS 6.6 x86_64
avrdude version: 6.1 (locally built)

I am unable to verify the device signature and write the boot section of an
xmega16d4 with an ELF file.


address@hidden:~$ avr-objdump -v     
GNU objdump (GNU Binutils) 2.19
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later
version.
This program has absolutely no warranty.
address@hidden:~$ avr-objdump -h boot.elf 

boot.elf:     file format elf32-avr

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00004d14  00000000  00000000  000000b4  2**1
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .fuse         00000006  00820000  00820000  00004dc8  2**0
                  CONTENTS, ALLOC, LOAD, DATA
  2 .lock         00000001  00830000  00830000  00004dce  2**0
                  CONTENTS, ALLOC, LOAD, DATA
  3 .signature    00000003  00840000  00840000  00004dcf  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA



address@hidden:~$ sudo avrdude -p x16d4 -c jtag2pdi -P usb -U
signature:v:boot.elf:e

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e9442
avrdude: NOTE: Programmer supports page erase for Xmega devices.
         Each page will be erased before programming it, but no chip erase is
performed.
         To disable page erases, specify the -D option; for a chip-erase, use
the -e option.
avrdude: verifying signature memory against boot.elf:
avrdude: load data signature data from input file boot.elf:
avrdude: ERROR: Cannot handle "signature" memory region from ELF file
avrdude: read from file 'boot.elf' failed

avrdude done.  Thank you.



address@hidden:~$ sudo avrdude -p x16d4 -c jtag2pdi -P usb -U boot:w:boot.elf:e

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e9442
avrdude: NOTE: Programmer supports page erase for Xmega devices.
         Each page will be erased before programming it, but no chip erase is
performed.
         To disable page erases, specify the -D option; for a chip-erase, use
the -e option.
avrdude: reading input file "boot.elf"
avrdude: read from file 'boot.elf' failed

avrdude done.  Thank you.



I can successfully write and verify fuse1, fuse2, fuse4, fuse5, and lock using
this same file.

Note that this same file works when used to program the bootloader and fuses
of an xmega16d4 using AVR Studio version 4.19 using the ELF Production File
feature.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 16 Dec 2014 07:14:21 PM GMT  Name: boot.elf  Size: 20kB   By: galens
ELF file for xmega16d4 containing device signature, fuse, lock, and bootloader
<http://savannah.nongnu.org/bugs/download.php?file_id=32685>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?43839>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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