MSPM0L2228 Launchpad

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:

  • MSPM0L2228TPN SoC

  • ARM® 32-bit Cortex®-M0+ CPU

  • 32 MHz max CPU frequency

  • VDD from 1.62 V to 3.6 V

  • 256 KB Flash

  • 32 KB SRAM with ECC or parity

  • GPIO with external interrupt capability

  • 12-bit ADC with 26 channels

  • RTC

  • Six timers supporting up to 18 PWM outputs

  • Watchdog Timers (2)

  • UART (5)

  • I2C (2)

  • SPI (2)

  • DMA Controller

MSPM0L2228 LaunchPad development board

Zephyr uses the lp_mspm0l2228 board for building LP_MSPM0L2228

Features:

  • Onboard XDS110 debug probe

  • EnergyTrace technology available for ultra-low-power debugging

  • 2 buttons, 1 LED and 1 RGB LED for user interaction

  • Temperature sensor circuit

  • Light sensor circuit

  • External OPA2365 (default buffer mode) for ADC (up to 4 Msps) evaluation

  • Onboard 32.768-kHz and 40-MHz crystals

  • RC filter for ADC input (unpopulated by default)

Details on the MSPM0L2228 LaunchPad can be found on the TI LP_MSPM0L2228 Product Page.

Supported Features

The lp_mspm0l2228 board supports the hardware features listed below.

on-chip / on-board
Feature integrated in the SoC / present on the board.
2 / 2
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files.
vnd,foo
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.

lp_mspm0l2228/mspm0l2228 target

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M0+ CPU1

arm,cortex-m0+

Clock control

on-chip

TI MSPM0 Clock5 2

ti,mspm0-clk

on-chip

TI MSPM0 oscillator2 2

ti,mspm0-osc

GPIO & Headers

on-chip

TI MSPM0 GPIO1 2

ti,mspm0-gpio

Interrupt controller

on-chip

ARMv6-M NVIC (Nested Vectored Interrupt Controller) controller1

arm,v6m-nvic

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

MTD

on-board

Fixed partitions of a flash (or other non-volatile storage) memory1

fixed-partitions

Pin control

on-chip

TI MSPM0 pinctrl node1

ti,mspm0-pinctrl

RTC

on-chip

Texas Instruments MSPM0 RTC Driver1

ti,mspm0-rtc

Serial controller

on-chip

TI MSPM0 UART1

ti,mspm0-uart

SRAM

on-chip

Generic on-chip SRAM1

mmio-sram

Timer

on-chip

ARMv6-M System Tick1

arm,armv6m-systick

Building and Flashing

Building

Follow the Getting Started Guide instructions for Zephyr application development.

For example, to build the blinky application for the MSPM0L2228 LaunchPad:

# From the root of the zephyr repository
west build -b lp_mspm0l2228 samples/hello_world

The resulting zephyr.bin binary in the build directory can be flashed onto MSPM0L2228 LaunchPad using the steps mentioned below.

Flashing

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, and then this can be built with

$ 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

$ west flash --openocd <path to cloned dir>/src/openocd --openocd-search <path to cloned dir>/tcl

Flashing using JLINK

$ west flash --runner jlink

Debugging

You can debug an application in the usual way. Here is an example for the Hello World application.

# From the root of the zephyr repository
west build -b lp_mspm0l2228 samples/hello_world
west 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