Tag Archives: Code Composer Studio

Testing WLAN Station with CC3100 Booster Pack and Tiva Connected Launchpad

IMG_0218

The WLAN station example program using CC3100 connects to a Wi-Fi access point and then checks for internet connectivity by pinging “www.ti.com”.

Earlier version of CC3100 SDK only includes WLAN station example program for Tiva Launchpad. Several TI e2e members including me modify the WLAN station to work for Booster Pack 1 connector for Tiva Connected Launchpad. From Tiva Connected Launchpad and CC3100 Booster Pack photo on top of the post the Booster Pack 2 connector is at the right side of the Tiva Connected Launchpad, near the debug USB cable.

During my try to modify the WLAN station to work for Booster Pack 1 connector for Tiva Connected Launchpad, I downloaded a fresh copy of CC3100 SDK, and found a WLAN station example program for Tiva Connected Launchpad. I imported the WLAN station example program to my Code Composer Studio workspace for Tiva Connected Launchpad. I build it and I got a build error pointing out that my Tivaware Installation path is not setup at Code Composer Studio.

I corrected the Path Variable TIVAWARE_ROOT and set the folder location to my Tivaware installation directory (C:\EK-TM4C129)

To change Path Variables go to CCS Project Properties->Resource->Linked Resources.

I rebuild the WLAN station example program for Tiva Connected Launchpad and the build errors got resolved.

After reviewing the WLAN station example program for Tiva Connected Launchpad, I found out that it is setup for Tiva Connected Launchpad Booster Pack 2 Connector

Here below is the pin connections table of Tiva Connected Launchpad Booster Pack 2 Connector and CC3100 Booster Pack

.TivaBP2CC3100

The highlighted “green” cells at the table indicates the pin compatibility of Tiva Connected Launchpad and CC3100 Booster Pack.

At Code Composer Studio, I “run” the WLAN station example program and got the desired output at Tera Term.

WLAN Station output at Tera Term

wlanstation

Later on I got to review the WLAN station example program for Tiva Connected Launchpad, to learn in depth how the entire program works.

The WLAN station example program for Tiva Connected Launchpad is a good starting point for anyone, who want to develop products with similar application.

I hope this guide be of some help to those trying out the WLAN station example program with CC3100 Booster Back and Tiva Connected Launchpad.

Advertisements

Upgrading to current CC3200 SDK Revision for Code Composer Studio

Since I got my CC3200 Launchpad Revision 3.2, I have been using CC3200 SDK 0.5.2 and TI-RTOS 2.0.2.36 for SimpleLink Wireless MCUs. Followng the CC3200 Getting Started Guide, I was able to try several example without build errors, or warnings.

As the new CC3200 SDK 1.0.0 was just released, I downloaded it, so I can continue studying CC3200 Launchpad example programs to current SDK version.

Following the CC3200 Launchpad Getting Started Guide, I created a new CCS workspace and imported wlan_station, driverlib, simplelink, oslib and ti_rtos_config CC3200 SDK 1.0.0 example programs. It was mentioned at the CC3200 Getting Started Guide to build the ti_rtos_config first. But, I build the wlan_station and oslib first and got these errors below.

At wlan_station I am getting this warning below:

Description Resource Path Location Type
Invalid project path: Include path not found (C:\CCS6\tirtos_simplelink_2_00_02_36\products\bios_6_40_03_39\packages). wlan_station pathentry Path Entry Problem

At oslib I am getting these warnings below:

Description Resource Path Location Type
#225-D function “portCLZ” declared implicitly tasks.c /oslib line 2156 C/C++ Problem
#225-D function “prvPortStartFirstTask” declared implicitly port.c /oslib line 348 C/C++ Problem

These warnings above was solved by updating the CC3200 Add-On for Code Composer Studio. I also updated the TI-RTOS for SimpleLink Wireless MCUs as there is an update available at the CCS App Center.

ccsappcenter

After updating TI-RTOS for SimpleLink Wireless MCUs Add-On, you will see a new folder named “tirtos_simplelink_2_01_00_03” at your CCSV6 folder for this update. The update was version 2.1.0.03. (Note: This version might be different at the time of your upgrade)

Following the CC3200 Getting Started Guide for building ti_rtos_config, it is mentioned to Select the latest versions of
XDCtools and TI-RTOS for SimpleLink. Also verify the platform is selected as ti.platforms.simplelink:CC3200. (Note: This Code Composer Studio Version is 6.0.0.00190)

tirtosproperties

If you don’t select the latest version of TI-RTOS for SimpleLink Wireles MCU’s at ti_rtos_config project properties, the default 2.0.2.36 is selected. You will be able to build ti_rtos_config, but you will get this warning below building some of the example programs. You won’t be able to debug your example program with this warning below.

At email example program I am getting this warning below:

Description Resource Path Location Type
Invalid project path: Include path not found (C:\CCS6\tirtos_simplelink_2_00_02_36\products\bios_6_40_03_39\packages). email pathentry Path Entry Problem

After you have build the ti_rtos_config with correct project properties, you can now import other CC3200 launchpad example programs. After importing the CC3200 launchpad example programs I encountered this warnings below at CCS Project Explorer.

cc3200projectexplorer

If you build these example programs with warnings, you will get these error below.

At email example program I am getting this warning below:

Description Resource Path Location Type
This project was created using a version of compiler that is not currently installed: 5.1.6 [ARM]. Another version of the compiler will be used during build: 5.1.5. Please go to a CCS App Center to install the compiler of the required version, or migrate the project to one of the available compiler versions by adjusting project properties. email properties Problems.

After I change the compiler version to 5.1.5 at project properties, I was able to build the email example program without errors.

To summarize, If you are upgrading your CC3200 SDK version to current, follow some pointers mentioned in this blog and the CC3200 Getting Started Guide. If you encounter any other problems not mentioned at this blog, just ask at the Texas Instruments Engineer to Engineer Community.