STM32CubeF4 icon indicating copy to clipboard operation
STM32CubeF4 copied to clipboard

Proposal: URML (substrate-neutral robot intent) cross-citation for STM32Cube — mixed-license clarification ask + multi-series scope question

Open idoco2003 opened this issue 6 months ago • 4 comments

Hi @STMicroelectronics team,

Proposing a URML v0.1 capability-manifest cross-citation for STM32Cube over STMicroelectronics/STM32CubeF4. URML (Universal Robot Language, Apache-2.0) is an open spec for substrate-neutral robot intent.

STM32 is one of the two most-deployed MCU families in robotics; URML's manifest declares STM32 board class spanning the F4 / H7 / U5 / G0 / G4 / WB / WL / WBA series. Mixed-license posture is the gating fact: ST's repos carry a mix of permissive (BSD-3-Clause, MIT, Apache-2.0) and proprietary-with-redistribution-license components. URML's adapter-grade reuse depends on per-surface clarity. Multi-series scope is the second question: this RFC anchors on STM32CubeF4 but the discussion likely belongs at a higher-level org surface if you have one.

This is proposal-only, posted as part of URML's Move #13 outreach (15 engageable RFCs in this wave).

Full RFC: https://github.com/URML-MARS/URML/blob/main/docs/rfcs/0182-stmicroelectronics-stm32cube-outreach.md

Questions worth STMicroelectronics maintainer input on:

  1. License clarification. Can the STM32Cube repos get explicit per-surface SPDX declarations? Which subdirectories are BSD-3-Clause / MIT / Apache-2.0 vs proprietary-with-redistribution?
  2. MCU substrate manifest fields. URML's v0.1 has no mcu_class: stm32_* enum entries. Spec RFC queued. Manifest field expectations from ST's perspective (series identifier, Cube version pin, middleware declarations)?
  3. Mixed-license-surface declaration. Should URML's manifest declare per-component license boundaries explicitly?
  4. Multi-series scope. Should URML engagement live per-series-repo (F4 / H7 / U5 etc.) or at a higher-level umbrella?
  5. Adapter home. Cross-citation only (recommended pending license clarification), URML repo (reference/edu-runtime/STM32CubeAdapter), or ST-maintained?
  6. Conformance listing. Would STMicroelectronics consider a README link to URML's compatible-runtimes registry once a working cross-citation ships?
  7. Anything else.

Ido Yahalomi (URML maintainer, urml.dev, [email protected])


AI-assisted prose, maintainer-reviewed before posting (see VIBE.md). Human-only correspondence available on request.

idoco2003 avatar May 28 '26 15:05 idoco2003

Hi @idoco2003,

Thank you for this proposal and all these questions. Not sure I can answer all of them. I'll forward them to our experts to ask for their feedback. I'll keep you informed, should there be something new.

Meanwhile, here are some hints:

  • At the root of this firmware repository (and similar ones), the LICENSE.md file lists the different software components and their distribution license. For instance:
    • The CMSIS Device linked under ./Drivers/CMSIS/Device/ST/STM32F4xx is licensed under Apache License 2.0.
    • The STM32F4 HAL linked under ./Drivers/STM32F4xx_HAL_Driver is licensed under BSD-3-Clause.
  • Each one of these software components is found in its dedicated repository, with the complete list of licensing terms at its root.

[!TIP] If the license mix in this firmware repository does not fit your needs, maybe you can use those dedicated repos instead. An almost complete list can be found here.

With regards,

ALABSTM avatar Jun 04 '26 17:06 ALABSTM

Thanks @ALABSTM, that is exactly what I needed. LICENSE.md plus the dedicated per-component repos resolves it cleanly: CMSIS Device (cmsis-device-f4) is Apache-2.0 and the STM32F4 HAL (stm32f4xx-hal-driver) is BSD-3-Clause. For URML's purposes the per-component repos, each with a single license at the root, are the better surface to cite, so I'll anchor on those rather than the mixed firmware bundle.

No rush on the expert feedback for the rest. The two I'd most value their take on, whenever convenient, are the manifest fields a URML capability declaration should carry for an STM32 series (series identifier, Cube version pin, middleware) and whether engagement is better per-series or at a higher-level umbrella. Appreciate you forwarding it on.

idoco2003 avatar Jun 04 '26 17:06 idoco2003

ST Internal Reference: c18b9cbf9f91c398767372aaa624aba8

ALABSTM avatar Jun 12 '26 10:06 ALABSTM

Following up with a concrete update on the MCU manifest-field question from this thread.

URML now ships an optional Layer-1 minimal_node capability block. It is the honest declaration for a non-mobile sensor/actuator node, a board that senses and actuates but does not drive or carry a manipulator. Instead of faking a mobility block so a program validates, such a node declares:

minimal_node:
  class: sensor | actuator | sensor_actuator
  declared_sensors: [ ... ]      # cross-checked against perception.sensors when present
  declared_outputs: [ ... ]      # the lines the set_output primitive targets
  has_locomotion: false

It is mutually exclusive with mobility, and the validator confirms a sensor class declares sensors, an actuator class declares outputs, and every declared line/sensor resolves to a real manifest entry. It pairs with the set_output actuation primitive (digital/analog output lines), so a minimal board has both a coherent capability shape and the verb it actually uses. There is a runnable micro:bit-class example (examples/educational/blink-the-led) that validates and executes end to end.

RFC and shape: https://github.com/URML-MARS/URML/blob/main/docs/rfcs/0018-minimal-mcu-capability-subset.md

No reply needed on this, I just wanted to close the loop with the concrete field set rather than leave the question abstract. The open design question your team raised, per-series versus an umbrella declaration for a family like STM32F4, is the one we would still most value ST expert input on whenever it is convenient. We are anchoring on the per-component repos as discussed.

idoco2003 avatar Jun 12 '26 14:06 idoco2003

Hello @idoco2003,

Back to you with a proposal.

  1. A feature-based description of a STM32 firmware should indicate: a. The STM32 series (e.g., STM32F4, STM32WL), b. The core, i.e., the Cortex-M, supported (e.g., CM0, CM0+, CM4, CM33). This could prove useful to know which definition files and libraries to include from the CMSIS to compile a source file or to build a project as done in IDEs, c. The firmware version (i.e., vX.Y.Z), d. The list of software components the firmware is made of like the CMSIS definitions, the HAL-LL drivers, the middleware libraries, etc.

  2. Engagement should be per-series, i.e., each firmware should have its own structured feature-based description. a. Indeed, for the middleware libraries, for instance, assuming two STM32 products feature USB hardware, some firmware, like the STM32CubeF4 would offer the USB Core libraries as solution, while another, like the STM32CubeU5, the Eclipse USBX. b. Moreover, at some point in the time, one firmware could already support the latest Eclipse USBX version, like STM32CubeH5, while another would still support an older one. This depends on how firmware releases are planned per series. c. The same goes for the components' drivers like sensors, MEMS, or external memories.

[!TIP] The firmware version mentioned in 1.c and the list of software components mentioned in 1.d, along with their versions can be found in the release note of the firmware, at the root of the firmware package or repository, like the one of this repository.

[!NOTE] The firmware description would be more effective if combined with a hardware description, i.e., the microcontroller's description, based on its full part number. Indeed, the full part number indicates the supported hardware features, the peripherals and their instance numbers, but also the chip packaging that, in turn, indicates the number of pins available and their mapping to the GPIOs. All these should be included in the hardware description.

With regards,

ALABSTM avatar Jul 20 '26 14:07 ALABSTM

Thanks, and please pass my thanks to your experts too. This is exactly the level of detail I was hoping for, and it settles the scope question cleanly.

On per-series: agreed, and it matches how URML already works. URML validates against one manifest per target rather than a single umbrella, so a per-series firmware description is the right grain. Your USB Core vs Eclipse USBX example, and the point that the supported middleware version drifts per release, are exactly why a shared umbrella would be wrong.

On the fields: URML already ships an optional Layer-1 minimal_node block for a non-mobile sensor/actuator node (class, declared_sensors, declared_outputs, has_locomotion). That captures what the board senses and actuates. It does not yet carry the firmware-identity fields you list: the STM32 series, the Cortex-M core, the firmware version, and the software-component list (CMSIS, HAL-LL, middleware). Those are the natural next layer, and I am modeling them as a small dedicated per-series firmware descriptor rather than overloading minimal_node. Your four points are the spec for it.

On the hardware descriptor keyed on the full part number (peripherals and instance numbers, packaging, pin and GPIO mapping): agreed that the firmware description is more effective paired with it. URML's manifest already separates declared capabilities from the primitives that use them, so a part-number-keyed hardware block sits naturally beside the firmware one. The release-note pointer is very useful, thank you.

No rush on anything further. This gives me a clear, concrete shape to build against.

idoco2003 avatar Jul 20 '26 15:07 idoco2003

Hi @idoco2003,

I’m glad you found what you were looking for. I think we can close this thread now. I hope to hear more from you about URML and STM32. Good luck.

With regards,

ALABSTM avatar Jul 22 '26 10:07 ALABSTM

Thank you, and please pass my thanks to your experts once more. Closing it makes sense.

For what it is worth, your firmware-description points did not just get filed. They became a concrete draft proposal in the URML spec, an optional per-series firmware descriptor (series, core, version, software components), with this thread credited as the source. It is a draft for now, not settled spec, but your input is what gave it a shape. I will be glad to share how URML and STM32 develop, and to come back if a concrete per-series descriptor is worth another round with your team.

Good luck to you as well, and thank you for a genuinely useful exchange.

idoco2003 avatar Jul 22 '26 10:07 idoco2003