Atmel AVR2052
25
8200M-AVR-11/11
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. If requested, reset the board, using the reset button.
4. The Bootloader PC tool indicates the programming progress. Once an upload is
successfully completed, the board should restart automatically. If an upload fails,
the embedded bootloader 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.
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.
8.2.4 Programming with JTAG
description of how the images can be programmed to the devices using JTAG.
8.2.5 Programming with ISP
documentation for a description of how firmware images can
be programmed to a device using the in-system programming (ISP) interface. For
Atmel ZigBit devices, the ISP frequency shall be set to 6.478kHz, and the ISP
programmer shall be connected to the module as specified in
Table 8-9.
ISP programmer and ZigBit/MCU pin connections.
ISP programmer pin
ATZB-XX pin
ATmega1281 MCU pin
MOSI
USART0_RXD (38)
PE0
MISO
USART0_TXD (39)
PE1
SCK
SPI_SCLK (1)
PB1
RESET
RESET (8)
RSTn_In
VCC
D_VCC (any)
D_VCC
GND
DGND (any)
D_GND
8.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:
<App_name>_<rf_chip>_<region>_<MCU>.<extension>
App_name
stands for the name of the application. For ZigBit devices, the WSNDemo,
Runner, and SerialNet applications are available. 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.
Region
is an optional parameter that specifies the radio frequency used