
XScopes
User’s Manual
DS-XScopes-3.5
– December, 2014
Page | 38
9.
This guide will show how to update the firmware on your AVR XMEGA based device. There are two updating methods; the
first method requires an external programmer. You can use either method depending on your needs.
9.1
Firmware upgrade using an external programmer
9.1.1
Tools required
AVRISP mkII, or similar PDI capable programmer
AVR Studio 4 or Atmel Studio 6 IDE (Integrated Development Environment)
HEX and EEP files for the device, found on the product's page (Look for the HEX icon).
A regular AVR programmer might not work, the programmer needs to be PDI capable. PDI is the new interface to
program XMEGA microcontrollers. Many old AVR programmers use ISP, which is not compatible with the XMEGA.
9.1.2
Instructions to install the tools
Install AVR Studio and USB driver
Connect the programmer to the computer and auto install the hardware
A more detailed guide on how to install the tools is found
http://www.atmel.com/dyn/resources/prod_documents/AVRISPmkII_UG.pdf
9.1.3
Instructions to update the firmware
1.
Start AVR Studio
2.
Connect the cable from the AVRISP to the PDI connector on the board
3.
Power the board
4.
Press the "Display the 'Connect' dialog" button:
. Alternatively, you can go to this menu: Tools-> Program AVR -
> Connect -
5.
Select your programmer and port. (AVRISP mkII and AUTO or USB)
6.
In the MAIN tab, select the device: ATXMEGA32A4U
7.
In the programming mode, select PDI
8.
To check that everything is ok, press the "Read Signature" button. You will see a message saying that the device
matches the signature.
9.
Go to the PROGRAM tab
10.
In the Flash section, look for the .HEX file and click Program
11.
In the EEPROM section, look for the .EEP file and click Program
12.
Go to the FUSES tab and select:
- BODPD: Sampled, BODACT: Continuous, BODLVL: 2.8V, SUT: 4ms
13.
Click Program
14.
After updating the firmware, make sure to recalibrate the device (See section 1.6).