AnsweredAssumed Answered

STM32F303 SPI clock in read processing

Question asked by nishikawa.kenji.001 on Nov 10, 2016
Latest reply on Nov 30, 2016 by ALKUOR.ABDELRAHEEM
I have question about SPI communication on the STM32F303.
Read processing from slave device(SD) in SPI does not go well. I expected that 1 is returned, but 0 is returned.
I check program code and signal by oscilloscope. When the read access to data register(DR) is performed,  the clock signal from SCK was not output.
When the write access to DR is performed, the clock signal was output. So I think clock is output when read access.
Is this recognition a correct?
If it is correct, what will be considered as a cause?
If it is not correct, when will a signal occur in program control?
Before doing read access, I confirm that SPI_FLAG_RXNE flag is set.

Outcomes