SPI LOOP BACK TEST on STM32H563ZIT6
Hi,
I would like to check whether it is possible to perform internal SPI full duplex loop back tests on the STM32H563ZIT6 board, but I don't know how to do it.any one please help me.
Hi,
I would like to check whether it is possible to perform internal SPI full duplex loop back tests on the STM32H563ZIT6 board, but I don't know how to do it.any one please help me.
First, if your SPIs are correctly configured in SPI2 -> master and SPI3 -> slave, your connection should be:
SPI2 CLK <--> SPI3 CLK
SPI2 MOSI <--> SPI3 MOSI
SPI2 MISO <--> SPI3 MISO
SPI2 CS <--> SPI3 CS
Then, as @TDK said above, you should start with a non blocking function for the slave to receive before sending anything with the master. Like HAL_SPI_Receive_IT. But you'll probably need a few more configurations in your project to enable SPI IT if not already done.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.