Texas Instruments

CC35X1 flashing setup

Activate and factory-program a TI LP-EM-CC35X1 for regular application flashing.

Install the prerequisites below, then prepare a CC35X1 workspace using the Wi-Fi guide, BLE guide or OTA guide. Apply both patches below before building. Build your chosen sample, activate the board only if it is not already activated, and factory-program the matching flash layout.

These instructions were tested on LP-EM-CC35X1 with CC3551E and SimpleLink Wi-Fi Toolbox 4.3.23, using the revisions pinned by west-zephyr-ti-cc35x1.yml (TI SimpleLink Zephyr v4.4.0-ti-10.10.00). Other boards, software versions, flash maps or power-management configurations may require adjustments.

CC35X1 activation programs one-time device credentials and changes the lifecycle from OPERATIONAL to DEPLOYED. The commands below use TI's SDK example key and are intended for development boards, not production provisioning. Do not repeat activation after the lifecycle changes to DEPLOYED.

Install prerequisites

Install the host tools for your operating system using the Install dependencies section of the Zephyr Getting Started Guide.

You also need:

Before building, add Toolbox to PATH. Before flashing, set up XDS110 host access.

Applying the patches also requires a West workspace initialized with the Spotflow west-zephyr-ti-cc35x1.yml manifest, with its dependencies downloaded using west update.

Connect both the CC35X1 board and the XDS110 probe to the development computer. Continue with the following steps:

Add Toolbox to PATH

Add the Toolbox installation directory to PATH in the terminal used for building and flashing. These examples use the default installation locations for Toolbox 4.3.23; adjust the path if your installation is elsewhere.

$env:Path = "C:\ti\simplelink_wifi_toolbox_win_4_3_23;$env:Path"
simplelink-wifi-toolbox --version

Set up XDS110 host access

Configure the probe's USB support before activation or flashing. TI's standalone XDS110 Support Utilities provide drivers, probe utilities and firmware. This package is a subset of EMUPack; an existing Code Composer Studio (CCS) or UniFlash installation with XDS110 support can also supply the components.

Host OSSetup
WindowsInstall TI's XDS110 USB drivers, using the standalone package or the XDS110 support supplied by CCS, UniFlash or EMUPack. Driver installation requires administrator privileges.
LinuxInstall the package's udev rules to allow USB access as a regular user. For CCS, run its post-installation install_drivers.sh with sudo, as described in TI's installation instructions. Serial-console access may also require your distribution's serial-port permissions.
macOSXDS110 USB access does not require an additional kernel driver. Use TI probe utilities compatible with your macOS version and processor architecture for diagnostics or firmware maintenance.

The standalone utilities also need libusb on Linux and macOS; see their support notes.

Apply compatibility patches before building

From the workspace root, check and apply both patches to clean checkouts at the manifest revisions. Run each apply command only if its preceding --check succeeds:

git -C modules/hal/ti apply --check ../../../modules/lib/spotflow/zephyr/patches/ti/cc35xx-flash-startup.patch
git -C modules/hal/ti apply ../../../modules/lib/spotflow/zephyr/patches/ti/cc35xx-flash-startup.patch
git -C zephyr apply --check ../modules/lib/spotflow/zephyr/patches/ti/cc35xx-toolbox-runner.patch
git -C zephyr apply ../modules/lib/spotflow/zephyr/patches/ti/cc35xx-toolbox-runner.patch
  • The HAL patch corrects the Bluetooth source guard and enables the SYSTIM hardware timer before early flash and Internal Trusted Storage (ITS) users.
  • The Toolbox patch supplies the device argument for all eight image-builder commands, missing JSON defaults and absolute ELF paths. It also makes factory programming use the application's flash layout and makes full-flash erase optional.

If a forward check fails, check whether that patch is already present:

git -C modules/hal/ti apply --reverse --check ../../../modules/lib/spotflow/zephyr/patches/ti/cc35xx-flash-startup.patch
git -C zephyr apply --reverse --check ../modules/lib/spotflow/zephyr/patches/ti/cc35xx-toolbox-runner.patch

A successful reverse check means that patch is already applied; skip it. If both checks fail for a patch, inspect the checkout for partial edits or a different revision before proceeding. The reverse checks do not modify files.

Build the chosen sample

Return to the Wi-Fi, BLE or OTA guide to configure and build the sample into the workspace-root build directory, then continue below. When reusing build for another sample, use --pristine.

A pristine build only replaces host build outputs; changing the board's flash layout requires factory programming. When switching between the ordinary Wi-Fi or BLE layout and PSA OTA, use the full-erase command below.

Activate and initially program the CC35X1

Activate the device once

Skip this step if the board is already in the DEPLOYED lifecycle. Activate only an unactivated (OPERATIONAL) development board, using the programming image from the chosen sample's build.

Use an absolute report path. Toolbox 4.3.23 resolves a relative report path against its installation directory and can fail after activation while trying to save the report.

simplelink-wifi-toolbox programmer -i XDS110 -param1 auto activation `
  --prog_inst_image_path "$PWD\build\zephyr\flash\programming_instructions_image.sign.bin" `
  --report_file_name_path "$PWD\build\activation_report.txt" `
  --verbose

If Toolbox reports _xds_open error -260, check USB detection and XDS110 host setup first. This means that the probe could not be opened; it can also result from a cable, probe firmware or serial-number problem. See TI's host connection troubleshooting.

Confirm that activation completes without an earlier error. Do not repeat activation after the device has changed to the DEPLOYED lifecycle.

Program the chosen flash layout

After activation, write the boot sector, TI bootloader, TI wireless firmware, and Zephyr vendor image:

west flash --build-dir build -- --initial-programming

If migrating from a different flash layout, use this command instead, after activation:

west flash --build-dir build -- --initial-programming --full-flash-erase

A full flash erase removes persistent settings, Wi-Fi profiles and keys. Use it when changing layouts to remove stale images and storage contents. Toolbox 4.3.23 rejects full-flash erase on an unactivated device.

Do not treat a generic final Success as authoritative if the preceding output contains Factory programming failed or a lifecycle error.

Verify regular flashing

For subsequent local application updates using the same layout, run:

west flash --build-dir build

For the OTA walkthrough, return to Verify the connection, then build and deploy the update remotely.

Verify the serial console

Zephyr uses UART1 at 115200 baud. By default, UART1 is routed through jumpers J4 and J6 to the LP-XDS110 J7 header. Open the XDS110 Class Application/User UART port at 115200 baud, 8 data bits, no parity, and one stop bit. Open the terminal before pressing reset so you do not miss one-time startup output.

The following board LEDs normally remain on and do not indicate an application failure:

  • D2 indicates that reset is released.
  • D9 indicates the 3.3 V power rail.
  • D10 indicates the 1.8 V power rail.

After programming and serial output work, continue with the BLE guide, Wi-Fi guide or OTA guide to verify telemetry or deployment results in Spotflow.

On this page