3.b.1. Adding Devices to Atmel Studio 6

While the older AVR Studio 4 supports programming a large number of different AVRs with STK500-compatible programmers such as the Pololu USB AVR Programmer, Atmel Studio 6 only supports programming a small selection of devices by default. If you would like to program a device that is not supported by default using Atmel Studio, you will need to add an XML file to one of Atmel Studio’s directories.

  1. Navigate to the directory where you installed Atmel Studio and find the tools\STK500\xml subdirectory. By default, on a 64-bit computer this will be C:\Program Files (x86)\Atmel\Atmel Studio 6.1\tools\STK500\xml.
  2. Right click on ATmega168_stk500.xml and select Edit to open it in Notepad.
  3. Replace all occurrences of “ATmega168” in the file with the name of the device you want to program. The device name you type should exactly match the name of one of the XML files in Atmel Studio’s devices subdirectory, for example “ATmega328P”.
  4. In the File menu, select Save As… and save it as DEVICENAME_stk500.xml where DEVICENAME is the same device name that you entered into the file, for example ATmega328P_stk500.xml.
  5. Restart Atmel Studio. A new entry for your device should now be visible in the Device drop down box of the Device Programming dialog. This should allow you to program HEX files onto that device from Atmel Studio using the Pololu USB AVR Programmer.

The ATmega328P has been successfully added to the device selection box of Atmel Studio 6.