56
Atmel AVR2052
8200M-AVR-11/11
Workbench installation directory (for a default installation, it is
C:\Program Files\IAR Systems\Embedded Workbench
6.20
). To do this, go to
Control Panel > System >
Advanced > Environment Variables
, click
New
below
System variables
list and enter
Variable Name
and
Variable Value
. This step is required if you plan to build
embedded images using IAR Embedded Workbench from the
command line.
, if not already installed on your PC.
4. Download and install Java Runtime Environment
, if not already installed on
your PC.
13.2 Programming the boards
A firmware image file can be uploaded into the Atmel SAM3S-EK device using the
JTAG interface and using the Serial Bootloader package tools.
13.2.1 Extended (MAC) address assignment
For proper operation, all nodes in a ZigBee network shall have unique MAC address
values. On the SAM3S platform, a unique
CS_UID
parameter must be specified for
each device in the application configuration, and then the application image must be
built separately for each board.
NOTE
The BitCloud stack and applications can be configured to store stack and application
parameters in nonvolatile memory (typically, EEPROM). This functionality cannot be
demonstrated with a stock SAM3S-EK kit, as there is no external EEPROM on these
boards. It is also not enabled in reference applications and pre-built binaries provided
with the SDK.
13.2.2 Programming with JTAG
Atmel AT91SAM-ICE JTAG emulator and SAM Boot Assistant
AT91-ISP package) shall be used for programming.
•
Connect a SAM3S-EK board or a RF231USB board via the Atmel SAM-ICE JTAG
emulator to a PC (a RF231USB board is connected to SAM-ICE JTAG emulator
via SAM-ICE adapter)
•
Run SAM-BA on the PC, and choose \jlink\ARMX as the connection type,
SAM3S4-EK as the target board, and use the default JLink speed
•
In the opened window, select the flash memory tab, and in the “
Send File
Name
” field provide the path to application firmware image in
.bin
format
•
Keep the default memory settings and press the “
Send file
” button
•
After programming the image reset the board
For details about Atmel SAM-BA configuration and usage, please refer to SAM-BA
13.2.3 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.