Replies: 1 comment 6 replies
-
@Dermiste, Normally, I look inside the map file ( However, AFAIK, STM32 share the Thus, in the |
Beta Was this translation helpful? Give feedback.
-
@Dermiste, Normally, I look inside the map file ( However, AFAIK, STM32 share the Thus, in the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Simple scenario, I am running the sample located at
tests\drivers\spi\spi_loopback
. I've put prints inside the driver located atdrivers/spi/spi_ll_stm32.c
which confirm that it's this one that is compiled and used.However, there are three options in the "compatible" node of the SPI1 inside dts/arm/st/u5/stm32u5.dtsi:
compatible = "st,stm32h7-spi", "st,stm32-spi-fifo", "st,stm32-spi";
The doc states "If a node has more than one string in its compatible property, the build system looks for compatible bindings in the listed order and uses the first match.". In this case they all have a match but only the last one has a C implementation that includes a DT_DRV_COMPAT macro, I assume that is why the driver st_stm32_spi.c gets used, but what would be the need for the first two bindings since they don't have any special properties nor C implementation? Can't wrap my head around that
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions