Atmel ATSAM3S-EK2 データシート

ページ / 71
 
 
 
 
 
46 
Atmel AVR2055 
 
 
8348D-AVR-06/12 
The image is now installed on the board. 
 
9.3.4.2 Application workspace 
1.  Double-click on a workspace (for example, 
zseApp.eww
), and select 
JTAGICE 
mkII > Fuse Handler 
(
JTAGICE 3 > Fuse Handler
2.  Click 
Read Fuses
 and make sure that device fuses are set as specified in Section
 
3.  If fuses are set incorrectly, select the correct fuse settings, and click 
Program 
fuses 
 
4.  Select the desired application configuration (for example 
All_Sec_Stk600_Atxmega256a3_Rf231_16Mhz
) from a drop-down box in the 
Workspace
 pane 
5.  Select 
Project > Download and debug
 
6.  Once the debugging session has started, click
 Stop debugging
  
The image is now installed on the board. 
9.3.5 Programming with AVR Studio 
1.  In AVR Studio, open the 
Tools > Program AVR > Connect… 
dialog 
2.  Choose JTAGICE mkII (JTAGICE 3) as 
Platform:
 and USB as the 
Port:
, and 
click 
Connect…
 
3.  Select the right device (ATxmega256A3 or ATxmega256D3) in the Device and 
Signature Bytes field on the 
Main
 tab of the programming dialogue 
4.  Click on 
Fuses
 tab and make sure that device fuses are set as specified in 
Section
5.  If fuses are set incorrectly, select the correct fuse settings and click 
Program 
 
6.  Click on the 
Program
 tab 
7.  In the Flash section of the dialog, select a precompiled 
.hex
 file you wish to 
program 
8.  Click 
Program
  
The image is now installed on the board. 
9.3.6 Programming with Serial Bootloader 
Programming using Serial Bootloader requires that the embedded bootloader code is 
loaded to the device via JTAG.  Firmware images for the embedded bootloader as 
well as the Bootloader PC tool, which is needed to load the application image from a 
PC  to the device, are included in the Atmel Serial Bootloader software package 
available for downloading from the Atmel website. 
Images that shall be loaded to the MCU  via JTAG may be found under 
\Embedded_Bootloader_images\
  in  the 
Atxmega256a3
/
Atxmega256d3 
directory in 
the package: 
  The 
Bootloader_ATXmega256A3.hex
 file for ATxmega256A3  
  The 
Bootloader_ATXmega256D3.hex
 file for ATxmega256D3 
In both cases, the fuse bits should be configured properly.  
If  the  embedded bootloader  is loaded, the  following steps should be executed to 
upload the application image file to the board: 
1.  Assemble board and connect it to the PC: 
a.  For STK600: