Texas Instruments CC3220 Getting Started Manual

Texas Instruments CC3220 Getting Started Manual

Simplelink wi-fi and internet of things solution, a single-chip wireless mcu
Hide thumbs Also See for CC3220:

Advertisement

Quick Links

®
CC3220 SimpleLink™ Wi-Fi
and Internet of
Things Solution, a Single-Chip Wireless MCU
Getting Started Guide
Literature Number: SWRU461B
February 2017 – Revised June 2018

Advertisement

Table of Contents
loading

Summary of Contents for Texas Instruments CC3220

  • Page 1 ® CC3220 SimpleLink™ Wi-Fi and Internet of Things Solution, a Single-Chip Wireless MCU Getting Started Guide Literature Number: SWRU461B February 2017 – Revised June 2018...
  • Page 2: Table Of Contents

    Recompilation for Other Device Variants ...................................................................... Download the Application ..........2.4.1 Image Creation for Secure Device (CC3220S and CC3220SF) ............. 2.4.2 Image Creation for Nonsecure Device (CC3220) ....................Launching the Application ...................... Using the Application ......................Use the Debugger/IDE ........................ Prerequisites ...................
  • Page 3: Preface

    For detailed IAR instructions, refer to: <sdk-installation-path>\docs\cc3220\CC3220_SDK_IAR_project_setup_guide.html GCC is currently not supported. The CC3220 device is part of the SimpleLink microcontroller (MCU) platform, which consists of Wi-Fi, Bluetooth low energy, Sub-1 GHz, and host MCUs. All share a common, easy-to-use development ®...
  • Page 4: Download And Installation

    UniFlash is a stand-alone tool used to program on-chip flash memory on TI MCUs and onboard flash memory for Sitara processors. The tool lets the developer download application image, service pack, and other files on the serial flash of the CC3220 device. It also enables the creation of OTA (Over-The-Air) images.
  • Page 5 Figure 1-2. Select Install Path 4. Proceed with the installation, and when done click Finish as shown in Figure 1-3. Figure 1-3. Complete Installation SWRU461B – February 2017 – Revised June 2018 Download and Installation Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 6: Serial Terminal

    Figure 1-4. Select Serial Port 4. Go to Setup → Serial port, as shown in Figure 1-5. Figure 1-5. Set up Serial Port Download and Installation SWRU461B – February 2017 – Revised June 2018 Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 7: Pin Mux Tool

    For more information on this tool, see http://processors.wiki.ti.com/index.php/TI_PinMux_Tool_v4. For older versions of this tool, the CC3220 device may not be listed explicitly under the supported devices. If that is the case, choose the CC3200 device from the drop-down menu to generate the same output files required by the CC3220 device.
  • Page 8 Figure 1-7. Set up XDS110 2. Read and accept the License Agreement and click Next, as shown in Figure 1-8. Figure 1-8. License Agreement Download and Installation SWRU461B – February 2017 – Revised June 2018 Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 9 Figure 1-9. Select Install Path 4. Click Finish when installation is done, as shown in Figure 1-10. Figure 1-10. Complete Installation SWRU461B – February 2017 – Revised June 2018 Download and Installation Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 10: Debugger/Ide

    The rest of the installation steps will remain the same as for a new installation: Figure 1-11. Set up CCS Download and Installation SWRU461B – February 2017 – Revised June 2018 Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 11 1.7.1.1 CCS Linux Patch for CC3220 Device Variants In case the Linux version of CCS is being used and the CC3220 variant is not listed within the target ® devices, the following patch should be applied: 1. Copy the content of the <sdk-installation-path>\tools\ccs_patch\ccs\ folder into <ccs_installation_dir>\ccs_base.
  • Page 12: Iar

    Operating Systems The CC3220 SDK currently supports TI-RTOS and FreeRTOS. Each real-time kernel port consists of three files that contain the core kernel components and are common to every port, and one or more files that are specific to a particular microcontroller and/or compiler. Each directory contains files specific to a particular compiler (CCS, GCC, and IAR).
  • Page 13: Execute Your First Application

    The SDK supports the following device variants: • CC3220 – Base variant • CC3220S – CC3220 + MCU security • CC3220SF – CC3220S + internal flash The SDK is packed with precompiled binaries for several networking and peripheral examples. By default, the sample applications are built for the CC3220SF variant.
  • Page 14: Ccs

    2-1, and select the directory <sdk-installation-path>\examples\os\CC3220SF_LAUNCHXL\demos (use relative path of CC3220S if needed). Figure 2-1. Select CCS Projects to Import Execute your First Application SWRU461B – February 2017 – Revised June 2018 Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 15 SDK installation directory). To remove this enforcement, delete the .ccsimportspec from the folder of the project. SWRU461B – February 2017 – Revised June 2018 Execute your First Application Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 16 10. See Chapter 3 to execute the application from the debugger. NOTE: By default, the application is compiled for the CC3220SF variant. To build the application for other device variants (CC3220 and CC3220S), see Section 2.1.2. Execute your First Application SWRU461B –...
  • Page 17: Recompilation For Other Device Variants

    2. Select the required device variant under General → Main → Variant, as shown in Figure 2-4. Figure 2-4. Select Device Variant 3. Click OK. See <sdk-installation-path>\docs\simplelink_mcu_sdk\Quick_Start_Guide.html See <sdk-installation-path>\docs\simplelink_mcu_sdk\Quick_Start_Guide.html SWRU461B – February 2017 – Revised June 2018 Execute your First Application Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 18: Download The Application

    Do the procedure that follows to flash the Network Terminal application. 1. Run the UniFlash tool. 2. Select CC3120 / CC3220 from the list of devices (you may type CC3… to the search tab to filter out other devices). See Figure 2-5.
  • Page 19 Download the Application www.ti.com 3. Select Start Image Creator (see Figure 2-6). Figure 2-6. UniFlash – Start Image Creator SWRU461B – February 2017 – Revised June 2018 Execute your First Application Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 20 Download the Application www.ti.com 4. Click on New Project, as shown in Figure 2-7. Figure 2-7. New Project Execute your First Application SWRU461B – February 2017 – Revised June 2018 Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 21 Download the Application www.ti.com 5. Fill all the necessary fields properly. Make sure to select the correct device type (CC3220 for CC3220 and CC3220S device, CC3220SF for CC3220SF device) and click on Create Project, as shown in Figure 2-8. NOTE: Although not required for the first step of this Getting Started guide (which uses a...
  • Page 22: Image Creation For Secure Device (Cc3220S And Cc3220Sf)

    3. Select the User Files icon on lower-left side and click the Add File icon, as shown in Figure 2-11. Figure 2-11. Add File Execute your First Application SWRU461B – February 2017 – Revised June 2018 Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 23 2-12. Repeat this operation for each certificate file (that composes a chain of trust): • dummy-root-ca-cert • dummy-trusted-ca-cert • dummy-trusted-cert Figure 2-12. Select Certificate File SWRU461B – February 2017 – Revised June 2018 Execute your First Application Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 24 Figure 2-13. Figure 2-13. Select MCU Image 6. Click Browse and select the application image (<workspace>\network_terminal_CC3220SF_LAUNCHXL_tirtos_ccs\Debug\network_terminal_CC3220 SF_LAUNCHXL_tirtos_ccs.bin) to flash. Execute your First Application SWRU461B – February 2017 – Revised June 2018 Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 25 Figure 2-14. Select Certificate Filename 8. Browse and select the service pack installed in Section 1.2. 9. Click on the icon. SWRU461B – February 2017 – Revised June 2018 Execute your First Application Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 26 10. Click on Program Image (Create & Program), as shown in Figure 2-15. This step might take a minute. Figure 2-15. Generate Image Execute your First Application SWRU461B – February 2017 – Revised June 2018 Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 27: Image Creation For Nonsecure Device (Cc3220)

    Download the Application www.ti.com 2.4.2 Image Creation for Nonsecure Device (CC3220) 1. Click on User Files icon on bottom left. 2. Select Select MCU Image from the Action drop-down menu, as shown in Figure 2-16. Figure 2-16. Select MCU Image 3.
  • Page 28 4. Uncheck the Secure checkbox. No other parameter needs to be updated. Click Write, as shown in Figure 2-17. Figure 2-17. Save Image 5. Click on the icon. Execute your First Application SWRU461B – February 2017 – Revised June 2018 Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 29: Launching The Application

    2. Press the Reset button on the LaunchPad development kit. During the boot process, the new image will be detected and loaded to CC3220 internal memory (RAM in case of CC3220R and CC3220S, or flash in case of CC3220SF) and will be executed.
  • Page 30: Using The Application

    Using the Application www.ti.com Using the Application If the CC3220 device successfully completes all steps, the serial output appears as shown in Figure 2-19. Figure 2-19. Serial Output: Network Terminal Execute your First Application SWRU461B – February 2017 – Revised June 2018 Submit Documentation Feedback Copyright ©...
  • Page 31 1. Now the user can type any of the menu commands. Typing a command will show its usage format. Figure 2-20 for a scan example. Figure 2-20. Serial Output: Scan Usage SWRU461B – February 2017 – Revised June 2018 Execute your First Application Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 32 Figure 2-21 shows a successful scan execution (after typing scan –n 10). Figure 2-21. Serial Output: Scan Execution Execute your First Application SWRU461B – February 2017 – Revised June 2018 Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 33 3. Continue and explore the Network Terminal available commands. Typing help will show the list of available commands, as shown in Figure 2-22. Figure 2-22. Serial Output: Help SWRU461B – February 2017 – Revised June 2018 Execute your First Application Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 34: Use The Debugger/Ide

    Chapter 3 SWRU461B – February 2017 – Revised June 2018 Use the Debugger/IDE The CC3220 SDK supports CCS 6.2.0, IAR 7.50, and GCC IDE/compiler. This section assumes that the application has been configured and rebuilt according to the requirement. Prerequisites •...
  • Page 35: Ccs

    Figure 3-1. Figure 3-1. Select Debug Configuration 2. Compile the SimpleLink library for the selected configuration. 3. Rebuild the application. SWRU461B – February 2017 – Revised June 2018 Use the Debugger/IDE Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 36: Download And Debug The Wlan Station Example

    Figure 3-2. The change will be reflected in the first lines of the serial output. Figure 3-2. Application Name Definition Use the Debugger/IDE SWRU461B – February 2017 – Revised June 2018 Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 37 Navigate to View → Target Configurations, as shown in Figure 3-3, to verify that the correct configuration is selected (see Figure 3-4). Figure 3-3. View Target Configurations SWRU461B – February 2017 – Revised June 2018 Use the Debugger/IDE Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 38 3. Set this new configuration as the default by right-clicking on the filename and selecting Set as Default (see Figure 3-4). 4. Launch serial terminal and configure it as specified in Section 1.4. Use the Debugger/IDE SWRU461B – February 2017 – Revised June 2018 Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 39: Iar

    Figure 3-5. Debug Network Terminal 6. Follow instruction in Section 2.6. See <sdk-installation-path>\docs\cc3220\CC3220_SDK_IAR_project_setup_guide.html. GCC is not supported in the demos of this release. SWRU461B – February 2017 – Revised June 2018 Use the Debugger/IDE Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 40: Revision History

    Revision History Changes from A Revision (December 2017) to B Revision ................... Page ....................• Updated CC3220 SDK package URL. Revision History SWRU461B – February 2017 – Revised June 2018 Submit Documentation Feedback Copyright © 2017–2018, Texas Instruments Incorporated...
  • Page 41 IMPORTANT NOTICE FOR TI DESIGN INFORMATION AND RESOURCES Texas Instruments Incorporated (‘TI”) technical, application or other design advice, services or information, including, but not limited to, reference designs and materials relating to evaluation modules, (collectively, “TI Resources”) are intended to assist designers who are developing applications that incorporate TI products;...

This manual is also suitable for:

Cc3220sCc3220sf

Table of Contents