Running Software Examples on the CC13x4 or CC26x4

Software Examples for the CC13x4 or CC26x4

It is not currently possible to use the Hardware View tool to change the device types of projects using CC13x2x1 or CC26x2x1 to CC13x4 or CC26x4. Developers are strongly encouraged to import a project which contains the correct settings for their target device and port the stack application accordingly. Example projects can be found in the following location:

<SDK_DIR>\examples\rtos\<LaunchPad variant>\<stack>\<application>\tirtos\<ticlang/iar>

For LP-EM-CC1314R10, LP-EM-CC1354P10-1 and LP-EM-CC1354P10-6, software examples are provided in the SimpleLink CC13xx/CC26xx SDK.

If your product will use CC1354R10, CC2674R10 or CC2674P10, the recommendation is to start with a LP-EM-CC1354P10 software example.

Migrate Your CC13x2 or CC26x2 Project

This section will describe a way to migrate an existing project to the CC13x4 or CC26x4 device.

The best way to migrate is to open a new project from the new SDK and transfer your changes and application code over to the new example.

  1. Choose the CC13x4 SDK example project that contains your target project’s base functionality or corresponds to your existing project.

  2. Transfer the SysConfig settings. You can do this through the GUI, or open both the old and the new project .syscfg files in a text comparison program and copy-paste the desired settings.

  3. Transfer all modified application files from your existing project into the CC13x4 example project. If applicable: delete application files that are not used from the CC13x4 example project.

You can find instructions on how to design and configure a custom board in the Custom Hardware chapter.

Specific Software Changes from CC13x2 and CC26x2 Projects

If your project has not been updated to the latest SDK, you may run into one or more of the following limitations:

Memory

The CC13x4 or CC26x4 devices contain 1M (1024KB) internal flash and 256KB RAM.

ROM

On CC13x4 or CC26x4 devices, there is no RTOS or connectivity stack in ROM. Instead, the RTOS and stacks are stored in flash. There are no required software changes.

PIN and GPIO Drivers

Legacy PIN drivers are not supported on CC13x4 or CC26x4 devices. Instead you should use the GPIO++ driver. For more information about GPIO++ driver, refer to the migration guide GPIO++ Driver Porting Guide

UART Driver

The legacy UART driver is not supported. Instead use the new UART2 driver. More information available in the UART to UART2 Porting Guide.

RTOS

CC13x4 or CC26x4 devices will only support TI-RTOS7 and FreeRTOS, not legacy TI-RTOS (also called RTOS6 or BIOS6). More information about TI-RTOS7 is available here: TI-RTOS to TI-RTOS7 Migration.

Migrate software examples from CC13x4 to CC26x4

This section provides the necessary steps to migrate an existing software example or project from a CC1354P10_x device to a CC26x4 device. This assumes you have imported a CC1354P10_x project into your CCS workspace.

  1. To avoid confusion, it is advised to rename the project before proceeding with the porting effort. To rename the project, right click on the imported project, select the rename option and provide a new name for the project in the pop up.

    ../_images/rename_project.png
  2. Go to Project properties, in the predefined symbols section, change DeviceFamily_CC13X4 to DeviceFamily_CC26X4.

    ../_images/predefined_symbol_cc26x4.png
  3. Make sure that the SysConfig product associated with the project is version 1.16.2 or later. This ensures that SysConfig has the metadata for your CC26x4 device.

    ../_images/sysconfig_version.png
  4. Open the device view of SysConfig and click on the Switch option.

    ../_images/switch_device.png
  5. Select the required target device and select the board as ‘None’. Ensure that you have left the Lock PinMux selection unchecked. This is necessary because we still need to edit the pin mapping to fit our custom board design.

    ../_images/board_device_selection.png

After clicking “Confirm”, SysConfig will perform best-effort device migration. Most settings will be correctly migrated, but sometimes (e.g. pin assignments to custom boards) SysConfig cannot select a good default for the new environment. In these cases, SysConfig will highlight settings that must be manually reviewed with warnings and/or errors. Some of these errors and warnings are illustrated below.

Caution

The following steps are provided for reference only. These are based on mounting a CC2674R10 device on a LP-CC2652R7 LaunchPad. You need to resolve the errors based on your own custom design.