Atmel AVR2052
57
8200M-AVR-11/11
The images that shall be loaded to the MCU via JTAG may be found under
\Embedded_Bootloader_images\
in the
At91sam3s4c
directory in the package.
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 the PC (a USB stick is just attached to a
PC’s USB port).
2. Install and run the Bootloader PC tool from the command line or use the GUI.
Specify the target image file in
.srec
format and the COM port, and launch the
firmware upload.
3. The Bootloader PC tool indicates the programming progress. Once an upload is
successfully completed, the board should restart automatically. If an upload fails,
the Bootloader PC tool should indicate the reason. In rare cases, the booting
process can fail due to communication errors between the board and the PC. If
this happens, attempt booting again or try using the conventional serial port
instead of USB. If booting fails, the program recently written to the board will be
corrupted, but the board can be reprogrammed, as the embedded bootloader
remains intact.
See
for additional details about the Serial Bootloader package.
IMPORTANT
Since the embedded bootloader for SAM3S uses the DFU standard, the
application should enable the DFU support (turned on in the application’s
configuration.h
file). Otherwise after loading the application via Serial
Bootloader tools loading another image will not be possible.
WARNING
Using JTAG to program the microcontroller will erase the embedded
bootloader, making the loading of application images with Serial
Bootloader impossible until the embedded bootloader firmware is
reprogrammed to the device.
13.3 Pre-built images
The SDK comes with a set of ready-to-use binary images of the WSNDemo
application. It includes a set of images for different roles, which are preconfigured with
distinct MAC addresses so they can be used for creating a small ZigBee network right
away. The image name is formed according to the following scheme:
WSNDemo_<role>_<board>_<rf_chip>_<region>_<MCU>.<extension>
To specify node role, put
Coord
,
Router
, or
EndDev
for coordinator, router, and end
device, respectively.
Region
is an optional parameter that specifies the radio
frequency used by the image according to the frequency band of the specified region.
Possible options are
US
,
EU,
and
China
. For example, to use JTAG to program a
SAM3S-EK device with an RF212 radio acting as coordinator for use in the US, use
the file with the name
WSNDemo_Coord_Rf212_US.bin
NOTE
Default images are preconfigured to use Extended PAN ID
0xAAAAAAAAAAAAAAAA
and
operate on channel
0x0F
(for RF231 and RF230 radios) or channel
0x01
and channel
page 0 (for RF212 radio).