I think your SPI configuration might be incorrect. It would be great if you could show how you implemented MX_SPI1_Init()
. Please ensure that you have:
DataSize = SPI_DATASIZE_8BIT
FirstBit = SPI_FIRSTBIT_MSB
CLKPolarity = SPI_POLARITY_LOW
CLKPhase = SPI_PHASE_1EDGE
Thank you!