i509VCB 5bef2eab23
mspm0: add MSPM0G518x support and new packages for others
G518x is the first MSPM0 part with a USB, I2S and NPU peripheral. There is also a new TIMB peripheral (no PWM, so it is perfect for a time driver).

Unfortunately it also introduces UNICOMM which is a shared peripheral which can be in UART/I2C/SPI modes. This means that the current UART and I2C drivers need some adjustment to work with the new UNICOMM parts (which is the future).
2025-12-14 00:37:30 -06:00
..

Examples for MSPM0G5187

Run individual examples with

cargo run --bin <module-name>

for example

cargo run --bin blinky

Checklist before running examples

A large number of the examples are written for the LP-MSPM0G5187 board.

You might need to adjust .cargo/config.toml, Cargo.toml and possibly update pin numbers or peripherals to match the specific MCU or board you are using.

  • Update .cargo/config.toml with the correct probe-rs command to use your specific MCU. For example for G5187 it should be probe-rs run --chip MSPM0G5187. (use probe-rs chip list to find your chip)
  • Update Cargo.toml to have the correct embassy-mspm0 feature. For the LP-MSPM0G3519 it should be mspm0g3519pz. Look in the Cargo.toml file of the embassy-mspm0 project to find the correct feature flag for your chip.
  • If your board has a special clock or power configuration, make sure that it is set up appropriately.
  • If your board has different pin mapping, update any pin numbers or peripherals in the given example code to match your schematic

If you are unsure, please drop by the Embassy Matrix chat for support, and let us know:

  • Which example you are trying to run
  • Which chip and board you are using

Embassy Chat: https://matrix.to/#/#embassy-rs:matrix.org