MOSI data during HAL_SPI_Receive operation
I'm using Nucleo-F767 with IAR IDE. I have created project using STM32CubeMx v6.3.0.
I want to send one byte over MOSI and receive 27 bytes of data from SPI slave device on MISO. I noticed that random data is seen on MOSI line from 2nd byte. How to make MOSI data as 0x00 for 27 bytes i.e., during SPI Read operation.
Scope capture attached.
Code:
HAL_SPI_Transmit(&hspi3, spiTxBuf, 1, 50);
HAL_SPI_Receive(&hspi3, spiRxBuf3, 27, 50);
Note: MOSI data is required to make 0x00 in order to make slave device functionality working fine as expected.

