STM32F446ZE SPI4 PORTE MISO Pin does not work as required or expected.
I am using SPI4 PORTE pins 2,5 and 6. I have a 16 channel ADC hooked up to it. Everything functions as needed on the ADC including. Reset, Averaging setup, channels setup. I can see the MISO pin(Pin 5 PortE changes as the voltage changes. but 0 is read from the DR on the SPI peripheral.
I noticed in the data manual PORTE AF5(Alternate function 5) is assigned to two sets of pins
DS10693 Rev 10 Page 61
PORTE Pin 2 = SPI4_SCK
PORTE Pin 5 = SPI4_MISO
PORTE Pin 6 = SPI4_MOSI
and
PORTE Pin 12 = SPI4_SCK
PORTE Pin 13 = SPI4_MISO
PORTE Pin 14 = SPI4_MOSI
I used CUBEMX to setup the pins for the peripheral, and have double checked it. I use the generated SPI function HAL_SPI_TransmitReceive to get the data.
We also had this part work on two other boards, using a different SPI port.
Do I have to use PORTE pin 13 for the MISO? Why does PORTE Pin 5 not work as advertised?
