34
Atmel AVR2052
8200M-AVR-11/11
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.
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.
9.2.4 Programming with JTAG
Refer to
for a description of how the images can be programmed to
corresponding development boards using JTAG.
9.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_<board>_<MCU>_<role>.<extension>
To specify the node role, put
Coord
,
Router
, or
EndDev
for coordinator, router and
end device, respectively. To program with JTAG, use files with a
.hex
extension.
.srec
files are loaded with the serial bootloader. For example, to use JTAG to
program a device with the Atmel ATmega128RFA1 MCU on the Atmel STK600 board
acting as coordinator, use the file with the name
WSNDemo_Stk600_Atmega128rfa1_Coord.hex
9.4 Running WSNDemo
9.4.1 Starting WSNDemo
To start WSNDemo, proceed as follows:
1. Set up the hardware, as described in Section
2. Install the Atmel BitCloud SDK, as described in Section
3. Program one device with the coordinator image file and other with either the
router or end device images, as described in Section
4. Connect the coordinator node to the PC using the serial interface.
5. Power on the coordinator node.
6. Run WSNMonitor (see Section
).
7. Power on and reset the rest of the nodes.
9.4.2 Monitoring WSNDemo activity
Network activity can be monitored in two ways:
•
Observing LEDs on the development boards, as described in
. LED Dx
labels correspond to the RCB128RFA1 board, while labels naming colors belong
to the Atmel ATAVR128RFA1-EK1 board.