ATXMEGA256A3BU-AU Xplained Bootlader for FLIP

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

HI.
How can I load the Original bootloader inside the ATXMEGA for programming it with Flip?
When I use for first time the Atmel-Ice for programming, it probably cancelled the bootloader but sometimes I need to use Flip.
 

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

I carefully guarded the DFU bootloader that came on my a3bu Xplained board.  I don't know where to get another copy.  I guess I should be able to pull the bootloader code out of my chip. 

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

I found this link where you can download the bootloader binary but it isn't an atmel studio project, so i don't now how to put it inside the atxmega.
http://www.atmel.com/Images/AVR1...

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

You need to use a PDI programmer.  Or if you have a JTAG programmer, and that chip has JTAG, you could use that.

 

I would hook it up, and crank up Atmel Studio.  Click Tools > Device programming > .......

 

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

Say there ds.  What you found - it appears, is the gold mine.  You found the source code for the whole USB Bootloader.

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

I recently discovered there is a way to let the debugger program the flash and leave the bootloader intact.  I'm using AS 6.2 but I suppose AS 7 can do it too.

 

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

Off-Earth wrote:
You found the source code for the whole USB Bootloader.

Did you think it was being kept hidden then?

 

Almost every device that uses DFU has had a link to both AVR1916 application note and the accompanying AVR1916.zip code file in their list of "Documents" on atmel.com (in the recent transition to microchip it's true that some of the links have been "lost" so that has recently made it a little more difficult to find AVR1916.zip sometimes)

 

The only downside of the code is that you need IAR Embedded Workbench to build it. As most bootloaders build to less than 4K that should not be a problem as the "trial" version of IAR-EW AVR is free up to 4K. Above that it will cost you $3,000.