Error activating spi module in Yocto Linux project
- May 6, 2020
- 3 replies
- 5440 views
Hello,
I have a Yocto Project with st-stm32mp1 layer, using Poky distribution along with customized CubeMX machine that I created using st-stm32mp1-addons layers
I need to use the spi5 module, so I activated it through CubeMX for the "A7NS" runtime context.
I compiled and run the machine, but during boot I get this message:
[ 1.533147] spi_stm32 44009000.spi: clk rate = 0
[ 1.536942] spi_stm32: probe of 44009000.spi failed with error -22
I also tried with spi1 and got the same error message.
All my kernel variables are default ( SPI=y, SPI_MASTER=y, SPI_STM32=y, SPI_SPIDEV=y)
I also haven't touch any clock configuration in CubeMX, everything should be default.
I uploaded my boot log as attachment, you can find the error message at line 223. There are two messages because I tried with both spi1 and spi5.
I have also uploaded my machine configuration file, along with the cubeMX project
Any idea why this would happen ?
Thanks for your help,
