mspm0-skill
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "mspm0-skill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6cdf215c5877bef4f90694c3cbe7963e544288eb1e81a7f8ae1cdeb0813e0937. Verify the upstream source and version against https://skillhub.cn/skills/user_4b09efbc/mspm0-skill before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
A tool-agnostic CLI agent ruleset for TI MSPM0 development (MSPG3507, MSPM0G3507, MSPM0G3519, Luktron Tianmengxing dev boards). Supports Code Composer Studio, Keil/uVision, CMake/GCC/OpenOCD, SysConfig, and DriverLib for tasks such as inspecting or modifying MSPM0 projects, editing .syscfg configurations, avoiding generation of SysConfig/build files, using the DriverLib API, validating SysConfig output, packaging reusable MSPM0 examples, or developing NUEDC-style MSPM0 firmware.
Introduction source: third_party · user_4b09efbc · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: mspm0
description: Tool-neutral CLI agent rules for TI MSPM0 (MSPG3507, MSPM0G3507, MSPM0G3519, 立创天猛星开发板) development with Code Composer Studio, Keil/uVision, CMake/GCC/OpenOCD, SysConfig, and DriverLib. Use when an agent needs to inspect or modify MSPM0 projects, edit .syscfg configuration, avoid generated SysConfig/build files, use DriverLib APIs, validate SysConfig output, package reusable MSPM0 examples, or work on NUEDC-style MSPM0 embedded firmware.MSPM0 Agent Skill
Use this skill for TI MSPM0 firmware projects that use SysConfig and DriverLib through CCS / CCS Theia, Keil/uVision, or CMake + Arm GNU Toolchain + OpenOCD workflows. It is intended for Codex, Claude Code, OpenCode, OpenClaw, and similar CLI/editor agents.
Default Workflow
- Locate the project
.syscfgorsystem.syscfg, editable source files, generatedti_msp_dl_config.h, and the active project entrypoint:targetConfigs/*.ccxmlfor CCS,*.uvprojxplus scatter file for Keil/uVision, orCMakeLists.txtplus OpenOCD.cfgfiles for CMake/GCC/OpenOCD. - Run
python scripts/check_syscfg.py <project-dir>when this skill is available. - Read
.syscfgmetadata: device, package, SDK product, SysConfig version, modules, instances, pins, clocks, and interrupts. - Inspect generated
ti_msp_dl_config.hfor macro names, IRQ names, instance names, and the exact SysConfig init function spelling. - Before adding unfamiliar SysConfig fields, inspect the user's existing
.syscfg,examples/*/manifest.json, TI SDK examples, orsource/ti/driverlib/.meta/*.syscfg.js. - Modify the smallest relevant
.syscfgand application-code surface. - Regenerate SysConfig output or rebuild through the active toolchain's generated build flow.
- If flashing or debugging, confirm the configured probe backend matches the connected hardware and prefer a System Reset after programming.
Core Rules
- Treat
.syscfgas the source of truth for pinmux, peripheral setup, clocks, interrupts, DMA ownership, and generated initialization. - Prefer SysConfig + DriverLib for GPIO, UART, PWM, Timer, ADC, I2C, SPI, DMA, and clock setup.
- Do not hand-edit generated outputs such as
Debug/ti_msp_dl_config.c,Debug/ti_msp_dl_config.h, the project-rootti_msp_dl_config.c/ti_msp_dl_config.hpair in Keil layouts,device_linker.cmd,Objects/,Listings/, object files, maps, or.outfiles. - Preserve
.syscfgmetadata such as@cliArgs,@v2CliArgs,@versions,--device,--package, and--product. - Do not guess generated names. Read
ti_msp_dl_config.hand use the local macros and the local init function spelling, such asSYSCFG_DL_init(). - Do not invent SysConfig fields, enum values, device metadata, board names, package names, or tool versions. Validate against local examples, SDK metadata, or SysConfig CLI.
- Preserve unrelated user code, comments, copyright headers, project layout, and existing
.syscfgsettings. If a requested feature requires a larger rewrite, explain why before making it when possible. - Do not change device, package, SDK, compiler, CCS version, board, or debug probe without user confirmation.
- If SysConfig emits warnings, report them separately from build/flash success. Do not call a warning-producing generation "clean".
- If hardware behavior is not verified on a connected board, say that validation stopped at source, SysConfig, or build level.
Board-Specific Pin Caution
Custom MSPM0G3519 Board (LQFP-64)
When the project targets the custom MSPM0G3519 development board (--device "MSPM0G3519" --package "LQFP-64(PM)"):
Completely unusable — never assign to any peripheral:
- PA2: frequency accuracy control, not routed to header
- PA5, PA6: 40 MHz HFXT crystal, system clock source
- PA19, PA20: SWDIO / SWCLK debug interface
PA18 — BSL caution:
- PA18 is the BSL entry pin and the onboard BACK button (PULL_DOWN in normal use).
- If PA18 is high at reset, the device enters BSL mode and user firmware will not run.
- Do not drive PA18 high at power-on. Warn the user before assigning PA18 to any output or external signal that could be high at reset.
Already occupied by board peripherals — do not reassign without user confirmation:
| Pin(s) | Occupied by |
|---|---|
| PA0, PA1 | Software I2C — OLED (SDA/SCL), board has 2.2 kΩ pull-ups; I2C bus can share additional devices |
| PA10, PA11 | UART0 TX/RX — onboard CH340; header pins can be shared |
| PA27, PA28 | Software I2C — LSM6DS3 IMU (SCL/SDA) |
| PB6, PB7, PB8, PB9 | SPI1 — W25Q128 Flash (CS/MISO/MOSI/SCLK) |
| PB17, PB18 | UART7 TX/RX — onboard 2.4 GHz wireless module |
| PB21 | User button ENTER (PULL_UP, active-low) |
| PB22 | Onboard LED (active-low, PULL_DOWN) |
| PB23 | Wireless link-status input (PULL_DOWN) |
| PB26 | TIMA1 CCP0 — WS2812 RGB LED PWM |
| PB27 | TIMG6 CCP1 — buzzer PWM |
Optional peripherals — can be released if not used:
- PA29, PA30: QEI encoder PHA/PHB (TIMG8 CCP0/CCP1)
- PA31: Encoder SW button (PULL_UP)
When the user asks to choose a free pin, prefer pins not listed above. If the user explicitly requests an occupied pin, explain the conflict and ask for confirmation before proceeding.
LCKFB Tianmengxing MSPM0G3507
When the user explicitly says the board is LCKFB Tianmengxing MSPM0G3507:
- Avoid choosing A21/PA21, A23/PA23, A02/PA02, A18/PA18, A10/PA10, and A11/PA11 for ordinary user-requested pin assignments unless the user asks for those pins or the local project already deliberately uses them.
- If the user asks to drive or reuse one of those pins, remind them that the Tianmengxing documentation marks these as special pins and says they should not be used unless necessary.
- Do not silently move an existing project away from these pins. Explain the board caveat first, then ask or proceed according to the user's intent.
Project Shape Checks
- Simple projects usually keep most logic in
main.c,empty.c, or a small number of files. It is acceptable to make narrowly scoped edits there. - Framework projects often have multiple source directories such as
app/,bsp/,components/,core/,drivers/,hal/,middleware/, ortasks/. First identify ownership boundaries before adding peripherals or changing control logic. - Do not assume every MSPM0 project is CCS-like or single-file. A framework project can still use CCS, Keil, or CMake/GCC/OpenOCD.
- For control code, confirm whether timing comes from a timer ISR, RTOS task delay, hardware PWM/ADC trigger chain, or a main-loop poll before changing periods or priorities.
Keil Project Checks
- Treat
system.syscfgandti_msp_dl_config.c/ti_msp_dl_config.has the configuration source surface for Keil-based MSPM0 projects that keep SysConfig outputs at the project root. - Treat a Keil
.uvprojxas the project entrypoint, the scatter file as the linker source of truth, andObjects/,Listings/,*.uvoptx, build logs, and generated outputs as inspection-only unless a request explicitly targets them. - For a project's application code, follow its own source layout rather than assuming CCS defaults.
CMake / GCC / OpenOCD Checks
- Treat
CMakeLists.txt, toolchain files, and OpenOCD.cfgfiles as the project entrypoints for CMake/GCC/OpenOCD projects. - Build through the existing CMake build directory when present, for example
cmake --build cmake-build-debug --target <target>. - MSPM0 OpenOCD flashing usually requires a TI MSPM0-capable OpenOCD build or TI extension branch. If OpenOCD reports
unable to find a matching CMSIS-DAP device, report that as probe discovery failure rather than firmware failure. - Do not require CCS
targetConfigs/*.ccxmlwhen the active project uses OpenOCD instead of DSLite.
FreeRTOS Checks
- If
FreeRTOSConfig.h,FreeRTOS.h,task.h,xTaskCreate, orvTaskStartSchedulerare present, treat the project as RTOS-aware. - Keep RTOS handling lightweight: respect existing task, queue, ISR, and blocking-call boundaries; do not impose a specific framework architecture unless the user asks.
Ambiguous Requests
If the user omits important hardware parameters, do not silently choose risky values.
- For low-risk defaults, use this skill's
examples/or local TI SDK examples, then tell the user which defaults were applied. - For important parameters, ask before editing and offer a concrete recommendation.
- Important missing parameters include pin, peripheral instance, UART baud/data/parity/stop bits, Timer period, PWM frequency/duty/polarity, ADC channel/reference/sample time, DMA direction/source/destination, interrupt priority, and external-module power/logic levels.
Example: if the user asks "add a timer interrupt", ask which timer and period they want, and recommend a starter such as TIMG at 1 ms or 10 ms if they are unsure.
External Modules And Hardware Debugging
When asked to drive an external module, sensor, motor driver, servo, display, radio, or custom board:
- Ask for the module datasheet, schematic, pin map, supply voltage, logic level, communication protocol, and key parameters when they are not available.
- Verify wiring assumptions before blaming code: power, ground, pull-ups, level shifting, reset/enable pins, boot pins, chip select, UART TX/RX crossover, I2C address, SPI mode, PWM polarity, and shared pins.
- If repeated attempts fail and SysConfig, build, flash, and code logic look correct, explicitly raise the possibility of wiring, power, module mode, datasheet mismatch, damaged hardware, or wrong test procedure.
- Separate "firmware looks correct" from "hardware proved correct".
Reference Selection
Read references only when needed:
references/sysconfig_ccs_workflow.md:.syscfgediting, CCS / Keil / CMake project layout, SysConfig CLI, gmake, CMake build, DSLite/J-Link, and OpenOCD.references/driverlib_runtime_rules.md: DriverLib usage, interrupts, clock tree, delays, and common runtime mistakes.references/sdk_schema_lookup.md: how to find official SysConfig fields and examples in the local MSPM0 SDK.references/hardware_validation_notes.md: verified Tianmengxing MSPM0G3507 lessons, HFXT warnings, flash/reset behavior, and real-board caveats.references/ccs_dss_debug.md: CCS Debug Server Scripting (ccs-dss) debug workflow, breakpoints, register reads, and current limitations.
Use examples/ as the main source for reusable tested patterns. Prefer scripts/list_examples.py to inspect available examples before opening individual example files.
Examples
Each reusable example should contain:
examples/<name>/
├─ example.syscfg
├─ README.md
├─ manifest.json
└─ src/
└─ source files copied from the minimal relevant project surface
Do not require users to drop full CCS projects into examples/. Use scripts/capture_example.py to extract a compact example package from a real project.
Tools
python scripts/check_syscfg.py <project-dir>: static project check for.syscfg, generated files, pins, init spelling, project shape, CCS/Keil/CMake/OpenOCD clues, build output, target config, and validation hints.python scripts/list_examples.py: list packaged examples fromexamples/*/manifest.json.python scripts/capture_example.py <project-dir> --name <example-name> --include <glob>: package selected source files and.syscfgfrom a user project intoexamples/<example-name>/.python scripts/index_syscfg_examples.py <mspm0-sdk-root> --board LP_MSPM0G3507 --module UART: search local TI SDK examples and module metadata.python scripts/serial_console.py --list: list serial ports.python scripts/ccs_dss_debug.py <project-dir> probe --leave-running: connect through CCS Debug Server Scripting, read reset/register state, verify the configured.ccxmldebug path, and continue the target before disconnecting.
For the verified CH340 setup, use python scripts/serial_console.py -p COM6 -b 115200 --timestamp --duration 10 after closing other serial tools such as VOFA+.
Flash Backends
The verified CCS flash path is DSLite / UniFlash with J-Link. For automated flashing after clock-tree changes, prefer DSLite System Reset:
dslite -c <target.ccxml> -e -r 2 -u <project.out>
For CMake/GCC/OpenOCD projects, use the project's existing flash target or explicit OpenOCD config. Keep the backend explicit and report probe-discovery errors separately from build success.
Debug Backends
The currently packaged automated debug helper is the CCS Debug Server Scripting backend (ccs-dss):
python scripts/ccs_dss_debug.py <project-dir> probe --leave-running
python scripts/ccs_dss_debug.py <project-dir> run-to-symbol --symbol main --load --reset "System Reset"
Use it only for CCS / CCS Theia / UniFlash-style projects with a valid targetConfigs/*.ccxml. The physical probe is selected by .ccxml, so the backend is not inherently J-Link-only; it can also work with CCS-supported probes such as XDS110 when the project configuration matches the hardware.
Do not treat ccs-dss as the OpenOCD path. For CMake/GCC/OpenOCD projects, keep future debugging under a separate openocd-gdb backend. Debug actions can halt the CPU, so report that risk before using breakpoints or register inspection on real-time control hardware.
助力全国大学生电子设计竞赛 (NUEDC)
本 Skill 对立创·天猛星 MSPM0G3507 开发板进行了深入的引脚和外设适配,特别是在全国大学生电子设计竞赛(NUEDC)等高强度开发场景中,可极大降低底层配置的试错成本:
- 内置
references/MSPM0G3507_Pinout_Mapping.md提供完整引脚复用和避坑指南。 - 引导 Agent 避开特殊系统引脚(如 PA18 BSL、PA5/PA6 等),自动根据天猛星板载 CH340E、OLED 等分配通信总线(UART0/SPI1/I2C0)。
- 加速外设配置验证速度,加油,电赛人!
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向 TI MSPM0 系列 MCU 开发,覆盖 SysConfig、DriverLib、多工具链(CCS/Keil/CMake/OpenOCD)
- 内置引脚避坑指南,特别针对立创天猛星开发板和 NUEDC 竞赛场景优化
- 显著降低嵌入式底层配置试错成本,具备高频刚需价值
Highlights
- 触发词精准完整,明确列出 inspect/modify projects、edit .syscfg、use DriverLib APIs 等具体场景
- 覆盖多种开发工具和任务类型,边界清晰,不易误触或漏触
Areas to improve
-
排版细节优化 Reported severity: Minor
部分表格和代码块排版可进一步优化对齐
Recommendation: 建议使用统一 Markdown 表格格式,增强可读性
Highlights
- 文档结构完整,含 Default Workflow、Core Rules、Board-Specific Pin Caution 等清晰章节
- 提供端到端示例和工具调用说明,frontmatter 完整
Areas to improve
-
工具依赖环境说明 Reported severity: Minor
部分脚本工具(如 check_syscfg.py)未明确说明 Python 依赖或运行环境要求
Recommendation: 建议在 Tools 章节补充各脚本的依赖说明和运行环境要求
Highlights
- 工具来源明确,参数正确,覆盖主要异常场景(如 probe discovery failure)
- 不可逆操作(如引脚重分配)有用户确认机制,硬件验证与固件逻辑分离清晰
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.