Skip to content

Commit dda92f8

Browse files
ssekar15kartben
authored andcommitted
boards: ti: lp_mspm0g3507: Add initial support TI LP_MSPM0G3507 board
Add initial support for Texas Instruments LP_MSPM0G3507 Launchpad. Signed-off-by: Saravanan Sekar <[email protected]> Signed-off-by: Jackson Farley <[email protected]>
1 parent c2bc1c3 commit dda92f8

File tree

9 files changed

+311
-0
lines changed

9 files changed

+311
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 Texas Instruments
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_LP_MSPM0G3507
5+
select SOC_MSPM0G3507

boards/ti/lp_mspm0g3507/board.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
board_runner_args(jlink "--device=MSPM0G3507" "--speed=4000")
4+
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
5+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

boards/ti/lp_mspm0g3507/board.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
board:
2+
name: lp_mspm0g3507
3+
full_name: MSPM0G3507 Launchpad
4+
vendor: ti
5+
socs:
6+
- name: mspm0g3507
Binary file not shown.

boards/ti/lp_mspm0g3507/doc/index.rst

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
.. zephyr:board:: lp_mspm0g3507
2+
3+
Overview
4+
********
5+
6+
MSPM0G350x microcontrollers (MCUs) are part of the MSP highly integrated, ultra-low-power 32-bit MCU
7+
family based on the enhanced Arm® Cortex®-M0+ 32-bit core platform operating at up to 80-MHz frequency.
8+
These cost-optimized MCUs offer high-performance analog peripheral integration, support extended temperature
9+
ranges from -40°C to 125°C, and operate with supply voltages ranging from 1.62 V to 3.6 V.
10+
11+
The MSPM0G350x devices provide up to 128KB embedded flash program memory with built-in error correction
12+
code (ECC) and up to 32KB SRAM with a hardware parity option. These MCUs also incorporate a
13+
memory protection unit, 7-channel DMA, math accelerator, and a variety of peripherals including
14+
15+
* Analog.
16+
17+
* Two 12-bit 4-Msps ADCs.
18+
19+
* Configurable internal shared voltage reference.
20+
21+
* One 12-bit 1-Msps DAC.
22+
23+
* Three high speed comparators with built-in reference DACs.
24+
25+
* Two zero-drift zero-crossover op-amps with programmable gain.
26+
27+
* Digital.
28+
29+
* Two 16-bit advanced control timers.
30+
31+
* Five general-purpose timers.
32+
33+
* One 16-bit general-purpose timer for QEI interface.
34+
35+
* One 32-bit high resolution general-purpose timer.
36+
37+
* Two 16-bit timers with deadband support and up to 12 PWM Channels.
38+
39+
* Two windowed-watchdog timers.
40+
41+
* One RTC with alarm and calendar modes.
42+
43+
* Data Integrity and Encryption.
44+
45+
* One AES HW accelerator capable of CTR, CBC, and ECB modes.
46+
47+
* One Cyclic Redundancy Check (CRC) accelerator.
48+
49+
* One True Random Number Generator (TRNG).
50+
51+
* Communication.
52+
53+
* Four UARTs, one with support for advanced modes such as LIN and Manchester.
54+
55+
* Two I2C supporting SMBUS/PMBUS and speeds up to FM+ (1Mbits/s).
56+
57+
* Two SPI, one with max speed 32Mbits/s.
58+
59+
* One CAN interface supporting CAN 2.0 A or B and CAN-FD.
60+
61+
.. image:: img/lp_mspm0g3507.webp
62+
:align: center
63+
:alt: MSPM0G3507 LaunchPad development board
64+
65+
Zephyr uses the ``lp_mspm0g3507`` board for building LP_MSPM0G3507
66+
67+
Features:
68+
*********
69+
70+
- Onboard XDS110 debug probe
71+
- EnergyTrace technology available for ultra-low-power debugging
72+
- 2 buttons, 1 LED and 1 RGB LED for user interaction
73+
- Temperature sensor circuit
74+
- Light sensor circuit
75+
- External OPA2365 (default buffer mode) for ADC (up to 4 Msps) evaluation
76+
- Onboard 32.768-kHz and 40-MHz crystals
77+
- RC filter for ADC input (unpopulated by default)
78+
79+
Details on the MSPM0G3507 LaunchPad can be found on the `TI LP_MSPM0G3507 Product Page`_.
80+
81+
Supported Features
82+
==================
83+
84+
.. zephyr:board-supported-hw::
85+
86+
Building and Flashing
87+
*********************
88+
89+
Building
90+
========
91+
92+
Follow the :ref:`getting_started` instructions for Zephyr application development.
93+
94+
For example, to build the blinky application for the MSPM0G3507 LaunchPad:
95+
96+
.. zephyr-app-commands::
97+
:zephyr-app: samples/hello_world
98+
:board: lp_mspm0g3507
99+
:goals: build
100+
101+
The resulting ``zephyr.bin`` binary in the build directory can be flashed onto
102+
MSPM0G3507 LaunchPad using the steps mentioned below.
103+
104+
Flashing
105+
========
106+
107+
Open OCD is used to program the flash memory on the devices. It may be necessary in
108+
earlier versions to use a branch of open OCD onto the device.
109+
110+
Before OpenOCD is public, one can clone `This Repo <https://github.com/openocd-org/openocd.git>`_,
111+
and then this can be built with
112+
113+
```
114+
cd <cloned_OPENOCD_dir>
115+
./bootstrap (when building from the git repository)
116+
./configure
117+
make
118+
sudo make install
119+
```
120+
121+
Then after the build, it is possible to flash the device by passing additional arguments to the flash command
122+
123+
```
124+
west flash --openocd <path to cloned dir>/src/openocd --openocd-search <path to cloned dir>/tcl
125+
```
126+
127+
Flashing using JLINK
128+
129+
```
130+
west flash --runner=jlink
131+
```
132+
133+
Debugging
134+
=========
135+
136+
You can debug an application in the usual way. Here is an example for the
137+
:zephyr:code-sample:`hello_world` application.
138+
139+
.. zephyr-app-commands::
140+
:zephyr-app: samples/hello_world
141+
:board: lp_mspm0g3507
142+
:goals: debug
143+
144+
References
145+
**********
146+
147+
TI MSPM0 MCU Page:
148+
https://www.ti.com/microcontrollers-mcus-processors/arm-based-microcontrollers/arm-cortex-m0-mcus/overview.html
149+
150+
TI MSPM0G3507 Product Page:
151+
https://www.ti.com/product/MSPM0G3507
152+
153+
TI MSPM0 SDK:
154+
https://www.ti.com/tool/MSPM0-SDK
155+
156+
.. _MSPM0G3507 TRM:
157+
https://www.ti.com/lit/slau846
158+
159+
.. _TI LP_MSPM0G3507 Product Page:
160+
https://www.ti.com/tool/LP-MSPM0G3507
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
/*
2+
* Copyright (c) 2025 Texas Instruments
3+
* Copyright (c) 2025 Linumiz
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
/dts-v1/;
9+
10+
#include <ti/mspm0/g/mspm0g3507.dtsi>
11+
#include <ti/mspm0/g/mspm0g1x0x_g3x0x-pinctrl.dtsi>
12+
#include <zephyr/dt-bindings/clock/mspm0_clock.h>
13+
#include <zephyr/dt-bindings/gpio/gpio.h>
14+
15+
/ {
16+
model = "TI LP_MSPM0G3507/MSPM0G3507";
17+
compatible = "ti,mspm0g3507";
18+
19+
aliases {
20+
led0 = &led0;
21+
};
22+
23+
chosen {
24+
zephyr,sram = &sram0;
25+
zephyr,flash = &flash0;
26+
zephyr,console = &uart0;
27+
zephyr,shell-uart = &uart0;
28+
zephyr,code-partition = &slot0_partition;
29+
};
30+
31+
leds {
32+
compatible = "gpio-leds";
33+
34+
led0: led_0 {
35+
gpios = <&gpiob 22 GPIO_ACTIVE_HIGH>;
36+
label = "Blue LED";
37+
};
38+
};
39+
};
40+
41+
&cpu0 {
42+
clock-frequency = <DT_FREQ_M(80)>;
43+
};
44+
45+
&ulpclk {
46+
clock-frequency = <DT_FREQ_M(40)>;
47+
clk-div = <2>;
48+
};
49+
50+
&mclk {
51+
clock-frequency = <DT_FREQ_M(80)>;
52+
clocks = <&hsclk 0>;
53+
};
54+
55+
&hsclk {
56+
clocks = <&syspll2x 0>;
57+
status = "okay";
58+
};
59+
60+
&syspll2x {
61+
status = "okay";
62+
};
63+
64+
&flash0 {
65+
status = "okay";
66+
67+
partitions {
68+
compatible = "fixed-partitions";
69+
#address-cells = <1>;
70+
#size-cells = <1>;
71+
72+
boot_partition: partition@0 {
73+
label = "mcuboot";
74+
reg = <0x00000000 0x8000>;
75+
};
76+
77+
slot0_partition: partition@8000 {
78+
label = "image-0";
79+
reg = <0x00008000 0xC000>;
80+
};
81+
82+
slot1_partition: partition@14000 {
83+
label = "image-1";
84+
reg = <0x00014000 0xC000>;
85+
};
86+
};
87+
};
88+
89+
&pinctrl {
90+
status = "okay";
91+
};
92+
93+
&gpioa {
94+
status = "okay";
95+
};
96+
97+
&gpiob {
98+
status = "okay";
99+
};
100+
101+
&uart0 {
102+
status = "okay";
103+
104+
current-speed = <115200>;
105+
pinctrl-0 = <&uart0_tx_pa10 &uart0_rx_pa11>;
106+
pinctrl-names = "default";
107+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
identifier: lp_mspm0g3507
2+
name: TI MSPM0G3507 Launchpad
3+
type: mcu
4+
arch: arm
5+
toolchain:
6+
- zephyr
7+
- gnuarmemb
8+
- xtools
9+
ram: 32
10+
flash: 128
11+
supported:
12+
- uart
13+
- gpio
14+
vendor: ti
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
# Enable UART driver
4+
CONFIG_SERIAL=y
5+
6+
# Enable Console
7+
CONFIG_CONSOLE=y
8+
CONFIG_UART_CONSOLE=y
9+
10+
CONFIG_CLOCK_CONTROL=y
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source [find interface/xds110.cfg]
2+
adapter speed 10000
3+
4+
source [find target/ti_mspm0.cfg]

0 commit comments

Comments
 (0)