User'S Guide: Cc3200 Simplelink Wi-Fi and Iot Solution With Mcu Launchpad Getting Started Guide
User'S Guide: Cc3200 Simplelink Wi-Fi and Iot Solution With Mcu Launchpad Getting Started Guide
User's Guide
1 Introduction ......................................................................................................................... 4
1.1 Prerequisites .............................................................................................................. 4
2 Getting Started ................................................................................................................... 5
2.1 Download and Install Software ......................................................................................... 5
2.2 Configure Board .......................................................................................................... 5
2.3 Update Service Pack .................................................................................................... 6
3 Compile, Download, and Debug ............................................................................................. 7
3.1 Option 1: Code Composer Studio (CCS) ............................................................................. 7
3.2 Option 2: IAR Workbench ............................................................................................. 16
3.3 Option 3: GCC ......................................................................................................... 22
4 Summary ........................................................................................................................... 28
5 Acronyms Used.................................................................................................................. 29
Revision History .......................................................................................................................... 30
Revision History .......................................................................................................................... 30
Revision History .......................................................................................................................... 30
List of Figures
1 Jumpers on the CC3200-LAUNCHXL..................................................................................... 5
2 Device Manager.............................................................................................................. 6
3 Code Composer Studio v6 Setup .......................................................................................... 7
4 CCS App Center ............................................................................................................. 8
5 Select CCS Projects to Import ............................................................................................. 9
6 Select CCS Projects to Import ............................................................................................ 10
7 Properties for ti_rtos_config ............................................................................................... 11
8 Select SimpleLink Project ................................................................................................. 12
9 Editing common.h .......................................................................................................... 12
10 Target Configurations ...................................................................................................... 13
11 Import Target Configuration ............................................................................................... 13
12 Set as Default ............................................................................................................... 14
13 Launch Tera Term ......................................................................................................... 14
14 Tera Term Serial Port Setup .............................................................................................. 15
15 Debug wlan_station ........................................................................................................ 15
16 Tera Term VT ............................................................................................................... 16
17 IAR Embedded Workbench IDE .......................................................................................... 17
18 Open simplelink.eww ...................................................................................................... 18
19 Rebuild the simplelink Project. ........................................................................................... 19
20 Editing common.h .......................................................................................................... 20
21 Select TI Stellaris Driver ................................................................................................... 20
22 Launch Tera Term ......................................................................................................... 21
23 Tera Term Serial Port Setup .............................................................................................. 21
24 Debug Icon .................................................................................................................. 22
25 Tera Term VT ............................................................................................................... 22
26 Cygwin Setup ............................................................................................................... 23
27 Zadig Options ............................................................................................................... 24
28 Replace Driver .............................................................................................................. 24
29 Editing common.h .......................................................................................................... 25
30 Output Screen .............................................................................................................. 25
31 Debugging wlan_station ................................................................................................... 26
32 Tera Term VT ............................................................................................................... 26
33 Device Manager ............................................................................................................ 27
This guide is intended to assist users in the initial setup and demonstration of the Getting Started with
WLAN Station application. The guide explains how to install an Integrated Development Environment
(IDE), and then compile, download, and debug Getting Started with WLAN Station.
1 Introduction
1.1 Prerequisites
The user should have the following items:
One CC3200-LAUNCHXL
An 802.11b/g/n (2.4 GHz) Wireless Access Point (AP).
A computer running the Microsoft Windows 7 or XP operating systems.
4 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad SWRU376D June 2014 Revised March 2016
Getting Started Guide Submit Documentation Feedback
Copyright 20142016, Texas Instruments Incorporated
www.ti.com Getting Started
2 Getting Started
SWRU376D June 2014 Revised March 2016 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad 5
Submit Documentation Feedback Getting Started Guide
Copyright 20142016, Texas Instruments Incorporated
Getting Started www.ti.com
6 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad SWRU376D June 2014 Revised March 2016
Getting Started Guide Submit Documentation Feedback
Copyright 20142016, Texas Instruments Incorporated
www.ti.com Compile, Download, and Debug
SWRU376D June 2014 Revised March 2016 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad 7
Submit Documentation Feedback Getting Started Guide
Copyright 20142016, Texas Instruments Incorporated
Compile, Download, and Debug www.ti.com
8 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad SWRU376D June 2014 Revised March 2016
Getting Started Guide Submit Documentation Feedback
Copyright 20142016, Texas Instruments Incorporated
www.ti.com Compile, Download, and Debug
3. Select the wlan_station, driverlib, simplelink, oslib, and ti_rtos_config projects. Click Finish. For any
library import, do not check the 'Copy projects into workspace' option. This breaks the links from the
libraries to their dependencies. The wlan_station project is automatically copied to the workspace.
SWRU376D June 2014 Revised March 2016 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad 9
Submit Documentation Feedback Getting Started Guide
Copyright 20142016, Texas Instruments Incorporated
Compile, Download, and Debug www.ti.com
4. Select the ti_rtos_config project in Project Explorer, and select Project>Properties from the menu.
Under General, select the RTSC tab as shown in Figure 7. Select the latest versions of XDCtools and
TI-RTOS for SimpleLink (not shown in Figure 7). Also verify the platform is selected as
ti.platforms.simplelink:CC3200.
10 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad SWRU376D June 2014 Revised March 2016
Getting Started Guide Submit Documentation Feedback
Copyright 20142016, Texas Instruments Incorporated
www.ti.com Compile, Download, and Debug
SWRU376D June 2014 Revised March 2016 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad 11
Submit Documentation Feedback Getting Started Guide
Copyright 20142016, Texas Instruments Incorporated
Compile, Download, and Debug www.ti.com
12 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad SWRU376D June 2014 Revised March 2016
Getting Started Guide Submit Documentation Feedback
Copyright 20142016, Texas Instruments Incorporated
www.ti.com Compile, Download, and Debug
14. Right-click on User Defined, select Import Target Configuration and select the file CC3200.ccxml from
C:\TI\CC3200SDK_1.2.0\cc3200-sdk\tools\ccs_patch\. Select the Copy files option when prompted.
SWRU376D June 2014 Revised March 2016 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad 13
Submit Documentation Feedback Getting Started Guide
Copyright 20142016, Texas Instruments Incorporated
Compile, Download, and Debug www.ti.com
15. Set this new configuration as the default by right-clicking on the file name, as shown in Figure 12.
Caution: Only one FTDI board should be connected to the PC while CCS downloads code to the
device.
16. Launch Tera Term, and create a new serial connection to the CC3200 Launchpad COM port as shown
in Figure 13.
17. In the menu, select Setup>Serial Port, and change the baud rate to 115200 as shown in Figure 14.
14 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad SWRU376D June 2014 Revised March 2016
Getting Started Guide Submit Documentation Feedback
Copyright 20142016, Texas Instruments Incorporated
www.ti.com Compile, Download, and Debug
18. Launch application: select the wlan_station project in Project Explorer, then click the debug icon as
shown in Figure 15 to download code to the device and begin debugging. Press F8 to begin execution.
19. If the CC3200 successfully completes all steps, the serial output appears as shown in Figure 16.
SWRU376D June 2014 Revised March 2016 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad 15
Submit Documentation Feedback Getting Started Guide
Copyright 20142016, Texas Instruments Incorporated
Compile, Download, and Debug www.ti.com
16 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad SWRU376D June 2014 Revised March 2016
Getting Started Guide Submit Documentation Feedback
Copyright 20142016, Texas Instruments Incorporated
www.ti.com Compile, Download, and Debug
SWRU376D June 2014 Revised March 2016 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad 17
Submit Documentation Feedback Getting Started Guide
Copyright 20142016, Texas Instruments Incorporated
Compile, Download, and Debug www.ti.com
3. Rebuild the simplelink project by selecting Project>Rebuild All from the menu, as shown in Figure 19.
18 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad SWRU376D June 2014 Revised March 2016
Getting Started Guide Submit Documentation Feedback
Copyright 20142016, Texas Instruments Incorporated
www.ti.com Compile, Download, and Debug
SWRU376D June 2014 Revised March 2016 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad 19
Submit Documentation Feedback Getting Started Guide
Copyright 20142016, Texas Instruments Incorporated
Compile, Download, and Debug www.ti.com
4. Save common.h.
5. Rebuild the wlan_station project by selecting Project>Rebuild All from the menu.
6. The debugger must be configured to download code to the device. Select Project>Options from the
menu, and select the Debugger category. In the Setup tab, choose TI Stellaris as the driver, as shown
in Figure 21, and press OK.
7. Launch Tera Term, and create a new serial connection to the CC3200 Launchpad COM port as shown
in Figure 22.
20 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad SWRU376D June 2014 Revised March 2016
Getting Started Guide Submit Documentation Feedback
Copyright 20142016, Texas Instruments Incorporated
www.ti.com Compile, Download, and Debug
8. In the menu, select Setup>Serial Port, and change the baud rate to 115200 as shown in Figure 23.
9. Click the debug icon as shown in Figure 24 to download code to the device and start debugging.
Select Debug>Go from the menu, or press F5 to begin execution.
SWRU376D June 2014 Revised March 2016 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad 21
Submit Documentation Feedback Getting Started Guide
Copyright 20142016, Texas Instruments Incorporated
Compile, Download, and Debug www.ti.com
10. If the CC3200 successfully completes all steps, the serial output appears as shown in Figure 25.
22 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad SWRU376D June 2014 Revised March 2016
Getting Started Guide Submit Documentation Feedback
Copyright 20142016, Texas Instruments Incorporated
www.ti.com Compile, Download, and Debug
SWRU376D June 2014 Revised March 2016 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad 23
Submit Documentation Feedback Getting Started Guide
Copyright 20142016, Texas Instruments Incorporated
Compile, Download, and Debug www.ti.com
24 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad SWRU376D June 2014 Revised March 2016
Getting Started Guide Submit Documentation Feedback
Copyright 20142016, Texas Instruments Incorporated
www.ti.com Compile, Download, and Debug
3. Save common.h.
4. In the Cygwin terminal, change the directory to C:\TI\CC3200SDK_1.2.0\cc3200-sdk\
example\getting_started_with_wlan_station\gcc\ and run the following command:
make -f Makefile
Note that Cygwin uses forward slashes to separate the directories.
5. Go to <cc3200-sdk>\example\getting_started_with_wlan_station\gcc\ in the command prompt and run
following command:
make -f Makefile
6. This generates the wlan_station.axf file under the gcc\exe folder.
SWRU376D June 2014 Revised March 2016 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad 25
Submit Documentation Feedback Getting Started Guide
Copyright 20142016, Texas Instruments Incorporated
Compile, Download, and Debug www.ti.com
This results in a GDB prompt. To continue, type continue and press enter.
6. If the CC3200 successfully completes all steps, the serial output appears as shown in Figure 32. See
Figure 31 for the result of debugging the wlan_station application from GCC.
26 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad SWRU376D June 2014 Revised March 2016
Getting Started Guide Submit Documentation Feedback
Copyright 20142016, Texas Instruments Incorporated
www.ti.com Compile, Download, and Debug
2. Update the driver software for USB<->JTAG/SWD (Interface 0) under Universal Serial Bus devices.
3. Select the <cc3200-sdk>\tools\ftdi folder for the driver update, as shown in Figure 33.
SWRU376D June 2014 Revised March 2016 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad 27
Submit Documentation Feedback Getting Started Guide
Copyright 20142016, Texas Instruments Incorporated
Summary www.ti.com
4 Summary
After the development environment has been set up, refer to the following resources for further assistance
in development:
CC3200 Programmer's Guide (SWRU369) This guide contains information on how to use the
SimpleLink API for writing WLAN-enabled applications.
PinMux Tool This utility helps determine how to best assign peripherals to the appropriate CC3200
package pins.
Uniflash The Uniflash tool manually stores files on the external serial flash. This includes the
application binary and SimpleLink firmware patch files. Also, any configuration files, security
certificates, web pages, and so forth can be stored using this tool.
CC3200 Wiki All information and tools for the CC3200, including the above, can be found on the
CC3200 Wiki page.
28 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad SWRU376D June 2014 Revised March 2016
Getting Started Guide Submit Documentation Feedback
Copyright 20142016, Texas Instruments Incorporated
www.ti.com Acronyms Used
5 Acronyms Used
STA Wi-Fi Station
AP Wi-Fi Access Point
WLAN Wireless LAN
CCS Code Composer Studio
GCC GNU Compiler Collection
SWRU376D June 2014 Revised March 2016 CC3200 SimpleLink Wi-Fi and IoT Solution With MCU LaunchPad 29
Submit Documentation Feedback Getting Started Guide
Copyright 20142016, Texas Instruments Incorporated
Revision History www.ti.com
Revision History
NOTE: Page numbers for previous revisions may differ from page numbers in the current version.
Changes from July 9, 2015 to March 31, 2016 (from C Revision (July 2015) to D Revision) ...................................... Page
Revision History
Changes from March 4, 2015 to July 8, 2015 (from B Revision (March 2015) to C Revision) ..................................... Page
Revision History
Changes from July 1, 2014 to March 3, 2015 (from A Revision (July 2014) to B Revision) ........................................ Page
Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, enhancements, improvements and other
changes to its semiconductor products and services per JESD46, latest issue, and to discontinue any product or service per JESD48, latest
issue. Buyers should obtain the latest relevant information before placing orders and should verify that such information is current and
complete. All semiconductor products (also referred to herein as components) are sold subject to TIs terms and conditions of sale
supplied at the time of order acknowledgment.
TI warrants performance of its components to the specifications applicable at the time of sale, in accordance with the warranty in TIs terms
and conditions of sale of semiconductor products. Testing and other quality control techniques are used to the extent TI deems necessary
to support this warranty. Except where mandated by applicable law, testing of all parameters of each component is not necessarily
performed.
TI assumes no liability for applications assistance or the design of Buyers products. Buyers are responsible for their products and
applications using TI components. To minimize the risks associated with Buyers products and applications, Buyers should provide
adequate design and operating safeguards.
TI does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or
other intellectual property right relating to any combination, machine, or process in which TI components or services are used. Information
published by TI regarding third-party products or services does not constitute a license to use such products or services or a warranty or
endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the
third party, or a license from TI under the patents or other intellectual property of TI.
Reproduction of significant portions of TI information in TI data books or data sheets is permissible only if reproduction is without alteration
and is accompanied by all associated warranties, conditions, limitations, and notices. TI is not responsible or liable for such altered
documentation. Information of third parties may be subject to additional restrictions.
Resale of TI components or services with statements different from or beyond the parameters stated by TI for that component or service
voids all express and any implied warranties for the associated TI component or service and is an unfair and deceptive business practice.
TI is not responsible or liable for any such statements.
Buyer acknowledges and agrees that it is solely responsible for compliance with all legal, regulatory and safety-related requirements
concerning its products, and any use of TI components in its applications, notwithstanding any applications-related information or support
that may be provided by TI. Buyer represents and agrees that it has all the necessary expertise to create and implement safeguards which
anticipate dangerous consequences of failures, monitor failures and their consequences, lessen the likelihood of failures that might cause
harm and take appropriate remedial actions. Buyer will fully indemnify TI and its representatives against any damages arising out of the use
of any TI components in safety-critical applications.
In some cases, TI components may be promoted specifically to facilitate safety-related applications. With such components, TIs goal is to
help enable customers to design and create their own end-product solutions that meet applicable functional safety standards and
requirements. Nonetheless, such components are subject to these terms.
No TI components are authorized for use in FDA Class III (or similar life-critical medical equipment) unless authorized officers of the parties
have executed a special agreement specifically governing such use.
Only those TI components which TI has specifically designated as military grade or enhanced plastic are designed and intended for use in
military/aerospace applications or environments. Buyer acknowledges and agrees that any military or aerospace use of TI components
which have not been so designated is solely at the Buyer's risk, and that Buyer is solely responsible for compliance with all legal and
regulatory requirements in connection with such use.
TI has specifically designated certain components as meeting ISO/TS16949 requirements, mainly for automotive use. In any case of use of
non-designated products, TI will not be responsible for any failure to meet ISO/TS16949.
Products Applications
Audio www.ti.com/audio Automotive and Transportation www.ti.com/automotive
Amplifiers amplifier.ti.com Communications and Telecom www.ti.com/communications
Data Converters dataconverter.ti.com Computers and Peripherals www.ti.com/computers
DLP Products www.dlp.com Consumer Electronics www.ti.com/consumer-apps
DSP dsp.ti.com Energy and Lighting www.ti.com/energy
Clocks and Timers www.ti.com/clocks Industrial www.ti.com/industrial
Interface interface.ti.com Medical www.ti.com/medical
Logic logic.ti.com Security www.ti.com/security
Power Mgmt power.ti.com Space, Avionics and Defense www.ti.com/space-avionics-defense
Microcontrollers microcontroller.ti.com Video and Imaging www.ti.com/video
RFID www.ti-rfid.com
OMAP Applications Processors www.ti.com/omap TI E2E Community e2e.ti.com
Wireless Connectivity www.ti.com/wirelessconnectivity
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright 2016, Texas Instruments Incorporated