NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
CC3100 Getting Started with WLAN Station
Contents
Overview and application details[edit]
This sample application demonstrates how to start CC3100 in WLAN-Station mode and connect to a Wi-Fi access-point. The application connects to an access-point and pings the gateway. It also checks for an internet connectivity by pinging "www.ti.com"
By default, this application communicates w/ CC3100 over SPI. The SDK has UART-Drivers as well for MSP430F5529LP and Tiva-C platforms. For using the UART interface to communicate w/ CC3100, macro SL_IF_TYPE_UART has to be defined in the application-project's properties.
Note: This wiki page is only applicable for CC3100-SDK v1.0.0 and upward releases. For documentation on older SDKs' examples, refer corresponding file in <cc3100-sdk-installation-location>\cc3100-sdk\docs\examples\
Source Files briefly explained[edit]
- main - Initializes the device, connects to an AP and verifies the connection status
Usage[edit]
Prerequisite: This application requires an access-point with internet connectivity
- Connect the board to a Windows-PC and configure the terminal-program for seeing the logs - CC31xx & CC32xx Terminal Setting Wiki has detailed instructions for configuring the terminal-program
- Open sl_common.h and and change SSID_NAME, SEC_TYPE and PASSKEY as per your access-point's properties. SimpleLink device will connect to this AP when the application is executed
- Build and run the project using IAR/CCS
- See the self explanatory logs on the terminal-program's console. On success, below message will be displayed on the terminal
Building for Tiva-C LaunchPad[edit]
To build the application for Tiva-C LaunchPad, follow below steps:
- IAR
- Open the project's Options
- Replace the tivaware path under C/C++ Compiler->Preprocessor section
- Replace the tivaware library path under Linker->Library section
- Build the project
- Code Composer Studio
- Open the project property
- Update TIVAWARE_ROOT variable available under Resource->Linked Resources with tivaware root directory
- Build the project
Note: The solution provided in SDK for tiva-c-connected-launchpad is using the Boosterpack 2 interface.
Limitations/Known Issues[edit]
None
Links[edit]
{{#invoke: Navbox | navbox }} {{#invoke: Navbox | navbox }}