Use The Debugger/Ide; Prerequisites; Development Formatting For Sflash - 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:
Table of Contents

Advertisement

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
To debug the secure devices, the SFLASH should be development formatted to enable the JTAG
connectivity. See
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.2

Development Formatting for SFLASH

When debugging for secure variants, the device must be put into development mode (using the UniFlash).
If this was not done before, repeat the procedure in
that the device is set to "Develop" mode. Follow the Image Creation for Secure Device. The MCU image
can be eliminated from the procedure. When using the Develop mode, the MAC address of the device
must be programmed. The UniFlash tool does this automatically by reading the MAC address after the
device is connected and then programming the same value; however, this requires the user to connect to
the device first and then program the image.
34

Use the Debugger/IDE

for patching the IDE to display these device variants on the CCS version of Linux.
Section
3.2.
Copyright © 2017–2018, Texas Instruments Incorporated
SWRU461B – February 2017 – Revised June 2018
Use the Debugger/IDE
Section 2.4
to program the SFLASH but make sure
SWRU461B – February 2017 – Revised June 2018
Chapter 3
Submit Documentation Feedback

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cc3220sCc3220sf

Table of Contents