2019-01-23 08:25 PM
I am using STM32CubeMX v5.0.1 on Windows10. I am trying to set up the B-L475E-IOT01A board's SPI2 port to communicate with a SPI based PMOD device. The user manual for the board shows SPI2 to be the port that connected to PMOD.
STM32CubeMX will not let me set up the SPI2 port at all. It has the red circle with a line and only allows the mode to be "Disabled". USART2 is disabled. There does not appear to be a method for setting the GPIOs into the right alternate functions.
What settings am I missing to make SPI2 operational? I have attached my .ioc file if anyone has an idea on this.
Thanks!
2019-01-23 09:23 PM
Just looking at the user manual, did you first select PD2/4/5/6 as SPI2 pins?
If there are multiple alternates used in this pin, use the "stacked pin" selectable option.
In some CubeMX versions if EXTI is enabled, all other associated alternate functions of the pin will be wrongfully disabled.