2021-11-08 09:33 AM
hi community,
currently I am using the STM32H743zit6 board.
My query related to the SPI slave mode.
To test SPI master and slave mode I am configuring like this.
SPI4 is used as Master it always receives data in full duplex mode and MISO is configured as input and floating.
SPI1 is used slave mode it always transmit data in full duplex mode and miso is configured as alternative AF5.
I checked that SPI4 is send clock properly from the SCK pin it is checked confirmed in the logic analyzer.
when coming to the SpI1 SCK is configured as input and push-pull,and slave is enabled before master enabled .chip select is configured as SSM=1 and SSI bit =1.
Baurd rate and SPI123SEl I am not selecting.
here my observation is after updating data into TXDR registers, and SR register is contain TXC bit is set as zero.
Here My understanding is clock is not received by slave from the master that why data is not coming out from the pin.
please help me to solve this issue.
please let me know if there further input you required.
Best Regards,
velpula tharun kumar,
2021-11-08 10:14 AM
> SpI1 SCK is configured as input and push-pull
The SPI_SCK pin should also be configured in AF mode just like the MISO pin.
2021-11-08 09:17 PM
If spi4 is master receive, mosi and not miso can be floating. Master output pin.