6. Software Integration
6.1. Atmel Studio
6.1.1. Software Integration in Atmel Studio
Atmel Studio is an Integrated Development Environment (IDE) for writing and debugging Atmel AVR and
Atmel SAM applications in Windows environments. Atmel Studio provides a project management tool,
source file editor, simulator, assembler and front-end for C/C++, programming, emulation and on-chip
debugging.
Atmel Studio version 6.2 or later must be used in conjunction with the Atmel-ICE.
6.1.2. Programming Options
Atmel Studio supports programming of Atmel AVR and Atmel SAM ARM devices using the Atmel-ICE.
The programming dialog can be configured to use JTAG, aWire, SPI, PDI, TPI, SWD modes, according to
the target device selected.
When configuring the clock frequency, different rules apply for different interfaces and target families:
• SPI programming makes use of the target clock. Configure the clock frequency to be lower than
one fourth the frequency at which the target device is currently running.
• JTAG programming on Atmel megaAVR devices is clocked by the programmer. This means that the
programming clock frequency is limited to the maximum operating frequency of the device itself.
(Usually 16MHz.)
• AVR XMEGA programming on both JTAG and PDI interfaces is clocked by the programmer. This
means that the programming clock frequency is limited to the maximum operating frequency of the
device itself. (Usually 32MHz).
• AVR UC3 programming on JTAG interface is clocked by the programmer. This means that the
programming clock frequency is limited to the maximum operating frequency of the device itself.
(Limited to 33MHz.)
• AVR UC3 programming on aWire interface is clocked by the programmer. The optimal frequency is
given by the SAB bus speed in the target device. The Atmel-ICE debugger will automatically tune
the aWire baud rate to meet this criteria. Although it's usually not necessary the user can limit the
maximum baud rate if needed (e.g. in noisy environments).
• SAM device programming on SWD interface is clocked by the programmer. The maximum
frequency supported by Atmel-ICE is 2MHz. The frequency should not exceed the target CPU
frequency times 10,
f
SWD
≤ 10f
SYSCLK
.
6.1.3. Debug Options
When debugging an Atmel AVR device using Atmel Studio, the 'Tool' tab in the project properties view
contains some important configuration options. The options which need further explanation are detailed
here.
Target Clock Frequency
Accurately setting the target clock frequency is vital to achieve reliable debugging of Atmel megaAVR
device over the JTAG interface. This setting should be less than one fourth of the lowest operating
frequency of your AVR target device in the application being debugged. See megaAVR Special
Considerations for more information.
Atmel Atmel-ICE [USER GUIDE]
Atmel-42330C-Atmel-ICE_User Guide-10/2016
53