
.. _cc26xx-cc23xx-migration-guide:

CC26xx to CC23xx Porting Guide
******************************

This section will describe, in general terms, how to port
a project developed for the cc26xx device on the 
|SDKF2| to a |DEVICE| device running 
the |SDK|.

The best way to migrate is to open a new example project 
with similar functionality in the new SDK and transfer 
your changes and application code over to the new example. 

The following sections discuss the major changes between the
cc26xx devices and the |DEVICE| devices.


* :ref:`sec-general-considerations-cc26xx-to-cc23xx`

   * :ref:`sec-general-considerations-freertos-cc26xx-to-cc23xx`

   * :ref:`sec-general-considerations-launchpad-support-cc26xx-to-cc23xx`

   * :ref:`sec-general-sensor-controller-cc26xx-to-cc23xx`

* :ref:`sec-migration-guides-cc26xx-to-cc23xx`

   * :ref:`sec-migration-guides-freertos-cc26xx-to-cc23xx`

   * :ref:`sec-migration-guides-RF-stack-cc26xx-to-cc23xx`

   * :ref:`sec-migration-guides-ti-drivers-cc26xx-to-cc23xx`

* :ref:`watchdog-example-code`

.. _sec-general-considerations-cc26xx-to-cc23xx:

General Considerations
======================

.. _sec-general-considerations-freertos-cc26xx-to-cc23xx:

FreeRTOS
--------

The |DEVICE| devices exclusively support FreeRTOS. If a project
needs to be migrated from the |SDKF2|
and uses TI-RTOS or TI-RTOS7, it will need to be converted to FreeRTOS during
the migration process.

.. _sec-general-considerations-launchpad-support-cc26xx-to-cc23xx:

CC23xx LaunchPad support
------------------------
All example applications are compatible with the CC23xx LaunchPad development
kit. These features allow for a unified development experience and empowers
developers to rapidly release to market.

`CC23xx LaunchPad Development Kit Product Page <http://www.ti.com/tool/LP-EM-CC2340R5>`_

.. _sec-general-sensor-controller-cc26xx-to-cc23xx:

Sensor Controller
-----------------
The |DEVICE| does not support the Sensor Controller. Any applications being ported
from the |SDKF2| that make use of the Sensor Controller will need to be modified
to not use the Sensor Controller in order to work with the |DEVICE|.

.. _sec-migration-guides-cc26xx-to-cc23xx:

Migration Guides
================

.. _sec-migration-guides-freertos-cc26xx-to-cc23xx:

Migrate to FreeRTOS
-------------------

An important step that must be taken in order to port an example from the
|SDKF2| to the |SDK| is to ensure that the project is implemented in FreeRTOS.
The |SDK| only supports FreeRTOS, so any projects running on TI-RTOS or 
TI-RTOS7 will not work unless they are converted to FreeRTOS. To port a
project from TI-RTOS or TI-RTOS7 to FreeRTOS please reference
:ref:`sec_freertos_migration_cc23xx_application`.

.. _sec-migration-guides-RF-stack-cc26xx-to-cc23xx:

Migrate the RF stack
--------------------

Ensure the RF features and requirements that are present in the
original example are available in the |SDK| RF stack.

.. _sec-migration-guides-ti-drivers-cc26xx-to-cc23xx:

Migrate the TI drivers
----------------------

It is important to ensure that projects that are being ported are
not using deprecated libraries. A few migration guides for libraries
that should be updated as part of the |SDKF2| to |SDK| migration are
shown below:

*  :ref:`uart_to_uart2-porting-guide`
*  :ref:`sec-cc23xx-gpio++-porting-guide`

