[ Pobierz całość w formacie PDF ]

Tools\WSNDemo (Embedded) WSNDemo. Refer to Section 9.3 for a
description of the images.
\Evaluation WSNMonitor installer
Tools\WSNDemo (WSN
Monitor)\WSNMonitorSetup.exe
\BitCloud\Components\ Header files for the BitCloud stack
Root>\BitCloud\Components\BSP\ BSP
\BitCloud\lib Library files for the BitCloud stack
\Applications Source files for the sample applications
2. Install desired IDE:
a. For AVR Studio and WinAVR:
a. Install AVR Studio [3], if not already installed on your PC.
Install WinAVR development suite [4], if not already installed
on your PC. Be sure to install only the supported version of
WinAVR, as specified in Table 7-1.
b. For IAR Embedded Workbench AVR:
a. Install IAR Embedded Workbench for Atmel AVR [13], if not
already installed on your PC.
Add a Windows environment variable named
IAR_AVR_HOME, and set its value to the IAR Embedded
Workbench installation directory (for a default installation, it is
C:\Program Files\IAR Systems\Embedded
Workbench 5.4_0). To do this, go to Control Panel >
System > Advanced > Environment Variables, click New
37
8200K-AVR-05/11
below the 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.
3. Download and install Java Runtime Environment [12], if not already installed on
your PC.
4. If OTAU functionality needs to be demonstrated, launch
BootloaderOtauSetup.exe located in the ./Bootloader folder, and follow
installation instructions.
9.2 Programming the boards
A firmware image file can be uploaded into the Atmel ATmega128RFA1 device in one
of the following ways: using the SerialBootloader utility or using the JTAG interface.
9.2.1 Setting fuse bits
Table 9-4 provides the default fuse bit configuration loaded into ATmega128RFA1
devices during production. It also describes some use cases when certain fuse bits
require values different from the default ones. Based on their own application-specific
requirements, users can change the fuse bits as well. See [32] for detailed fuse bit
descriptions.
NOTE Modifying fuse bit settings is possible only using the JTAG programming interface,
and cannot be done using the SerialBootloader utility.
Table 9-4. Fuse bit settings for ATmega128RFA1 devices.
Deafult value in
Option ATmega128RFA1 devices Comments
BODLEVEL Brownout detection Can be changed according to application-
disabled specific requirements
OCDEN Disabled Can be changed during application
development. Must be disabled for final
products
JTAGEN Enabled Must be always enabled
SPIEN Enabled Must be always enabled
WDTON Disabled Can be changed according to application
requirements
EESAVE Disabled Can be changed according to application
requirements
BOOTSZ Boot Flash size=4096 Specifies section size, in words (2 bytes),
words start reserved in flash memory for bootstrap.
address=$F000
Applied only if BOOTRST is enabled.
Shall be changed to Boot Flash
size=1024 words start
address=$FC00 if it is to work with the
serial boot loader without OTAU support.
Shall be changed to Boot Flash
size=2048 words start
address=$F800 if OTAU support is
required on the device.
38
Atmel AVR2052
8200K-AVR-05/11
Atmel AVR2052
Deafult value in
Option ATmega128RFA1 devices Comments
BOOTRST Disabled Shall be enabled if the device needs to be
programmed with the serial boot loader or if
OTAU support is required. Can be disabled
in other cases
CKDIV8 Enabled
CKOUT Disabled
SUT_CKSEL Int. RC osc.; Start- Can be changed according to application-
up time: 6 CK + 65ms specific requirements, but external clock
source shall not be used by sleeping devices
By default, programming with SerialBootloader is not allowed, and so firmware can be
uploaded only over the JTAG interface. Default fuse bytes equal (in this order:
extended fuse byte, high fuse byte, low fuse byte):
0xFF, 0x99, 0x62
To turn on boot loader support, first, the BOOTRST fuse must be enabled and BOOTSZ
must be set to Boot Flash size=1024 words start address=$FC00, which
leads to the following fuse bytes:
0xFF, 0x9C, 0x62
Second, a firmware image of the embedded bootstrap (without OTAU support) shall
be programmed to the Atmel ATmega128RFA1 using JTAG. After that, application
images can be loaded to the device using SerialBootloader, as described in Section
9.2.3.
Enabling OTAU boot loader support requires the BOOTSZ fuse to be set to Boot
Flash size=2048 words start address=$F800, and, hence, the following
fuse bytes values:
0xFF, 0x9A, 0x62
9.2.2 Extended (MAC) address assignment
For proper operation, all nodes in a ZigBee network shall have unique, 64-bit MAC
address values. At startup, the Atmel BitCloud software assigns the MAC address to
the ATmega128RFA1 device as follows. If at compile time the CS_UID parameter is
set to 0, BitCloud attempts to load the MAC address from the dedicated external
EEPROM chip available on the RCB128RFA1 as well as on the Atmel
ATAVR128RFA1-EK1 board via the SPI interface. If there is no such chip present,
then a zero MAC address will be assigned to the device. Note that for proper
operation, all nodes in the network shall have unique MAC address values. Hence, if [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • pruchnik.xlx.pl