CC2340R5 to CC2340R22 Porting Guide

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

The primary difference between CC2340R5 and CC2340R22 is the Flash size, as specified in their respective datasheets. CC2340R5 has 512kB Flash, and CC2340R22 has 256kB Flash.

Software Pre-requisites

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.

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

../_images/DeviceView_Switch.png

Figure 65. SysConfig - Switch Device.

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

../_images/Select_R22device.png

Figure 66. SysConfig - Select CC2340R22 device.

  1. Build the project.

  2. Check the Memory Allocation to confirm that the correct changes have occurred. To do this, click the project, then in the CCS Toolbar: WindowShow ViewMemory Allocation

    This will open up the following view:

../_images/cc2340r22_memory_allocation.png

Figure 67. CCS - Memory Allocation.