AnsweredAssumed Answered

SPI Slave with hardware NSS on STM32F40x

Question asked by benkner.simon.001 on Apr 11, 2017
Latest reply on Apr 12, 2017 by benkner.simon.001

Hello,
right now I am facing some probems getting my STM32F407 to work as an SPI slave. The SPI is rightly configured and uses a hardware NSS. Furthermore I use HAL Drivers.
I checked the transmitted SPI signals with a logic analyzer. They look fine. So the disered signal is applied to the pins according to my CubeMX configuration.

Debugging yield to the cunclusion that HAL_SPI_STATE_BUSY_RX is always true. So my guess is, that because of HAL_SPI_STATE_BUSY_RX is always true the HAL_SPI_RECEIVE() isn't finished and will never be executed HAL_SPI_RxCpltCallback().

Are aware of such issues? Are there any recommendations how to solve this problem? Can you provide a working code example for a SPI slave besides the examples in CubeMX ?

Kind regards,
Simon

Outcomes