Skip to main content
DPham.2
Associate II
July 19, 2021
Question

SPI using Registers in STM32H7 - There is no SPI1->DR (like in STM32F4)- only

  • July 19, 2021
  • 2 replies
  • 1818 views

I tried to follow the SPI transmit using Registers https://controllerstech.com/spi-using-registers-in-stm32/

look like in STM32H7 , it is changed significantly

for example SPI1->SR => SPI2S_SR.TXP

SPI2S_SR. EOT

EOT: end of transfer

TXP: Tx-packet space available

In general, it is so complicated for a new person when studying STM32H7. I tried to find a simple example related to LL library or register to improve the SPI speed.

Does anyone have any example or give me a hint to understand how to transfer and receive SPi with high speed (HAL is sooooo Sloww) ?

Thank you guys so much

This topic has been closed for replies.

2 replies

TDK
July 19, 2021

It is more complicated, but the reference manual explains it very clearly. The biggest change is that both TX and RX have a FIFO associated with them.

Look at "49.4.11 SPI data transmission and reception procedures" in the reference manual.

"If you feel a post has answered your question, please click ""Accept as Solution""."
DPham.2
DPham.2Author
Associate II
July 20, 2021

thank you for your reply,

I found that part: SPI data transmission and reception procedures

I will read and testing it

0693W00000D03kOQAR.png