Atmel ATSAM3S-EK2 Hoja De Datos

Descargar
Página de 71
 
 
Atmel AVR2055 
 
 
 
 
55
 
8348D-AVR-06/12 
10.3.3.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 the 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_StdlinkSec_Stk600_
 
ATmega128RFA1_Rf231_16Mhz
) from the 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. 
NOTE 
Using a JTAG to program the microcontroller will erase the embedded bootloader, if 
present. As a result, loading of application images with Serial Bootloader will become 
inoperable until the embedded bootloader is loaded to ATmega128RFA1 again. 
10.3.4 Programming with AVR Studio 
1.  In AVR Studio, open the 
Tools > Program AVR > Connect… 
dialog 
2.  Choose JTAGICE mkII (JTAGICE 3) for 
Platform:
 and USB for 
Port:
, and click 
Connect…
 
3.  Select the right device (ATmega128RFA1) in the Device and Signature Bytes 
field on the 
Main
 tab of the programming dialogue 
4.  Click on the 
Fuses
 tab and make sure that the 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 the precompiled 
.hex
 file to be 
programmed 
8.  Click 
Program
 
The image is now installed on the board. 
10.3.5 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 ATmega128RFA1 via JTAG may be found under the 
\Embedded_Bootloader_images\Atmega128rfa1
 directory in the package: 
  The 
Bootloader_ATmega128RFA1_RCB_BB_RS232.hex
 file for RCB128RFA1  
  The 
Bootloader_ATmega128RFA1.hex
 file for ATAVR128RFA1-EK1 
In both cases, the fuse bits should be configured properly; namely, the 
BOOTRST fuse 
should be enabled as described in Section 
. 
If  the embedded bootloader  is loaded,  the following steps should be executed to 
upload the application image file to the board: 
1.  Assemble the board and connect it to a PC: 
a.  For RF4CE-EK: