2023-07-25 05:35 AM
Hi,
I'm trying to initiate an SPI interface through the MX view. When i'm saving and building the code from the .ioc file i only see INIT for GPIO and USART, none for SPI. Am i doing something wrong here? As i understand Cube should setup the HAL SPI automatically, is it something i'm missing?
See attached .ioc file
Thank you!
2023-07-25 06:17 AM
Yes, it should have an MX_SPI_Init call. Your post doesn't have an IOC file attached. Make sure you regenerate the code after adding SPI.
2023-07-31 06:48 AM
Hello @WilliamT and welcome to the Community 🙂,
Which STM32CubeMX version are you using?
Could you please share the .ioc file?
I made some tests with Nucleo-G431KB by using STM32CubeMX6.9.0 version and I don't found any issue.
When the code is generated, the MX_SPI1_Init(); is called automatically.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.