SPI on Nucleo_STMH533RE
Hi, you should first familiarize yourself with the devicetree concept and the Kconfig configuration system in Zephyr.
I recommend this video to understand how they work: Configure Zephyr: Kconfigs and Devicetree in Simple Words
For configuring SPI and other peripherals, start by reviewing the Zephyr SPI documentation
, then explore existing examples.
For your specific board, check the generated build/primary/zephyr/zephyr.dts file to see the current configuration. In your application, create an overlay file (e.g., app.overlay) to reconfigure settings.
For example (theoretical):
&spi1 {
pinctrl-0 = < &spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pa7>;
pinctrl-names = “default”;
cs-gpios = < &gpiob 0 GPIO_ACTIVE_LOW>;
status = “okay”;
};
For more details, check existing Zephyr samples


