bugAVR Downloader/UploaDEr - Bugs: bug #40817, Elf file support (possibly) not...

 
 

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

bug #40817: Elf file support (possibly) not working on 6.0.1 windows build

Submitted by:  Dennis Tricker <trickerd>
Submitted on:  Thu 05 Dec 2013 03:08:46 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Name: Dennis Tricker
Open/Closed: ClosedRelease: None
Programmer hardware: Device type: 

Thu 05 Dec 2013 05:51:53 PM UTC, comment #2:

Dennis reported it as being fixed.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Thu 05 Dec 2013 04:42:48 PM UTC, comment #1:

> The file is definitely there but Avrdude cannot see it.


Sure, it "sees" it. It's the elf_begin() call that fails.

My only idea I could get out of the discussion you have linked
there is I forgot to open the file in O_BINARY mode. (The linker
flags mentioned there don't apply here, because we don't use
the Visual C linker, and we don't use a DLL for libelf at all.)

I have uploaded a current SVN snapshot named

avrdude-6.1-svn-20131205-mingw32.zip

which is built using the same MinGW32 environment I've used
before, but now with the binary open mode fixed. Please give
it a try, and report the success/failure status.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Thu 05 Dec 2013 03:08:46 PM UTC, original submission:

I've downloaded the latest avrdude windows build from http://download.savannah.gnu.org/releas ... ngw32.zip, but I am having problems using the new elf file option.

When using the :e option
avrdude -c usbasp -p attiny85 -B 8 -vvv -u -U hfuse:w:USI.elf:e

I get

avrdude: reading input file "USI.elf"
avrdude: ERROR: Cannot open "USI.elf" as an ELF file: I/O error: raw read
avrdude: read from file 'USI.elf' failed

The file is definitely there but Avrdude cannot see it.

I've tried flash as well as fuses, using different names and paths and different elf files with no success.

The 'I/O error: raw read' message seems to come from the libelf library and looking for that on google seems to indicate it may be a problem with how the windows exe was built (http://compgroups.net/comp.sys.hp48/elf2hp-part-of-hpgcc-fails/453949)

Posted originally on Avrfreaks but no one has come forward to say 'works for me on windows', so I think this may be a bug.

Dennis Tricker <trickerd>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 05 Dec 2013 05:51:53 PM UTCjoerg_wunschStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Thu 05 Dec 2013 04:42:48 PM UTCjoerg_wunschStatusNone=>Need Info
      Assigned toNone=>joerg_wunsch

    Back to the top


    Powered by Savane 3.1-cleanup1