Running the TI Z-Stack Lighting Sample Demo on A2530

TI's Z-Stack Lighting Sample demo program can be loaded into the AIR A2530R24A modules. Using the A2530R24A modules (instead of TI's chip-level designs) adds FCC certification to the demo.

This procedure shows how to use the A2530R24A-LPZ BoosterPack board as the Sample Light using TI's Z-Stack Lighting software. The Sample Light software outputs four PWMs to control Red, Blue, Green and White LEDs on CC2530 pins P0_3, P0_4, P0_5 and P0_6 respectively. The BoosterPack has three LEDs that are easy to connect, but not the right colors. So this will not result in proper colors. And for this demo, we only connect three LEDs.

Note: When you load the Z-Stack Lighting Sample program into the A2530 module, you will be erasing the factory default pre-loaded ZigBee software. This step is reversable, but will require reloading the A2530 module to get back to factory default.

Prerequisite Hardware

 * Anaren A2530R24A-LPZ ZigBee BoosterPack Kit: http://www.anaren.com/air/cc2530-boosterpack-kit

Prerequisite Software

 * IAR Embedded Workbench for 8051: http://www.iar.com/en/Products/IAR-Embedded-Workbench/8051/
 * TI Z-Stack Lighting software package: http://www.ti.com/z-stack.  Note that it is currently not available, but should be back soon.

Install the Software

 * Download and install the IAR Embedded Workbench for 8051 software.
 * Download and install the Z-Stack Lighting software.

Preparing the A2530R24A-LPZ BoosterPack Boards for Z-Stack Lighting
The A2530R24A-LPZ BoosterPack board comes set up for ZigBee Network Processor (ZNP) operation. Some minor modifications are required to reprogram the board for Z-Stack Lighting operation.


 * Remove the MSP430G2553 that comes plugged into the A2530R24A BoosterPack board. You can save it in the plastic container that the board came in.  There is a slot for it.
 * Solder a Samtec SHF-105-01-L-D-TH or equivalent connector onto the A2530R24A BoosterPack board in the J4 location. Be sure to align the the connector so that the key notch is closest to the edge of the board.
 * Set switches S3-2, -3 and -4 to the Off position. Set S3-1 to On.  This will enable the Red and Green LEDs on the BoosterPack boards.
 * Set switches S4-1, -2 and -4 to the Off position. Set S4-3 to On.  This will leave CC2530 P0_6 connected to the Yellow D9 LED on the BoosterPack.
 * Connect a jumper wire between J1-8 and J1-2 on the BoosterPack board. This will connect the Red PWM to the Red LED on the BoosterPack board.
 * Connect a jumper wire between J1-10 and J2-4 on the BoosterPack board. This will connect the Blue PWM to the Green LED on the BoosterPack board.
 * Setting S4-3 to On connects the White PWM to the Yellow LED on the BoosterPack board.
 * The fourth Green PWM is not as easily connected to. It is located on TP28 on the BoosterPack board.  For simple demos, this is just not used.

Build and Install the Sample Light Application
The Sample Light application needs to be rebuilt with one additional project option added. The additional option will inform the software that there is no external 32 KHz clock crystal installed on the A2530R24A BoosterPack board. Once the option is added, the project can be rebuilt.


 * Start the IAR Embedded Workbench for 8051.
 * Do File-Open Workspace... and select C:\Texas Instruments\Z-Stack Lighting 1.0.0\Projects\zstack\ZLL\SampleLight\CC2530DB\SampleLight.eww
 * Do Project-Edit Configurations..., and click New...
 * Give the new configuration the name ZLight-Router-No OSC32K, and base it on the ZLight-Router configuration. Then click OK to save the new configuration, and OK to select the new configuration.  You now should have the ZLight-Router-No OSC32K above the file selector window on the left.
 * Do Project-Options and select C/C++ Compiler Category on the left, and select the Preprocessor tab on the right.
 * In the Defined Symbols window, enter a new line that reads: OSC32K_CRYSTAL_INSTALLED=FALSE
 * Click OK to save the new options.
 * Do Project-Rebuild All to rebuild the Sample Light Application.

Once built, the file C:\Texas Instruments\Z-Stack Lighting 1.0.0\Projects\zstack\ZLL\SampleLight\CC2530DB\ZLight-Router-No OSC32K\Exe\ZllLight-ZLIGHT.hex is ready to be loaded into the A2530 BoosterPack board. Follow the Loading Other Software on the A2530 Module procedure to load the BoosterPack with this new hex file.