.. _cc2340r53_migration_guide:

CC2340R5 to CC2340R53 Porting guide
===========================================

This section will describe, in general terms, how to migrate
a project developed for the |DEVICE_LOW_PLUS| device to a
|DEVICE_LOW_PLUS_RAM_UP| device running the |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 |DEVICE_LOW_PLUS| and |DEVICE_LOW_PLUS_RAM_UP|
is the SRAM size, as specified in their respective datasheets.
|DEVICE_LOW_PLUS| has |RAM_SIZE_LOW_PLUS| SRAM, 
and |DEVICE_LOW_PLUS_RAM_UP| has |RAM_SIZE_LOW_PLUS_RAM_UP| SRAM.

Migration Guide
===============

The recommended migration path is to start with a |DEVICE_LOW_PLUS| 
based example project from the |SDK| and follow the next steps:

1. Import the |DEVICE_LOW_PLUS| project into Code Composer Studio (CCS)

2. Open SysConfig and click on the ``Show board view`` in the upper right

.. figure:: resources/show_board_view_syscfg.png
    :align: center

3. Click on ``Switch`` and then select the ``CC2340R53 Development Platform`` 
as the new value

.. figure:: resources/select_cc2340r53_board.png
    :align: center

4. Click ``Confirm`` and ``Save``. 

5. After migration to |DEVICE_LOW_PLUS_RAM_UP| the .cmd file is updated; for BLE 
projects extra steps are required, please reference the BLE migration guide for detailed 
steps on the migration process. 

6. Rebuild and run your project, in memory allocation view we should see that the 
SRAM is now re-sized to |RAM_SIZE_LOW_PLUS_RAM_UP|. 

.. figure:: resources/cc2340r53_memory_allocation.png
    :align: center