CC2340R5 to CC2340R21 Porting Guide

This section will describe, in general terms, how to migrate a project developed for the CC2340R5 device to a CC2340R21 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.

Software Pre-requisites

Warning

Please make sure to use Code Composer Studio 12.5 and UniFlash 8.6.0 or higher versions when working with CC2340R21.

If you are using Code Composer Studio 12.5, you need to first install the support package for the CC2340R21 device. The following steps are not required if using Code Composer Studio 12.6 or higher versions.

  1. Inside Code Composer Studio, go to HelpInstall New SoftwareWork with select Code Composer Studio v12 Updates and look for LPCS Device Support. Choose the support package based on your Operative System and continue to click Next until installation is complete.

../_images/CCS_supportpack.png

Figure 61. Code Composer Studio - Install CC2340R21 Support Package.

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:

Warning

The current SDK version only supports Bluetooth LE PHYs. Therefore, successful migration of Proprietary RF projects has not been fully tested and will be addressed in future SDK releases.

  1. Import the project into Code Composer Studio.

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

../_images/DeviceView_Switch.png

Figure 62. SysConfig - Switch Device.

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

../_images/Select_R2device.png

Figure 63. SysConfig - Select CC2340R21 device.

  1. Right click on the imported project folder and select Properties. Validate that the CC2340R21 name shows up at the Variant and core field.

../_images/check_project_properties.png

Figure 64. Project Properties - Check migration to CC2340R21 device.

  1. Open the Linker command file .cmd and modify the Flash size and RAM size to 256 kB and 28 kB respectively.

    Listing 23. cc23x0r5_freertos.cmd - Replace FLASH_SIZE and RAM_SIZE values.
    1#define FLASH_SIZE   0x40000
    2#define RAM_SIZE     0x7000
    
  2. Build the project.