AS7 Production file (elf) not compatible with AS4

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Having been forced to update to AS7, and move to JTAG Ice 3. ( Too much grief with AS4 not finding the old dev tools ). I find myself with the following problem.

My chips are programmed by someone who only has XP and AS4 using AVRISPMk2..

I normally create a complete elf file that programmed to Flash,, eemem and fuses using AS4.. all has run well for ages.

I've just created a production file using AS7 which works fine for me with AS7, but crashes AS4.

 

Is this a known format incompatibility, if so any workaround?

( Does not want to buy new PC just to load win7 etc )

TIA.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If the .elf is only for production - try building it without any debug info (IIRC the -g option controls that). The newer toolchains produce debug into that is incompatible with AvrStudio4.

 

-- Nigel

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Use avrdude in stead of Studio. Modern versions can read ELF and because it does the ELF reading with libbfd it will work.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK, Thanks will try these ideas out.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

(you can also use tools like avr-objcopy to remove troublesome sections from a .elf file, so that it ends up containing ONLY the sections relevant to programming.)