Xmega128A4U DFU Bootloader from application

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

Hi All, we are doing a new project based on the XMega128A4U. The customer has requested that the Xmega must be able to be reprogrammed from an external computer easily.

 

This means adding some bootload code to the firmware, and also using USB to download the firmware. It looks like libUSB is the driver used and the website is http://libusb.info We are using Delphi for the Computer application.

 

The sample board we are using is from Mattair Tech https://www.mattairtech.com/inde...

 

Any help would be much appreciated.

Electronic System Design
http://www.esdn.com.au

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

Further to the post before, the easiest way seems to be using avrdude and running this as a external windows program. I found avrdude program in the avrduino folder C:\Program Files (x86)\Arduino\hardware\tools\avr\bin 

 

The next step is how to program the XMega128A4U with avrdude. The avrdude documentation suggests that it now works with the FLIP protocol bit does not say what -c option to set.

 

The batch file below does program the Xmega128A4u but it does not start the application

avrdude -c flip2 -p x128a4u -U application:w:test.hex -E reset

Electronic System Design
http://www.esdn.com.au

Last Edited: Thu. May 25, 2017 - 01:26 AM