s32ct-peripherals-info
Read-only inspector for the S32 Configuration Tools Peripherals tool. Answers what and how a peripheral (driver component) can be configured for any S32 family MCU (S32K1, S32K3, S32G, S32R, S32M, S32
Files3
View on GitHubSKILL.mdskills/s32ct/s32ct-peripherals-info/SKILL.md
GitHubS32CT Peripherals Info (read-only inspector)
Looks up what and how a peripheral can be configured in the S32
Configuration Tools Peripherals tool by parsing two on-disk authoritative
sources shipped with S32 Design Studio: (1) the peripheral's .component
descriptor - the schema (modes, config sets, structs, arrays, settings,
quick-selection presets, dynamic-enum references); and (2) the
per-package resource_tables/<Driver>.xml (and .../RTD/<Driver>.xml)
files - the package-specific allowed values for every <dynamic_enum>.
Post 16->5 refactor, sibling skills invoke via the unified
nxp_s32ct_execute_action dispatcher; this inspector remains a pure read.
When to use
Use this skill when:
- Discovering which parameters, sub-containers and quick-selection presets a peripheral exposes in the Peripherals tool.
- Resolving a
<dynamic_enum ref="..."/>in a.componentto its package-specific allowed-value list (fromresource_tables/<Driver>.xml). - Explaining the mapping between a
.componentfile and the<instance>block it produces inside a.mexproject. - Locating the official RTD reference manual PDF for a peripheral.
- Diagnosing why a parameter or value is missing / rejected in the Peripherals tool (wrong RTD version, wrong MCU package, peripheral not installed, dynamic-enum value not present on this package).
Do not use this skill for:
- Editing a
.mex- uses32ct-generate-mex-configors32ct-peripherals-facade(=nxp_s32ct_execute_action(action_name="s32ct.configure_peripherals", params={...})). - Generating driver code - use
s32ct-generate-code(=nxp_s32ct_execute_action(action_name="s32ct.generate_code", params={...})). - Anything write-side or target-mutating.
Available Capabilities
| Type | Name | Invocation |
|---|---|---|
| Query | Peripheral overview | peripheral_name="Mcu" (no query) |
| Query | Specific parameter | peripheral_name="Mcu", query="McuTimeout" |
| Query | Resolve <dynamic_enum> |
peripheral_name="Spi", query="SpiPhyUnitMapping", package="S32K312_172HDQFP" |
| Query | Locate RTD PDF | peripheral_name="Mcu", include_doc_link=true |
| Query | .mex <instance> shape |
peripheral_name="Port", include_mex_shape=true, mcu="S32K312" |
| Reference | Per-driver inspection & resolution | references/per-driver-inspection.md |
| Reference | Authoring an <instance> block |
references/authoring-instance-reference.md |
Post 16->5 tool mapping
| Sibling skill id | MCP call to use |
|---|---|
s32ct-cli |
nxp_s32ct_execute_action(action_name="s32ct.configure_cli", params={...}) |
s32ct-peripherals-facade |
nxp_s32ct_execute_action(action_name="s32ct.configure_peripherals", params={...}) |
s32ct-generate-code |
nxp_s32ct_execute_action(action_name="s32ct.generate_code", params={...}) |
Quickstart
Overview of a peripheral (returns modes, top-level config sets, quick selections, sub-containers):
peripheral_name: Mcu platform_sdk: PlatformSDK_S32K3Look up a specific parameter and its default:
peripheral_name: Mcu query: McuTimeoutResolve a
<dynamic_enum>to package-specific allowed values:peripheral_name: Spi query: SpiPhyUnitMapping mcu: S32K312 package: S32K312_172HDQFPReturns
LPSPI_0..LPSPI_6on S32K312_172HDQFP (fromresource_tables/Spi.xml). Different packages may expose fewer.Get the official PDF reference:
peripheral_name: Mcu include_doc_link: trueReturns absolute path under
<S32DS_INSTALL>/S32DS/software/<platform_sdk>/RTD/Mcu_TS_.../doc/RTD_MCU_UM.pdf.See how the peripheral lands in a
.mex:peripheral_name: Port include_mex_shape: true mcu: S32K312
See references/per-driver-inspection.md for the full inputs table,
resolution algorithm, resource-table anatomy, worked examples, and the
error-message catalog.
Inputs (summary)
| Name | Required | Default |
|---|---|---|
peripheral_name |
yes | - |
platform_sdk |
no | sole folder under mcu_data/components/, or matched by mcu family |
mcu |
no | sole processor installed for that platform_sdk |
package |
no | sole package under <mcu>/<platform_sdk>/ |
s32ds_install |
no | auto-discovered active install (desktop or integrated_s32ds) |
query |
no | if empty, returns structured overview |
include_mex_shape |
no | false |
include_doc_link |
no | true |
include_resource_table |
no | true (or implied by query) |
Output
A Markdown string with four sections:
- Resolved sources - absolute paths to the
.componentfile, the matchingresource_tables/<Driver>.xml(and/orRTD/<Driver>.xml) when used, the doc PDF (wheninclude_doc_link), and the reference.mex(wheninclude_mex_shape). - Answer - human-readable response.
- Evidence - short XML excerpts (
<config_set>,<quick_selection>,<set id=...>,<mode>,<dynamic_enum>, matching<array>/<setting>entries from the resource table) quoted verbatim. - References - PDF path and
<instance>excerpt if requested.
Configuration
# Idempotent, filesystem-read only. No side effects.
# Case-sensitive on disk: peripheral folder names follow RTD naming
# (e.g. Can_43_FLEXCAN, Lpuart_Uart, Wdg_43_Instance1, Qspi_Ip).
Guardrails
Scope - Read-only. Filesystem reads and XML parsing only. Does not
modify target variables, system memory, project files, .mex
configurations, or any installed tooling. Idempotent.
Refuse-and-escalate - Returns clear, actionable errors (never raises)
when the .component file, platform SDK, MCU, package, or dynamic-enum
reference cannot be resolved. Each error lists the checked absolute path
and either the closest matches or the list of installed alternatives
(from the on-disk dir listing). Downstream authoring must be routed
to a write-side skill:
- Edit a
.mex->s32ct-generate-mex-configors32ct-peripherals-facade. - Generate code ->
s32ct-generate-code. - Board-level orchestration ->
s32ct-peripherals-author-mex.
Data authority - Two authoritative sources. Schema lives in the
.component XML; package-specific allowed values for <dynamic_enum>
live in the per-package resource tables. A correct answer cites both.
Never answer from memory; RTD versions, MCU variants and package
pinouts differ.
Validation loop
<s32ds_install>/eclipse/mcu_data/components/<platform_sdk>/exists; otherwise list installed SDKs.<peripheral_name>/<peripheral_name>.componentexists under that SDK; otherwise list nearest sibling folders (case-sensitive).- When
mcuandpackageare needed:mcu_data/processors/<mcu>/<platform_sdk>/<package>/exists; otherwise list available MCUs / packages. - Component XML parses without error.
- Every
<dynamic_enum ref="Driver.Path"/>in the filtered result resolves againstresource_tables/<Driver>.xml(or.../RTD/<Driver>.xml). - When
include_doc_link=true,doc/index.mdparses and itscomponent-doc-linkresolves to an existing PDF. - When
include_mex_shape=true, the bundled<MCU>_default.mexexists (fall back gracefully with a "how to generate one" pointer). - Pass criterion: output contains the four sections above and every quoted excerpt has an absolute source path.
Out of scope
- Writing or patching
.mexfiles. - Applying settings to a project or running the Peripherals CLI.
- Generating source code, headers, or drivers.
- Modifying installed RTD / Platform SDK content.
- Any interaction with the live target device.
See Also
references/per-driver-inspection.md- Full inspection procedure, resource-table anatomy,<dynamic_enum>resolution algorithm, common driver families, error-message catalog, and worked examples.references/authoring-instance-reference.md- Rules for adding a new<instance>block to a.mex(attribute mapping, template mirroring, 6-item pre-insertion checklist, end-to-end Wdg_43_Instance1 example). Load this whenever the consumer is about to patch a.mex.- Related skills:
s32ct-pins-info,s32ct-clocks-info- sibling read-only inspectors for the Pins and Clocks tools.s32ct-generate-mex-config,s32ct-peripherals-facade,s32ct-peripherals-author-mex- write-side authoring / apply.s32ct-generate-code,s32ct-cli- code generation and generic dispatcher.s32ct-distributions-desktopvsintegrated_s32dsinstall layout and where the MCP auto-discovers each.