boards/ti/lp_mspm0l2228/doc/index.rst
.. zephyr:board:: lp_mspm0l2228
Overview
MSPM0Lx22x microcontrollers (MCUs) are part of the highly integrated, ultra-low-power 32-bit MSPM0 MCU family based on the Arm® Cortex®-M0+ 32-bit core platform, operating at up to 32MHz frequency. These MCUs offer a blend of cost optimization and design flexibility for applications requiring 128KB to 256KB of flash memory in small packages (down to 4mm x 4mm) or high pin count packages (up to 80 pins). These devices include a VBAT backup island, an optional segmented LCD controller (on MSPM0L222x), cybersecurity enablers, and high-performance integrated analog, and provide excellent low-power performance across the operating temperature range.
Up to 256KB of embedded flash program memory with built-in error correction code (ECC) and up to 32KB SRAM with ECC and parity protection is provided. The flash memory is organized into two main banks to support field firmware updates, with address swap support provided between the two main banks. An additional 32-byte backup memory is provided in the VBAT island, supplied by the VBAT pin and retained even when the main supply (VDD) is lost.
Hardware
Launchpad MSPM0L2228 provides the following hardware components:
.. image:: img/LP-MSPM0L2228.png :align: center :alt: MSPM0L2228 LaunchPad development board
Zephyr uses the lp_mspm0l2228 board for building LP_MSPM0L2228
Features:
Details on the MSPM0L2228 LaunchPad can be found on the TI LP_MSPM0L2228 Product Page_.
.. zephyr:board-supported-hw::
Building and Flashing
Follow the :ref:getting_started instructions for Zephyr application development.
For example, to build the blinky application for the MSPM0L2228 LaunchPad:
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: lp_mspm0l2228 :goals: build
The resulting zephyr.bin binary in the build directory can be flashed onto
MSPM0L2228 LaunchPad using the steps mentioned below.
Open OCD is used to program the flash memory on the devices. It may be necessary in earlier versions to use a branch of open OCD onto the device.
Before OpenOCD is public, one can clone This Repo <https://github.com/openocd-org/openocd.git>_,
and then this can be built with
.. code-block:: console
$ cd <cloned_OPENOCD_dir> $ ./bootstrap (when building from the git repository) $ ./configure $ make $ sudo make install
Then after the build, it is possible to flash the device by passing additional arguments to the flash command
.. code-block:: console
$ west flash --openocd <path to cloned dir>/src/openocd --openocd-search <path to cloned dir>/tcl
Flashing using JLINK
.. code-block:: console
$ west flash --runner jlink
You can debug an application in the usual way. Here is an example for the
:zephyr:code-sample:hello_world application.
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: lp_mspm0l2228 :goals: debug
References
TI MSPM0 MCU Page: https://www.ti.com/microcontrollers-mcus-processors/arm-based-microcontrollers/arm-cortex-m0-mcus/overview.html
TI MSPM0L2228 Product Page: https://www.ti.com/product/MSPM0L2228
TI MSPM0 SDK: https://www.ti.com/tool/MSPM0-SDK
.. _MSPM0L2228 TRM: https://www.ti.com/lit/slau847
.. _TI LP_MSPM0L2228 Product Page: https://www.ti.com/tool/LP-MSPM0L2228