CC2340R5 to CC2340R2 Porting Guide¶
This section will describe, in general terms, how to migrate a project developed for the CC2340R5 device to a CC2340R2 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 CC2340R2.
If you are using Code Composer Studio 12.5, you need to first install the support package for the CC2340R2 device. The following steps are not required if using Code Composer Studio 12.6 or higher versions.
Inside Code Composer Studio, go to
Help
→Install New Software
→Work with
selectCode Composer Studio v12 Updates
and look forLPCS Device Support
. Choose the support package based on your Operative System and continue to clickNext
until installation is complete.
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.
Import the project into Code Composer Studio.
Open SysConfig, go to
Device View
and click onSWITCH
.
Once the
Switch Board or Device
window is opened, select the CC2340R2 board, or CC2340R2 device and click onCONFIRM
. Make sure to save the project changes so that the migration takes place.
Right click on the imported project folder and select
Properties
. Validate that the CC2340R2 name shows up at theVariant and core
field.
Open the Linker command file
.cmd
and modify the Flash size and RAM size to 256 kB and 28 kB respectively.1#define FLASH_SIZE 0x40000 2#define RAM_SIZE 0x7000
Build the project.