Skip to main content
Associate II
January 14, 2025
Question

Missing pinctrl in device tree for STM32CubeMX 6.13.0 + STM32MP157D (custom board)

  • January 14, 2025
  • 2 replies
  • 1055 views

We're moving to the latest scarthgap release (v24.11.06) of the ST distro (building from yocto).  We have a custom board.

Generating the device tree from STM32CubeMX 6.13.0 no longer seems to define the pinctrl settings in the device tree?

I clicked the option to migrate the .ioc file.

Apart from a few whitespace changes, the device tree differs only in terms of missing pinctrl configuration.  This doesn't seem right to me, I don't see where else that is being defined and will be required for our pin muxing.  The STM32M4 firmware base code also output is missing configuration for the GPIO?

Why are there no Pinctrl definitions any more?  Is there a configuration, or is STM32CubeMX broken?  I've reinstalled it and the packages.

(we migrated .ioc file and regenerated the device tree successfully several times for mickledore)

2 replies

james-ccAuthor
Associate II
January 14, 2025

Interestingly starting CubeMX with the STM32MP157F-DK2 board config produces a device tree with pinctrl settings.

james-ccAuthor
Associate II
January 15, 2025

Sadly, I didn't get to the bottom of this.  I recreated the .ioc file starting from scratch.  I overwrote the "broken" .ioc file, and "generate" worked successfully to update the existing (user modified) device tree and ARM-M4 code.

On the upside, I made use of the new compare projects in STM32CubeMX, which worked well in identifying settings which I didn't mirror correctly.