CC3200 SimpleLink™ Wi-Fi® and IoT Solution With MCU LaunchPad™ Getting Started Guide User's Guide Literature Number: SWRU376A June 2014 – Revised June 2014
Contents 1 Introduction ......................................................................................................................... 4 1.1 2 3 Prerequisites .............................................................................................................. 4 Getting Started ................................................................................................................... 5 2.1 Download and Install Software .....................................................
www.ti.com List of Figures 1 Jumpers on the CC3200-LAUNCHXL..................................................................................... 5 2 Windows Device Manager .................................................................................................. 6 3 Update Driver Software ..................................................................................................... 6 4 Browse for Driver Software .........................................................................
User's Guide SWRU376A – June 2014 – Revised June 2014 CC3200 SimpleLink™ Wi-Fi® and IoT Solution With MCU LaunchPad™ Getting Started Guide 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.
Getting Started www.ti.com 2 Getting Started 2.1 Download and Install Software Download and install the following software: • CC3200 SDK package. – This guide assumes the use of the default installation folder C:\TI\CC3200SDK\. 2.2 Configure Board The jumpers on the CC3200-LAUNCHXL should be connected as shown in Figure 1. It may be necessary to move a jumper from P58-VCC to SOP2. Figure 1. Jumpers on the CC3200-LAUNCHXL 2.3 Install USB Driver 1.
Getting Started www.ti.com Figure 2. Windows Device Manager 3. Right click on the first instance of “USB <-> JTAG/SWD” and select “Update Driver Software…” 4. Select “Browse my computer for driver software.” Figure 3. Update Driver Software 5. Fill the search path as C:\TI\CC3200SDK\cc3200-sdk\tools\ftdi, and press next. There is no need to restart the PC.
Getting Started www.ti.com Figure 4. Browse for Driver Software 6. Repeat the above three steps for the other instance of "USB <-> JTAG/SWD." 7. Repeat the same steps for the instance of “USB Serial Port” that should have appeared as shown in Figure 5. Figure 5. USB Serial Port 8. The CC3200-LAUNCHXL will now be visible in the Device Manager as shown in Figure 6. Note the COM port number that appears.
Getting Started www.ti.com Figure 6.
Compile, Download, and Debug www.ti.com 3 Compile, Download, and Debug The CC3200 SDK supports CCS 6.0, IAR 7.10.3 and GCC IDE/compiler. The example shown here is Getting Started with WLAN Station, and performs the following functions: 1. Switches to Station mode if the device is in AP mode. 2. Connects to the user's Access Point (default SSID is ‘cc3200demo’). If the connection to the AP is successful, the red LED (D7) will switch on. 3. Pings the user's Access Point.
Compile, Download, and Debug 2. 3. 4. 5. 6. www.ti.com Open the App Center from the Help->Getting Started screen. Search 'CC3200' in the App Center to find 'TI-RTOS for SimpleLink' and 'CC3200 Add-On' Select TI-RTOS Select the CC3200 Add-On Press 'Install Software' Figure 8. CCS App Center 3.1.3 Import and Configure Project 1. Choose Projects>Import CCS Projects from the menu. 2. Select the Browse button in the Import CCS Eclipse Projects dialog, and Select the directory C:\TI\CC3200SDK\cc3200-sdk.
Compile, Download, and Debug www.ti.com Figure 9. Select CCS Projects to Import 3. Select the wlan_station, driverlib, simplelink, oslib and ti_rtos_config projects. Click Finish. For this tutorial, do not check the 'Copy projects into workspace' option. This would cause the project's links to it's dependencies to be broken since relative paths are used.
Compile, Download, and Debug www.ti.com Figure 10. Select CCS Projects to Import 4. Setup the ti_rtos_config project configuration as shown in Figure 11. Select the latest versions of XDCtools and TI-RTOS for SimpleLink. Also verify the platform is selected as ti.platforms.simplelink:CC3200.
Compile, Download, and Debug www.ti.com Figure 11. Properties for ti_rtos_config 5. Select the simplelink project and build it as shown in Figure 12.
Compile, Download, and Debug www.ti.com Figure 12. Select simplelink Project 6. 7. 8. 9. Select the ti_rtos_config project and build it. Select the driverlib project and build it. Select the oslib project and build it. Open the main.c file of the wlan_station project for editing at C:\TI\CC3200SDK\cc3200sdk\example\getting_started_with_wlan_station\main.c. 10. Edit main.c to use the SSID, security type and security key of the Access Point being used.
Compile, Download, and Debug www.ti.com 12. Select the wlan_station project and build it. 13. The target configuration needs to be set before debugging from CCS. Navigate to View>Target Configurations. Figure 14. Target Configurations 14. Right Click on “User Defined,” select “Import Target Configuration” and select the file CC3200.ccxml from C:\TI\CC3200SDK\cc3200-sdk\tools\ccs_patch\. Select the Copy files option when prompted. Figure 15.
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 16. Figure 16. Set as Default 16. Launch application. Select the wlan_station project in Project Explorer, then click the debug icon as shown in Figure 17 to download code to the device and begin debugging. Press F8 to begin execution. Figure 17. Debug wlan_station Caution: Only one FTDI board should be connected to the PC while CCS downloads code to device. 3.2 3.
Compile, Download, and Debug www.ti.com 3.2.2 Rebuild the SimpleLink Driver 1. Start IAR and select File>Open>Workspace from the menu. Figure 18. IAR Embedded Workbench IDE 2. Open the simplelink project by navigating to C:\TI\CC3200SDK\cc3200-sdk\simplelink\ewarm and opening simplelink.eww.
Compile, Download, and Debug www.ti.com Figure 19. Open simplelink.eww 3. Rebuild the simplelink project by selecting Project>Rebuild All from the menu as shown in Figure 20.
Compile, Download, and Debug www.ti.com Figure 20. Rebuild the simplelink Project. 3.2.3 Rebuild, Download and Debug the WLAN Station Example 1. Open the wlan_station project by selecting File>Open>Workspace from the menu, navigating to C:\TI\CC3200SDK\cc3200-sdk\example\ getting_started_with_wlan_station\ewarm, and opening wlan_station.eww. 2. Open the main.c file of the wlan_station project for editing at C:\TI\CC3200SDK\cc3200sdk\example\getting_started_with_wlan_station\main.c. 3. Edit main.
Compile, Download, and Debug www.ti.com security, define it as SL_SEC_TYPE_WPA. Figure 21. Editing main.c 4. Save main.c. 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 22, and press OK. Figure 22. Select TI Stellaris Driver 7.
Compile, Download, and Debug www.ti.com Figure 23. Debug Icon 3.3 Option 3: GCC This section demonstrates the GCC setup for the Windows 7 environment. GCC installation requires other dependencies to be installed to work with ARM-based devices. 3.3.1 Install Cygwin (Windows) 1. Download setup-x86.exe from http://cygwin.com/install.html and run it. Select the Install from Internet option. 2. Specify a proxy if necessary, depending on the network. 3. Choose a download site (for example, http://mirrors.
Compile, Download, and Debug www.ti.com Figure 24. Cygwin Setup 5. The system will find dependencies. Press Next. 6. After a successful Cygwin installation, add its path (c:\cygwin\bin\) to the Windows environment variable PATH by going into Control Panel>System>Advanced System Settings>Environment Variables. Under System Variables, select PATH and press Edit. Append “;C:\cygwin\bin\” to the end of the line and press Ok. 3.3.
Compile, Download, and Debug www.ti.com 6. Run the following command: ./configure --enable-maintainer-mode --disable-werror --disable-shared --enable-ft2232_ftd2xx -with-ftd2xx-win32-zipdir=ftd2xx The command should look similar to Figure 25. Figure 25. Cygwin Terminal The last lines of the result should appear as in Figure 26. Figure 26. Cygwin Terminal 7. Run the command ‘autoreconf --force --install.' 8. Run the command ‘make.’ This may take several minutes.
Compile, Download, and Debug www.ti.com Figure 28. Running the Make Install Command 10. After the command has run successfully, check that the file openocd.exe is generated at path C:\cygwin\usr\local\bin. Add this path to the Windows PATH environment variable. 3.3.4 Compile the GCC SDK project 1. Open the main.c file of the wlan_station project for editing at C:\TI\CC3200SDK\cc3200sdk\example\getting_started_with_wlan_station\main.c. 2. Edit main.
Compile, Download, and Debug www.ti.com Figure 30. Makefile Command This generates the wlan_station.axf file under the gcc\exe folder. 3.3.5 Target Connection and Debug (GDB) 1. The OpenOCD configuration file for FTDI is present under the C:\CC3200SDK\cc3200-sdk\ tools\gcc_scripts\ folder.
Compile, Download, and Debug www.ti.com Figure 32. Debugging wlan_station This results in a GDB prompt. To continue, type ‘continue’ and press enter. For other commands, consult the GDB Quick Guide.
Summary www.ti.com 4 Summary After the development environment has been set up, see the following resources for further assistance in development: • CC3200 Programmer's Guide – 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.
Acronyms Used 5 www.ti.
Revision History www.ti.com Revision History Changes from Original (June 2014) to A Revision ......................................................................................................... Page • • • • • • • • • • Changed Changed image ................................................................................................................ 3 Changed Changed image ................................................................................................................
IMPORTANT NOTICE 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.