Sensor Controller Guide
Sensor Controller Guide
ABSTRACT
This document provides an overview of the CC26xx and CC13xx Sensor Controller and the Sensor Controller
Studio tool.
Table of Contents
1 Introduction.............................................................................................................................................................................3
2 Overview..................................................................................................................................................................................4
2.1 Sensor Controller and AUX Domain Hardware Overview..................................................................................................4
2.2 Sensor Controller Interface Driver......................................................................................................................................7
2.3 Sensor Controller Programming Model..............................................................................................................................8
2.4 Sensor Controller Tasks..................................................................................................................................................... 8
2.5 Task Testing and Debugging.............................................................................................................................................. 9
2.6 Run-Time Logging..............................................................................................................................................................9
3 Prerequisites......................................................................................................................................................................... 11
3.1 Driver................................................................................................................................................................................ 11
3.2 Examples..........................................................................................................................................................................11
4 Installation.............................................................................................................................................................................12
4.1 Sensor Controller Studio for Windows® .......................................................................................................................... 12
4.2 Sensor Controller Studio CLI for Linux (64-Bit)................................................................................................................12
5 Sensor Controller Studio Tutorials..................................................................................................................................... 13
6 Sensor Controller Studio Walkthrough.............................................................................................................................. 15
6.1 Start Page and Navigation............................................................................................................................................... 15
6.2 Documentation................................................................................................................................................................. 16
6.3 Open the Example........................................................................................................................................................... 17
6.4 Project Panel....................................................................................................................................................................18
6.5 Task Panel Settings..........................................................................................................................................................19
6.6 Constants and Data Structures Panel..............................................................................................................................20
6.7 Task Code Editor Panels..................................................................................................................................................21
6.8 I/O Mapping Panel........................................................................................................................................................... 22
6.9 Code Generator Panel..................................................................................................................................................... 23
6.10 Compiling Example Applications in IAR or CCS............................................................................................................ 24
6.11 Task Testing Panel..........................................................................................................................................................25
6.12 Run-Time Logging Panel................................................................................................................................................28
7 References............................................................................................................................................................................ 30
8 Revision History................................................................................................................................................................... 30
List of Figures
Figure 5-1. SimpleLink™ Academy Labs.................................................................................................................................. 13
Figure 5-2. TI Resource Explorer.............................................................................................................................................. 14
Figure 6-1. Start Page............................................................................................................................................................... 15
Figure 6-2. Help Viewer Example Page.....................................................................................................................................16
Figure 6-3. Example Configuration............................................................................................................................................ 17
Figure 6-4. Project Settings Panel............................................................................................................................................. 18
Figure 6-5. Task Panel...............................................................................................................................................................19
Figure 6-6. Constants and Data Structures Panel..................................................................................................................... 20
Figure 6-7. Task Code Editor Panel...........................................................................................................................................21
Figure 6-8. I/O Mapping Panel...................................................................................................................................................22
Figure 6-9. Code Generator Panel............................................................................................................................................ 23
SWRU439M – OCTOBER 2015 – REVISED APRIL 2022 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide 1
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
Trademarks www.ti.com
Trademarks
SimpleLink™, Code Composer Studio™, and LaunchPad™ are trademarks of Texas Instruments.
Arm®, Cortex®, and Keil® are registered trademarks of Arm Limited (or its subsidiaries).
IAR Embedded Workbench® is a registered trademark of IAR Systems AB.
Windows® is a registered trademark of Microsoft Corporation.
All trademarks are the property of their respective owners.
2 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide SWRU439M – OCTOBER 2015 – REVISED APRIL 2022
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
www.ti.com Introduction
1 Introduction
Sensor Controller Studio is used to write, test and debug code for the CC26xx and CC13xx Sensor Controller.
The tool generates a set of C source files, which contains the Sensor Controller firmware image and allows the
System CPU application to control and exchange data with the Sensor Controller.
This document provides an overview of the CC26xx and CC13xx Sensor Controller and the Sensor Controller
Studio tool.
Prerequisites for the generated driver source code and the supplied examples are stated in Section 3.
Section 5 provides information about how to access tutorials through the TI Resource Explorer.
The tutorial in Section 6 provides a complete walkthrough of the Sensor Controller Studio tool.
SWRU439M – OCTOBER 2015 – REVISED APRIL 2022 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide 3
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
Overview www.ti.com
2 Overview
Sensor Controller Studio is used to write, test and debug code for the CC26xx and CC13xx Sensor Controller.
The tool generates a Sensor Controller Interface driver, which is a set of C source files to be compiled into
the System CPU ( Arm® Cortex®-M3 and Arm Cortex-M4 processors) application. These source files contain
the Sensor Controller firmware image, associated definitions, and generic functions that allow the System CPU
application to control the Sensor Controller and exchange data.
The Sensor Controller is a small CPU core that is highly optimized for low power consumption and efficient
peripheral operation. The Sensor Controller is located in the CC26xx and CC13xx auxiliary (AUX) power/clock
domain and can perform simple background tasks autonomously and independently of the System CPU and the
MCU domain power state. These tasks include the following:
• Analog sensor polling, using ADC or comparator
• Digital sensor polling, using SPI, I2C, or other protocols
• Capacitive sensing using current source, comparator, and time-to-digital converter (TDC)
• Waveform generation, for example for LCDs
The Sensor Controller is user programmable, using a simple programming language with syntax similar to C.
This programmability allows for sensor polling and other tasks to be specified as sequential algorithms rather
than static configuration of complex peripheral modules, timers, DMA, register-programmable state machines,
event routing, and so on. The main advantages are:
• Flexibility
• Dynamic reuse of hardware resources
• Ability to perform simple data processing without the need for dedicated hardware
• Observability and debugging options
For example, the following code samples an analog sensor and notifies the System CPU application if needed:
// Select ADC input
adcSelectGpioInput(AUXIO_A_SENSOR_OUTPUT);
// Enable the ADC (fixed reference, 2.7 us sample time, manual trigger)
adcEnableSync(ADC_REF_FIXED, ADC_SAMPLE_TIME_2P7_US, ADC_TRIGGER_MANUAL);
The Sensor Controller task algorithms can efficiently be evaluated, debugged, and verified using the Sensor
Controller Studio. The resulting Sensor Controller Interface driver can be treated as a black box, and can be
integrated painlessly into the System CPU application.
There is a command line interface (CLI) that can be used for build automation.
2.1 Sensor Controller and AUX Domain Hardware Overview
Sensor Controller Studio supports the following device families:
• CC13x0 and CC26x0
• CC13x2 and CC26x2
2.1.1 Hardware Functionality
The Sensor Controller is located in the AUX domain of the CC26xx and CC13xx devices, and has access to
hardware functionality located in the AUX domain.
4 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide SWRU439M – OCTOBER 2015 – REVISED APRIL 2022
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
www.ti.com Overview
The Sensor Controller has, with few exceptions, no access to peripherals, RAM, flash or registers in MCU and
AON domains. This separation allows the MCU domain to enter and exit standby mode independently of the
Sensor Controller. The System CPU has access to all AUX domain peripherals.
Table 2-1 lists the functionality of the hardware in the AUX domain.
Table 2-1. Hardware Functionality
AUX Domain and Sensor Controller CC13x0, CC26x0 CC13x2, CC26x2
Sensor Controller Engine (power-optimized 16-bit CPU core) Yes Yes
AUX RAM (Sensor Controller instruction and data memory) 2 KB = 1024 × 16-bit words 4 KB = 2048 ×16-bit words
Programmable wake-up sources 1 3
Wake up from AON_RTC channel 2 Yes Yes
Analog Peripherals
ADC (12-bit, 200-kHz analog-to-digital converter) Yes Yes
COMPA (continuous time comparator) Yes Yes, improved
COMPB (low-power clocked comparator) Yes Yes, improved
ISRC (0 to 20-µA current source) Yes Yes
Reference DAC (8-bit DAC for COMPA/COMPB reference) — Yes
Digital Peripherals
TDC (96-MHz time-to-digital converter) Yes Yes
Pulse counter (16-bit asynchronous) Yes Yes, improved
Timer0 (synchronous timer) Yes, 16-bit Yes, 16-bit, improved
Timer1 (synchronous timer) Yes, 8-bit Yes, 16-bit, improved
Timer2 (16-bit asynchronous PWM/sequencing timer) — Yes
Microsecond delay timer — Yes
AUX I/O controllers (8 pins each) 2 4
Hardware semaphores (for peripheral sharing with System
8 8
CPU)
Multiply and accumulate accelerator (40-bit accumulator) — Yes
Serial Interfaces
Serial peripheral interface (SPI) Bit-banged Yes, hardware peripheral
I2C master (400 kHz or 100 kHz) Bit-banged Bit-banged
I/O Pins
Analog- and digital-capable general-purpose I/O pins Up to 8 Up to 8
Digital-only general-purpose I/O pins Up to 8 Up to 23
System
Observation signal output (AUX event bus signal to GPIO) — 1
AON_BATMON read access (temperature and voltage) — Yes
AON_RTC read access (16-bit second, 16-bit subsecond) — Yes
MCU domain and power supply system status — Yes
VDDR recharge status and interaction — Yes
For an overview of the differences between the CC13x0, CC26x0 and the CC13x2, CC26x2 device families, see
the Chip Family Migration Guide in the Sensor Controller Studio help viewer.
For detailed technical information about the Sensor Controller Engine CPU core, see the Assembly Language
Reference in the Sensor Controller Studio help viewer.
2.1.2 Power and Clock Management
The sections that follow describe for each device family the available power modes and the clock frequencies in
each power mode, depending on the state of the System CPU.
The main improvements in the CC13x2 and CC26x2 device family are:
SWRU439M – OCTOBER 2015 – REVISED APRIL 2022 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide 5
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
Overview www.ti.com
Standby with event Sensor Controller clock 24 MHz (SCLK_HF / 2) 32 kHz (SCLK_LF)
trigger AUX bus clock 24 MHz (SCLK_HF / 2) 32 kHz (SCLK_LF)
Active with Sensor Sensor Controller clock 24 MHz (SCLK_HF / 2) 24 MHz (SCLK_HF / 2)
Controller at 24 MHz AUX bus clock 24 MHz (SCLK_HF / 2) 24 MHz (SCLK_HF / 2)
Active with Sensor Sensor Controller clock 2 MHz (derived from SCLK_HF / 2) 2 MHz (derived from SCLK_HF / 2)
Controller at 2 MHz AUX bus clock 24 MHz (SCLK_HF / 2) 24 MHz (SCLK_HF / 2)
Sensor Controller clock 2 MHz (derived from SCLK_HF / 2) 2 MHz (SCLK_MF)
Low-power
AUX bus clock 24 MHz (SCLK_HF / 2) 2 MHz (SCLK_MF)
Standby with Timer0/1 Sensor Controller clock 32 kHz (derived from SCLK_HF / 2) 32 kHz (SCLK_LF)
event trigger AUX bus clock 24 MHz (SCLK_HF / 2) 32 kHz (SCLK_LF)
6 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide SWRU439M – OCTOBER 2015 – REVISED APRIL 2022
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
www.ti.com Overview
SWRU439M – OCTOBER 2015 – REVISED APRIL 2022 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide 7
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
Overview www.ti.com
8 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide SWRU439M – OCTOBER 2015 – REVISED APRIL 2022
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
www.ti.com Overview
• To run iterations of the Sensor Controller task, one or both of the following code blocks can be implemented:
– Execution Code: Runs each time the task is scheduled for execution (based on periodic ticks from the
real-time counter (RTC))
• Executes the task algorithm, for example sampling capacitive touch buttons, simple data filtering,
processing and buffering
• Alerts the System CPU application to perform data exchange or signalize events when needed (for
example when an array of ADC samples is full)
• Schedules the next iteration of the Execution Code and (or) sets up an Event Handler Code trigger
– Event Handler Code: Runs one time when the trigger that was set up occurs, (for example, an edge or
level on an AUX I/O pin, or after a variable delay):
• The timer trigger is typically used to run Sensor Controller tasks at irregular intervals or to follow up on
actions performed by the Execution Code
• The GPIO trigger is typically used to respond to external interrupts
• Other event triggers are available, depending on the device family
• Alerts the System CPU application to perform data exchange or signalize events when needed (for
example, when accelerometer data indicates movement)
• Sets up another Event Handler Code trigger, if needed
• Termination Code: Runs one time when the task is stopped through the task control interface
– Shuts down hardware left active between task iterations
– Performs final (partial) data exchange, if needed
The CC13x0 and CC26x0 device family supports one event trigger and one Event Handler Code block per
project.
The CC13x2 and CC26x2 device family supports three independent event triggers and up to three Event
Handler Code blocks per project.
2.4.3 High-Level Program Flow
The Sensor Controller Engine does not support preemption, which means that one task code block cannot
interrupt another task code block. While this is a limitation, it prevents actions of one task (for example SPI
communication) from interfering with the measurements of another task (for example, capacitive touch).
A Sensor Controller task is typically executed in short iterations. It is possible to implement tasks that run for
longer periods of time, but this will prevent other tasks from running during that time.
2.5 Task Testing and Debugging
The Sensor Controller Studio provides a generic, easy-to-use environment for ad hoc and exhaustive testing,
and for low-level debugging of tasks.
Task testing can be performed one task at a time, using an XDS100v3, XDS110 or XDS200 JTAG debug probe
for interfacing with the CC13xx and CC26xx device. While testing, the Sensor Controller Studio acts as the
System CPU application and is responsible for controlling the Sensor Controller task. Values of all data structure
members (from cfg, input, output and state) are logged after each task iteration. These values can be displayed
graphically in Sensor Controller Studio and can also be saved to file for external analysis.
Low-level task code debugging allows for single-stepping instructions or running, with breakpoints, the
initialization, execution, event handler and termination code blocks. Debugging is performed on the generated
assembly code.
Because the Sensor Controller tasks will execute asynchronously with the System CPU application, and mostly
while the MCU power/clock domain is in standby, there is normally little to be gained from debugging the Sensor
Controller code together with the System CPU application code. This option is therefore not supported.
2.6 Run-Time Logging
The Sensor Controller Studio provides a generic, easy-to-use environment for evaluating and optimizing
performance of tasks while these run at full speed, as they would in the actual application.
Run-time logging can be performed using a generic System CPU application image programmed by Sensor
Controller Studio (through an XDS100v3 or XDS110 JTAG debug probe), or it can be performed using a custom
SWRU439M – OCTOBER 2015 – REVISED APRIL 2022 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide 9
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
Overview www.ti.com
application image programmed manually into flash. Commands and data are then transferred over UART, using
a protocol based on the network processor interface (NPI).
The task data structures can be selected individually as either logged or editable. Logged data structures
can be displayed graphically in Sensor Controller Studio and can also be saved to file for external analysis.
Editable data structures can be modified by Sensor Controller Studio while the tasks are running on the Sensor
Controller.
10 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide SWRU439M – OCTOBER 2015 – REVISED APRIL 2022
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
www.ti.com Prerequisites
3 Prerequisites
3.1 Driver
The generated Sensor Controller Interface driver depends on register definitions and basic operating system
functionality. These dependencies are included in the following software development kits (SDKs):
• SimpleLink™ CC13x0 SDK
• SimpleLink CC2640R2 SDK
• SimpleLink CC13xx CC26xx SDK
The driver is also compatible with previous SDK generations:
• SimpleLink CC13x2 26x2 SDK
• TI-RTOS for CC26xx and CC13xx
• TI-RTOS for SimpleLink Wireless MCUs
The Revision History lists all compatible SDK releases for your current Sensor Controller Studio version. The
generated driver will normally also be compatible with future SDK releases because it depends only on basic
SDK functionality.
The driver source files are compatible with the following IDEs and compilers:
• IAR Embedded Workbench® for Arm (EWARM)
• Code Composer Studio™ IDE (TI compiler)
• Keil® MDK-ARM
• Arm GCC
3.2 Examples
Examples with associated files are configured and patched when opened through the Sensor Controller Studio
Start Page Panel. This allows support for different target chips (when supported by the example hardware
platform) and for different SDK releases. Example project files are provided for the IAR EWARM and TI CCS
toolchains.
The Revision History lists all supported SDK releases for your current Sensor Controller Studio version.
The example application project files require one of the following:
• For CC13x0 and CC26x0 devices:
– IAR EWARM 8.20.1 or later
– TI CCS 7.3.0 or later
• For CC13x2 and CC26x2 devices:
– IAR EWARM 8.50.1 or later
– TI CCS 10.2.0 or later
– For SimpleLink CC13x2 26x2 SDK 4.30 or later: SysConfig (TI System Configuration Tool). The SysConfig
version must match the SDK. See the SDK release notes for details.
Note that the examples depend on device support in the IAR EWARM and TI CCS toolchains. The SDKs also
have toolchain dependencies.
SWRU439M – OCTOBER 2015 – REVISED APRIL 2022 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide 11
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
Installation www.ti.com
4 Installation
4.1 Sensor Controller Studio for Windows®
By default, the Sensor Controller Studio will install to <Program Files>\Texas Instruments\Sensor Controller
Studio. The installer requires administrator privileges to allow for the JTAG debug probe (XDS100v3, XDS110
and XDS200) driver installation. The JTAG interface is used for testing and debugging of the Sensor Controller
tasks.
Once started, Sensor Controller Studio creates folders for examples, user projects and user-defined content
under <My Documents>\Texas Instruments\Sensor Controller Studio.
4.1.1 Update Service
Sensor Controller Studio 1.3.0 and later can check for new releases and for patches to your current installation.
Patches are made available between releases to fix bugs and add new features, such as:
• Support for new SDK releases in the example configuration
• Bug fixes for SCIF driver and task code procedures
• New examples, task resources and task code procedures
Patches can be added and removed independently without running an installer.
4.2 Sensor Controller Studio CLI for Linux (64-Bit)
The command line interface (CLI) for Linux is provided as a minimal tarball. This CLI can be used to automate
the Sensor Controller Studio code generation step.
See the included readme.md file for instructions and other relevant information.
12 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide SWRU439M – OCTOBER 2015 – REVISED APRIL 2022
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
www.ti.com Sensor Controller Studio Tutorials
Clicking these links opens the TI Resource Explorer in a Web browser (see Figure 5-2).
SWRU439M – OCTOBER 2015 – REVISED APRIL 2022 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide 13
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
Sensor Controller Studio Tutorials www.ti.com
14 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide SWRU439M – OCTOBER 2015 – REVISED APRIL 2022
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
www.ti.com Sensor Controller Studio Walkthrough
Access preference settings for Sensor Controller Studio through the file menu or by pressing Ctrl+P. These
control tool behaviors that are not related to specific Sensor Controller projects.
SWRU439M – OCTOBER 2015 – REVISED APRIL 2022 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide 15
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
Sensor Controller Studio Walkthrough www.ti.com
6.2 Documentation
Most of the Sensor Controller Studio documentation is provided in the Help Viewer. This documentation
includes:
• Introduction and overview of the tool
• Panel documentation
• Resource and procedure documentation
• Sensor Controller task code programming language reference and other reference documents
• Revision history
Other documentation (for example, for the generated SCIF driver) can be accessed through the Start Page
panel.
Press F1 at any time to open the Help Viewer (see the example in Figure 6-2).
16 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide SWRU439M – OCTOBER 2015 – REVISED APRIL 2022
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
www.ti.com Sensor Controller Studio Walkthrough
Note
While chip name, revision and package can be modified later in the Project panel, these settings
will then be incompatible with the application project files. Instead, rerun the example configuration
to create new application project files.
SWRU439M – OCTOBER 2015 – REVISED APRIL 2022 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide 17
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
Sensor Controller Studio Walkthrough www.ti.com
Note
The Save project and Close project commands apply only to the currently selected project in the
project tree.
18 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide SWRU439M – OCTOBER 2015 – REVISED APRIL 2022
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
www.ti.com Sensor Controller Studio Walkthrough
The task name is used in the generated SCIF driver code to identify the task and must be unique per project.
The task description (also included in the generated driver) can be used to explain the task purpose, usage,
electrical connections, and so forth.
Task resources are selected to enable access to hardware modules, firmware framework functionality and
various software algorithms. Some resources have configuration settings. For the "General Purpose I/O"
resources, multiple usages with different name and configuration can be specified. Press the help buttons [?] to
view resource documentation, including associated procedures, constants and variables.
For the ADC Window Monitor task, the following resources are selected:
• ADC: to measure the output of the light sensor
• Analog Pins (one instance): to connect the analog sensor output to the ADC
• System CPU Alert: to wake up and generate interrupts in the System CPU application
• RTC-Based Execution Scheduling: to trigger periodical execution of the task
SWRU439M – OCTOBER 2015 – REVISED APRIL 2022 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide 19
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
Sensor Controller Studio Walkthrough www.ti.com
Constants are available both to Sensor Controller task code, and to the System CPU application through C
defines (with prefix to prevent name conflict).
Data structure variables are used to store Sensor Controller data between task iterations, and to exchange data
with the System CPU application (through C structs).
There are two editor views/modes:
• Form view (default): Edit attributes for one constant and one data structure at a time
• Table view: Shows all attributes for all constants and data structures to allow more efficient editing
20 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide SWRU439M – OCTOBER 2015 – REVISED APRIL 2022
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
www.ti.com Sensor Controller Studio Walkthrough
To the right (see Figure 6-7) are lists that show the following:
• Relevant constants with values for use in the task code
• The task data structure members with initial values
• Procedures that can be called from the task code
Pop-up documentation is displayed when typing the parameters and return values of a procedure. The pop-ups
can also be triggered by moving the cursor to the procedure call and pressing Ctrl+Space.
SWRU439M – OCTOBER 2015 – REVISED APRIL 2022 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide 21
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
Sensor Controller Studio Walkthrough www.ti.com
22 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide SWRU439M – OCTOBER 2015 – REVISED APRIL 2022
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
www.ti.com Sensor Controller Studio Walkthrough
When only one project is open, this project will be selected automatically. The code generator is triggered by:
• Entering the panel
• Changing the project selection
• Double-clicking on the selected project in the current project list
The event log will indicate errors with red icons , if there are any.
If AUX RAM image generation is successful, the memory usage will be displayed. This can be used to determine
whether the tasks will fit, adjust data buffer sizes, and optimize the task code.
To trigger code output after successful code generation, either select the Output SCIF driver files automatically
option, or press the Output SCIF driver files button. Press the View output directory button to explore the file
output location.
The output includes a tailored "how-to-use" guide.
The SCIF driver is documented using Doxygen syntax. The output includes a doxyfile (Doxygen project file) and
a Windows batch file for running Doxygen.
SWRU439M – OCTOBER 2015 – REVISED APRIL 2022 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide 23
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
Sensor Controller Studio Walkthrough www.ti.com
24 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide SWRU439M – OCTOBER 2015 – REVISED APRIL 2022
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
www.ti.com Sensor Controller Studio Walkthrough
During task testing, the Sensor Controller Studio takes over the role of the System CPU application, and it
interacts with the Sensor Controller task through an XDS100, an XDS110, or an XDS200 JTAG debug probe.
The task testing panel runs whole iterations of the Initialization Code, Execution Code, Event Handler Code,
and Termination Code task code blocks, and captures all task data structure values between task iterations. The
data structure values are displayed graphically in the Graph tab of the task testing panel, and the values can be
saved to file for external analysis.
It is also possible to automatically apply new data structure values that are loaded from file between specific task
iterations.
For low-level debugging of a task, it is possible to run single iterations of the task code blocks in debug mode.
6.11.1 Task Testing Setup
At the top of the Setup tab, select the project and the task to trigger code generation. The code generation event
log is displayed only if there are any errors.
Select either the low-level or simplified workflow, and observe the state diagram that is displayed in the middle of
the Setup tab.
At the bottom of the Setup tab, specify a sequence of actions to be performed for each task iteration. Enter "Run
Execution Code" for the ADC Window Monitor example.
SWRU439M – OCTOBER 2015 – REVISED APRIL 2022 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide 25
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
Sensor Controller Studio Walkthrough www.ti.com
Note
Each task code block in the action sequence runs at full speed. However, for most iteration actions,
there is need for handshaking or data transfer over JTAG, which means that the task will not execute
with the same timing during task testing as it will in the actual application.
In the right section of the panel, select the data structure members to be displayed in the Graph tab. There
is one graph section for each data structure member because the value ranges typically vary. Use Customize
Graphs to merge different data structure members into one graph section, with scaling and offset.
It is possible to:
• Single-step task iterations
• Run task iterations continuously
• Run single task iterations in debug mode (see Section 6.11.4)
Use the Ctrl and Shift keys in combination with the mouse wheel to zoom and scroll the graph area.
26 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide SWRU439M – OCTOBER 2015 – REVISED APRIL 2022
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
www.ti.com Sensor Controller Studio Walkthrough
SWRU439M – OCTOBER 2015 – REVISED APRIL 2022 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide 27
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
Sensor Controller Studio Walkthrough www.ti.com
During run-time logging, the Sensor Controller runs autonomously while the System CPU transfers data
structure information to and from Sensor Controller Studio. The logged data structures can be displayed
graphically in Sensor Controller Studio, or the data can be saved to file for external analysis.
The JTAG interface is used to download a generic System CPU application to the target. The run-time logging
panel then uses UART to transfer commands and data.
6.12.1 Run-Time Logging Setup
Run-Time Logging must be manually enabled for each task. Enable the Run-Time Logging resource in the Task
panel, and use the run-time logging procedures in the task code to trigger data structure logging to Sensor
Controller Studio.
At the top of the Setup tab, select the following:
• A project
• The task or tasks to be enabled for run-time logging
• Which data structures shall be logged or be editable
Attach the target CC13xx or CC26xx device to the PC through an XDS100v3 or an XDS110 JTAG probe (for
example, a LaunchPad Development Kit).
Configure connection settings and project specific settings, if any. Project settings control behavior that is
normally configured by the System CPU application, for example RTC tick interval.
28 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide SWRU439M – OCTOBER 2015 – REVISED APRIL 2022
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
www.ti.com Sensor Controller Studio Walkthrough
In the right section of the panel, select the logged data structure members to be displayed in the Graph tab.
There is one graph section for each data structure member because value ranges typically vary. Use graph
customization to merge different data structure members into one graph section with scaling and offset.
Editable data structure members can be modified at any time. The cfg data structure members can also be
controlled by configuration sliders.
For run-time logging, it is only possible to run the Sensor Controller tasks at full speed.
Use the Ctrl and Shift keys in combination with the mouse wheel to zoom and scroll the graph area.
SWRU439M – OCTOBER 2015 – REVISED APRIL 2022 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide 29
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
References www.ti.com
7 References
• CC13x0, CC26x0 SimpleLink™ Wireless MCU Technical Reference Manual
• CC13x2, CC26x2 SimpleLink™ Wireless MCU Technical Reference Manual
• CC13x2x7, CC26x2x7 SimpleLink Wireless MCU Technical Reference Manual
8 Revision History
NOTE: Page numbers for previous revisions may differ from page numbers in the current version.
Changes from Revision L (January 2021) to Revision M (April 2022) Page
• Updated Driver section......................................................................................................................................11
• Updated Examples section............................................................................................................................... 11
• Updated SimpleLink™ Academy Labs image.................................................................................................. 13
• Updated Start Page image............................................................................................................................... 15
• Updated Help Viewer Example Page image.....................................................................................................16
• Updated Example Configuration image............................................................................................................ 17
• Updated Project Settings Panel image............................................................................................................. 18
• Updated Task Panel image...............................................................................................................................19
• Updated Constants and Data Structures Panel image..................................................................................... 20
• Updated Task Code Editor Panel image...........................................................................................................21
• Updated I/O Mapping Panel image...................................................................................................................22
• Updated Code Generator Panel image............................................................................................................ 23
• Updated the Compiling Example Applications in IAR or CCS section..............................................................24
• Updated Task Testing, Setup Tab image.......................................................................................................... 25
• Updated Task Testing, Graph Tab image..........................................................................................................26
• Updated Task Debugging Panel image............................................................................................................ 27
• Updated Run-Time Logging Panel image.........................................................................................................28
• Updated Run-Time Logging Graph Tab image................................................................................................. 29
30 CC26xx, CC13xx Sensor Controller Studio Getting Started Guide SWRU439M – OCTOBER 2015 – REVISED APRIL 2022
Submit Document Feedback
Copyright © 2022 Texas Instruments Incorporated
IMPORTANT NOTICE AND DISCLAIMER
TI PROVIDES TECHNICAL AND RELIABILITY DATA (INCLUDING DATA SHEETS), DESIGN RESOURCES (INCLUDING REFERENCE
DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND OTHER RESOURCES “AS IS”
AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION ANY
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD
PARTY INTELLECTUAL PROPERTY RIGHTS.
These resources are intended for skilled developers designing with TI products. You are solely responsible for (1) selecting the appropriate
TI products for your application, (2) designing, validating and testing your application, and (3) ensuring your application meets applicable
standards, and any other safety, security, regulatory or other requirements.
These resources are subject to change without notice. TI grants you permission to use these resources only for development of an
application that uses the TI products described in the resource. Other reproduction and display of these resources is prohibited. No license
is granted to any other TI intellectual property right or to any third party intellectual property right. TI disclaims responsibility for, and you
will fully indemnify TI and its representatives against, any claims, damages, costs, losses, and liabilities arising out of your use of these
resources.
TI’s products are provided subject to TI’s Terms of Sale or other applicable terms available either on ti.com or provided in conjunction with
such TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable warranties or warranty disclaimers for
TI products.
TI objects to and rejects any additional or different terms you may have proposed. IMPORTANT NOTICE
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2022, Texas Instruments Incorporated