CC2340R5 to CC2340R53 Porting Guide

This section will describe, in general terms, how to migrate a project developed for the CC2340R5 device to a CC2340R53 device running the SimpleLink Low Power F3 SDK. However, it is important to first assess the differences between both devices to make sure that the project migration is possible (See Platform Devices Comparison).

The primary difference between CC2340R5 and CC2340R53 is the SRAM size, as specified in their respective datasheets. CC2340R5 has 36 kB SRAM, and CC2340R53 has 64 kB SRAM.

Migration Guide

The recommended migration path is to start with a CC2340R5 based example project from the SimpleLink Low Power F3 SDK and follow the next steps:

  1. Import the project into Code Composer Studio or you IDE of preference.

  2. Open SysConfig, go to Device View and click on SWITCH.

../../_images/DeviceView_Switch.png

Figure 218. SysConfig - Switch Device.

  1. Once the Switch Board or Device window is opened, select the CC2340R53 board, or 64 kB device and click on CONFIRM. Make sure to save the project changes so that the migration takes place.

../../_images/select_cc2340r53_board.png

Figure 219. SysConfig - Select CC2340R53 device.

Warning

If a new linker command file is generated after migration (named cc23x0r53.cmd in the project files) please make sure to exclude it from build (or eliminated it from the project files) so that the original lpf3_app_freertos.cmd file is used during build time.

  1. Build and flash the project.

Additional Steps for Off-Chip OAD and MCUBoot examples

  1. Import MCUBoot project, go inside mcuboot_config and do the following:

    • Uncomment the following two lines:
      Listing 179. mcuboot_config.h - Uncomment to enable external flash configuration and enable the overwrite-only code path.
      1    #define TI_BOOT_USE_EXTERNAL_FLASH
      2    #define MCUBOOT_OVERWRITE_ONLY
      
    • Comment out the following line:
      Listing 180. mcuboot_config.h - Comment to disable the direct-xip code path.
      1    //#define MCUBOOT_DIRECT_XIP
      
  2. Build the project.