Getting Started Guide CC3220
Getting Started Guide CC3220
Preface ........................................................................................................................................ 3
1 Download and Installation ..................................................................................................... 4
1.1 CC3220 Software Development Kit (SDK) ............................................................................... 4
1.2 Service Pack ................................................................................................................. 4
1.3 UniFlash Tool................................................................................................................. 4
1.4 Serial Terminal ............................................................................................................... 6
1.5 Pin Mux Tool ................................................................................................................. 7
1.6 XDS110 Driver Installation.................................................................................................. 7
1.7 Debugger/IDE ............................................................................................................... 10
1.7.1 CCS ................................................................................................................. 10
1.7.2 IAR .................................................................................................................. 12
1.7.3 GCC ................................................................................................................. 12
1.8 Operating Systems ......................................................................................................... 12
1.8.1 TI-RTOS ............................................................................................................ 12
1.8.2 FreeRTOS .......................................................................................................... 12
2 Execute your First Application ............................................................................................. 13
2.1 CCS .......................................................................................................................... 14
2.1.1 Import and Configure Project .................................................................................... 14
2.1.2 Recompilation for Other Device Variants ...................................................................... 17
2.2 IAR ........................................................................................................................... 17
2.3 GCC .......................................................................................................................... 17
2.4 Download the Application ................................................................................................. 18
2.4.1 Image Creation for Secure Device (CC3220S and CC3220SF) ............................................ 22
2.4.2 Image Creation for Nonsecure Device (CC3220) ............................................................. 27
2.5 Launching the Application ................................................................................................. 29
2.6 Using the Application ...................................................................................................... 30
3 Use the Debugger/IDE ......................................................................................................... 34
3.1 Prerequisites ................................................................................................................ 34
3.2 Development Formatting for SFLASH ................................................................................... 34
3.3 CCS .......................................................................................................................... 35
3.3.1 Rebuild the SimpleLink™ Library for Debug Configuration .................................................. 35
3.3.2 Download and Debug the WLAN Station Example ........................................................... 36
3.4 IAR ........................................................................................................................... 39
3.5 GCC .......................................................................................................................... 39
Revision History .......................................................................................................................... 40
Preface
This guide is intended to assist users in the initial setup and demonstration of running their first sample
application for the CC3220, CC3220S, and CC3220SF SimpleLink™ Wi-Fi® and Internet of Things
Solution, a Single-Chip Wireless MCU from Texas Instruments™. The guide explains how to install the
software development kit (SDK) and various other tools required to get started with the first application.
Trademarks
SimpleLink, Texas Instruments, Code Composer Studio are trademarks of Texas Instruments.
Bluetooth is a registered trademark of Bluetooth SIG.
IAR Embedded Workbench is a registered trademark of IAR Systems AB.
Linux is a registered trademark of Linux Foundation.
Microsoft is a registered trademark of Microsoft Corporation.
Wi-Fi is a registered trademark of Wi-Fi alliance.
All other trademarks are the property of their respective owners.
Introduction
This preliminary release of the Getting Started guide is focused on the Code Composer Studio™ (CCS)
IDE.
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
environment with a single core software development kit (SDK) and rich tool set. A one-time integration of
the SimpleLink platform lets you add any combination of devices from the portfolio into your design. The
ultimate goal of the SimpleLink platform is to achieve 100 percent code reuse when your design
requirements change. For more information, visit www.ti.com/simplelink.
Prerequisites
The user is expected to have the following:
• CC3220S-LAUNCHXL or CC3220SF-LAUNCHXL
• An 802.11b/g/n (2.4-GHz) Wireless Access Point (AP)
• A computer running Microsoft® Windows 7
3. Choose the desired path in the Installation Directory field to place the package as shown in
Figure 1-2, else the default is chosen.
4. Proceed with the installation, and when done click Finish as shown in Figure 1-3.
NOTE: Install the XDS110 drivers for the PC to enumerate these ports for serial terminal. See
Section 1.6 for installation of the XDS110 drivers.
2. Read and accept the License Agreement and click Next, as shown in Figure 1-8.
3. Specify the installation path in the Installation Directory field, as shown in Figure 1-9 (default is C:\ti),
and proceed with the installation.
1.7 Debugger/IDE
The following debugger/IDE can be used to download and debug the application image.
1.7.1 CCS
The latest CCS installer can be downloaded from http://www.ti.com/tool/ccstudio. CCS is a free tool from
TI, lets developers work with various TI devices. The SDK supports CCS version 7.0 or later.
1. Double-click on the installer and follow the instruction to install this tool
2. Make sure to select the SimpleLink Wireless MCUs option for processor support, as shown in Figure 1-
11. Click Next to continue.
NOTE: If CCS is already installed for other processors (and not for SimpleLink wireless MCU), then
the installer must run again and select the SimpleLink Wireless MCUs option for processor
support this time. The rest of the installation steps will remain the same as for a new
installation:
1.7.2 IAR
The developer is responsible for buying the license for the IAR Embedded Workbench® tool. A trial version
can be downloaded from https://www.iar.com/iar-embedded-
workbench//#!?device=CC3220&architecture=ARM.
Double-click on the installer and follow the instruction to install this tool. For detailed IAR setup instruction,
see <sdk-installation-path>\docs\simplelink_mcu_sdk\Quick_Start_Guide.html.
1.7.3 GCC
For detailed GCC setup instruction, please refer to <sdk-installationpath>\
docs\simplelink_mcu_sdk\Quick_Start_Guide.html
1.8.1 TI-RTOS
TI-RTOS for SimpleLink solutions is already installed in the latest CCS releases (see Section 1.7.1). IAR
users can install the TI-RTOS Support Package as a separate installer (see below).
1.8.2 FreeRTOS
The following are the instructions to add the FreeRTOS support.
1. Download FreeRTOS official version 9 from
https://sourceforge.net/projects/freertos/files/latest/download?source=files.
2. Install the software under C:/
3. Copy the content of the patch (CCS, GCC, and IAR folders), and paste it at
C:/FreeRTOSv9.0.0/FreeRTOS/Source/portable.
4. Modify the FreeRTOS directory name from FreeRTOSv9.0.0 to FreeRTOSv9.0.0a
For IAR users, there is a manual fix that need to be done on top of the project , please change the
following:
1. Right click on the project.
2. Select Linker from the category on the left.
3. Go to the Library tab.
4. Select the checkbox Override default program entry
5. Select Entry symbol and enter resetISR in the text box.
SWRU461B – February 2017 – Revised June 2018 Execute your First Application 13
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
CCS www.ti.com
2.1 CCS
14 Execute your First Application SWRU461B – February 2017 – Revised June 2018
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
www.ti.com CCS
NOTE: By default, for all reference examples the option to copy a project to the workspace is
enforced in CCS, because CCS copies the application-specific files to the workspace
location. Any modification done to these files is reflected only in the copied versions (not in
the original files in the 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 15
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
CCS www.ti.com
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.
16 Execute your First Application SWRU461B – February 2017 – Revised June 2018
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
www.ti.com CCS
3. Click OK.
2.2 IAR
See <sdk-installation-path>\docs\simplelink_mcu_sdk\Quick_Start_Guide.html
2.3 GCC
See <sdk-installation-path>\docs\simplelink_mcu_sdk\Quick_Start_Guide.html
SWRU461B – February 2017 – Revised June 2018 Execute your First Application 17
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
Download the Application www.ti.com
18 Execute your First Application SWRU461B – February 2017 – Revised June 2018
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
www.ti.com Download the Application
SWRU461B – February 2017 – Revised June 2018 Execute your First Application 19
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
Download the Application www.ti.com
20 Execute your First Application SWRU461B – February 2017 – Revised June 2018
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
www.ti.com Download the Application
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
programmable image), TI recommends putting the device in Development mode to allow
JTAG operation so the image can be loaded by an IDE (described in Chapter 3).
6. Click the Connect button, as shown in Figure 2-9. Make sure the serial terminal is not connected to the
device. Also, the SOP[2..0] configuration must be 010.
7. Once connected, click the Service Pack icon at the lower left.
NOTE: Flashing the service pack is not mandatory to develop the format of the device. However, if
the example to be debugged requires the service pack, the service pack can be programmed
with the development formatting.
SWRU461B – February 2017 – Revised June 2018 Execute your First Application 21
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
Download the Application www.ti.com
3. Select the User Files icon on lower-left side and click the Add File icon, as shown in Figure 2-11.
22 Execute your First Application SWRU461B – February 2017 – Revised June 2018
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
www.ti.com Download the Application
4. Select the following certificate files from <sdk-installation>\tools\certificate-playground and click Write,
as shown in Figure 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
SWRU461B – February 2017 – Revised June 2018 Execute your First Application 23
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
Download the Application www.ti.com
5. Select Select MCU Image from the drop-down menu, as shown in Figure 2-13.
24 Execute your First Application SWRU461B – February 2017 – Revised June 2018
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
www.ti.com Download the Application
7. Make sure the Secure, Failsafe and Public Write checkboxes are checked, and select the other files.
• Select Private Key File Name from the drop-down menu and browse the dummy-trusted-cert-key
file available at <sdk-installation>\tools\cc32xx_tools\certificate-playground. Select the available
certificate filename from the Certification File Name drop-down menu, as shown in Figure 2-14,
and click Write.
SWRU461B – February 2017 – Revised June 2018 Execute your First Application 25
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
Download the Application www.ti.com
10. Click on Program Image (Create & Program), as shown in Figure 2-15. This step might take a minute.
26 Execute your First Application SWRU461B – February 2017 – Revised June 2018
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
www.ti.com Download the Application
SWRU461B – February 2017 – Revised June 2018 Execute your First Application 27
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
Download the Application www.ti.com
4. Uncheck the Secure checkbox. No other parameter needs to be updated. Click Write, as shown in
Figure 2-17.
28 Execute your First Application SWRU461B – February 2017 – Revised June 2018
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
www.ti.com Launching the Application
6. Click on Program Image (Create & Program), as shown in Figure 2-18. This step might take a minute.
SWRU461B – February 2017 – Revised June 2018 Execute your First Application 29
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
Using the Application www.ti.com
30 Execute your First Application SWRU461B – February 2017 – Revised June 2018
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
www.ti.com Using the Application
1. Now the user can type any of the menu commands. Typing a command will show its usage format.
See Figure 2-20 for a scan example.
SWRU461B – February 2017 – Revised June 2018 Execute your First Application 31
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
Using the Application www.ti.com
2. Figure 2-21 shows a successful scan execution (after typing scan –n 10).
32 Execute your First Application SWRU461B – February 2017 – Revised June 2018
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
www.ti.com Using the Application
3. Continue and explore the Network Terminal available commands. Typing help will show the list of
available commands, as shown in Figure 2-22.
SWRU461B – February 2017 – Revised June 2018 Execute your First Application 33
Submit Documentation Feedback
Copyright © 2017–2018, Texas Instruments Incorporated
Chapter 3
SWRU461B – February 2017 – Revised June 2018
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.
3.1 Prerequisites
• Ensure that the selected device variant is one of the CC3220, CC3220S, or CC3220SF devices, which
should be listed under the Properties → General → Variant drop-down menu. If not, see
Section 1.7.1.1 for patching the IDE to display these device variants on the CCS version of Linux.
• To debug the secure devices, the SFLASH should be development formatted to enable the JTAG
connectivity. See Section 3.2.
• If you are downloading the image from the debugger rather than debugging the image loaded by
bootloader or UniFlash tool, ensure the following:
– For the CC3220SF variant, define __SF_DEBUG__ in the list of predefined symbols and recompile
the application. Predefined symbols for various IDEs are located at:
• CCS: Project → Properties → Build → ARM Compiler → Predefined Symbols
• IAR: Project → Options → C/C++ Compiler → Preprocessor → Defined Symbols
• GCC: Add CFLAGS+=-D__SF__DEBUG in the makefile.
This flag will add a header to the application binary that instructs the bootloader to use the internal
flash image rather than override it with an image from the serial flash.
• Ensure that the SOP[2..0] configuration on the LaunchPad is set to:
– 010 for 4-wire JTAG
– 001 for 2-wire SWD
NOTE: Regardless of whether debugging in JTAG or SWD mode, for the development format of
SFLASH, the SOP mode must be 010. To debug through SWD, change the SOP to 001
after development formatting.
3.3 CCS
2. By default, the target configuration is defined by the application project imported in Section 2.1.1.
Navigate to View → Target Configurations, as shown in Figure 3-3, to verify that the correct
configuration is selected (see Figure 3-4).
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.
3.4 IAR
See <sdk-installation-path>\docs\cc3220\CC3220_SDK_IAR_project_setup_guide.html.
3.5 GCC
GCC is not supported in the demos of this release.
Revision History
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; by downloading, accessing or using any particular TI Resource in any way, you
(individually or, if you are acting on behalf of a company, your company) agree to use it solely for this purpose and subject to the terms of
this Notice.
TI’s provision of TI Resources does not expand or otherwise alter TI’s applicable published warranties or warranty disclaimers for TI
products, and no additional obligations or liabilities arise from TI providing such TI Resources. TI reserves the right to make corrections,
enhancements, improvements and other changes to its TI Resources.
You understand and agree that you remain responsible for using your independent analysis, evaluation and judgment in designing your
applications and that you have full and exclusive responsibility to assure the safety of your applications and compliance of your applications
(and of all TI products used in or for your applications) with all applicable regulations, laws and other applicable requirements. You
represent that, with respect to your applications, you have all the necessary expertise to create and implement safeguards that (1)
anticipate dangerous consequences of failures, (2) monitor failures and their consequences, and (3) lessen the likelihood of failures that
might cause harm and take appropriate actions. You agree that prior to using or distributing any applications that include TI products, you
will thoroughly test such applications and the functionality of such TI products as used in such applications. TI has not conducted any
testing other than that specifically described in the published documentation for a particular TI Resource.
You are authorized to use, copy and modify any individual TI Resource only in connection with the development of applications that include
the TI product(s) identified in such TI Resource. NO OTHER LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE TO
ANY OTHER TI INTELLECTUAL PROPERTY RIGHT, AND NO LICENSE TO ANY TECHNOLOGY OR INTELLECTUAL PROPERTY
RIGHT OF TI OR ANY THIRD PARTY IS GRANTED HEREIN, including but not limited to any patent right, copyright, mask work right, or
other intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information
regarding or referencing third-party products or services does not constitute a license to use such products or services, or a warranty or
endorsement thereof. Use of TI Resources 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.
TI RESOURCES ARE PROVIDED “AS IS” AND WITH ALL FAULTS. TI DISCLAIMS ALL OTHER WARRANTIES OR
REPRESENTATIONS, EXPRESS OR IMPLIED, REGARDING TI RESOURCES OR USE THEREOF, INCLUDING BUT NOT LIMITED TO
ACCURACY OR COMPLETENESS, TITLE, ANY EPIDEMIC FAILURE WARRANTY AND ANY IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL
PROPERTY RIGHTS.
TI SHALL NOT BE LIABLE FOR AND SHALL NOT DEFEND OR INDEMNIFY YOU AGAINST ANY CLAIM, INCLUDING BUT NOT
LIMITED TO ANY INFRINGEMENT CLAIM THAT RELATES TO OR IS BASED ON ANY COMBINATION OF PRODUCTS EVEN IF
DESCRIBED IN TI RESOURCES OR OTHERWISE. IN NO EVENT SHALL TI BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL,
COLLATERAL, INDIRECT, PUNITIVE, INCIDENTAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES IN CONNECTION WITH OR
ARISING OUT OF TI RESOURCES OR USE THEREOF, AND REGARDLESS OF WHETHER TI HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
You agree to fully indemnify TI and its representatives against any damages, costs, losses, and/or liabilities arising out of your non-
compliance with the terms and provisions of this Notice.
This Notice applies to TI Resources. Additional terms apply to the use and purchase of certain types of materials, TI products and services.
These include; without limitation, TI’s standard terms for semiconductor products http://www.ti.com/sc/docs/stdterms.htm), evaluation
modules, and samples (http://www.ti.com/sc/docs/sampterms.htm).
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2018, Texas Instruments Incorporated