Z-Stack User's Guide - CC2431ZDK
F8W-2006-0025 Version 1.4.3
15
Copyright
2006-2007 Texas Instruments, Inc. All rights reserved
.
The SOC BB’s have a single button to press, labeled S1, in the lower left-hand corner of the
board and a single red LED above it. The S1 button acts like the SW5 no the SmartRF04EB, and
the single LED acts like the LED1.
6.2. Initial Loading of 64-Bit IEEE Address
Normally, Z-Stack loads the device’s 64-bit IEEE address from FLASH upon power-up or reset.
When the address has been reset (0xFFFFFFFFFFFFFFFF) by erasing the FLASH, the program
waits in a loop during start-up, blinking LED1 (green). This prompts the user to establish a
“temporary” address by pressing SW5 (joystick center). This temporary address allows Z-Stack
to start normally so that the developer can later use Z-Tool to restore the proper 64-bit extended
address, located on a sticker on the bottom surface of the circuit board.
6.3. Non-Volatile Memory
Z-Stack devices can be built to save certain operating state variables (PanID, 16-bit network
address, etc.) in non-volatile (NV) memory. These variables will then be used when the device is
restarted (reset or power on), to resume operation at its previous state. This feature is enabled by
including
NV_RESTORE
in the list of compile flags in the IAR project files.
During program development and debugging, it is often convenient to disable saving/restoring
NV parameters – remove or disable the
NV_RESTORE
compile flag. To bypass this feature in a
device that was built with
NV_RESTORE
, press and hold the SW5 (or the S1 button on
SOC_BB) while the device is rebooting. This will load the 64-bit IEEE address but skip
restoration of other NV parameters.
6.4. Running the Sample Applications
Initially, place all the devices on the same table or work area. You will establish the network
while the devices are all in view of each other. Later, you can experiment with various distances
and different power-up sequences.
To begin execution of the programmed sample application, remove power from each
programmed SmartRF04EB and SOC_BB board.
Start with the Dongle on the SmartRF04EB – while pressing and holding SW5, turn on power.
Then turn on power to each Reference Node while pressing and holding the single S1 button.
Finally, turn on power to the Blind Node while pressing and holding the single S1 button.
Once these devices have begun operation and joined the network, their Red LED will be turned
on solid. Refer to the Z-Location PC Application guide for how to configure and control the
nodes under the location profile.
The discussion above assumes each device has been programmed and disconnected from the
development PC. When necessary, a target device can be controlled from the IAR IDE,
providing for standard debugging features such as breakpoints, single-stepping, viewing of
memory and register contents, etc.