Building Module Examples for Stellaris LaunchPad

To build the AIR-ZNP Module Examples using Code Composer Studio for the EK-LM4F120XL Stellaris LaunchPad the following procedure can act as a guide. This procedure was done using Code Composer Studio v5.4.0.00091.

=Notes=

The AIR-ZNP Module Examples as currently shipping on the CD for Stellaris were built using Code Composer Studio v4 tools. So if you have Code Composer Studio v5, there is a minor change that must be made to the build settings to get the projects to build.

There are two important things to get this to work:
 * 1) You need to use the ...\Firmware\ZM Examples\CCS_Stellaris folder as your CCS Workspace folder (see step 3 below).
 * 2) You need to update the Build Settings to the current version of the compiler tools (see step 7 below).

=Procedure=


 * 1) Copy the AIR-ZNP CD (that came with the A2530x24A-LPZ BoosterPack kit) into a folder (e.g. c:\Anaren_AIR-ZNP_2012-11-02)
 * 2) Download, Install and start Code Composer Studio for Stellaris.  You can find the latest versions on the CCS Download Page.  Give yourself time, this takes about an hour.
 * 3) When CCS prompts for the Workspace location, enter the Firmware\ZM Examples\CCS Stellaris folder where you copied the files from the CD (e.g. c:\Anaren_AIR-ZNP_2012-11-02\Firmware\ZM Examples\CCS_Stellaris).
 * 1) After Code Composer starts up, select File -> Import -> Code Composer Studio -> Existing CCS Eclipse Projects, and click Next.
 * 1) In the Select Root Directory field, enter the …\Firmware\ZM Examples\CCS_Stellaris folder (e.g. c:\Anaren_AIR-ZNP_2012-11-02\Firmware\ZM Examples\CCS_Stellaris).  Click the Select All, and then Finish buttons.
 * 1) You MUST build the driverlib-cm4f project before any others.  Right click on “driverlib-cm4f” in the Project Explorer list on the left.
 * 2) Now click Show Build Settings...  Set the processor to Stellaris LM4F120H5QR.  Set the compiler version to TI v5.0.4 (or whatever version that you have installed).  And then click OK.
 * 1) Now build the project:  Right Click on driverlib-cm4f in the Project Explorer window on the left, and select Rebuild Project.
 * 1) Once the driverlib-cm4f project is built, you should be able to repeat the procedure to build the example projects.  For example to build Hello World, repeat steps 7 and 8 using Hello World instead of driverlib-cm4f.
 * 1) Once Hello World is built, connect the Stellaris LaunchPad together with the Anaren BoosterPack (with MSP430G2553 removed), and connect it to the PC using a USB cable to the Debug port (not Device) on the Stellaris LaunchPad. Also be sure that the switch is in the Debug position (not Device).
 * 2) Click on the debug icon.  This should load the processor, and start up the debugger with the processor stopped at the beginning of main.
 * 1) You can now open a terminal window.  Set it for serial communications at 115200 baud,8 bits, no parity, 1 stop bit, no flow control.
 * 2) Run the program, and you should see output about once per second:
 * 1) Now simply repeat the steps above to build other examples (remembering to do step 7 each time).