Skip to main content
Visitor II
December 17, 2025
Question

STM32H5: recent example of SPI slave with DMA for both RX/TX please

  • December 17, 2025
  • 3 replies
  • 237 views

Dear all

I am relatively new to STM32, using STM32H563 as an SPI slave to receive data and send some feedback data as same time, The SPI master is a Tiva MCU form Ti,  as data is relatively long, I need to use DMA, I tried to find an example for it, but there is none with DMA, could some one please provide some starting point for me? 

Thanks in advance.

Ping

 

    This topic has been closed for replies.

    3 replies

    Super User
    December 17, 2025
    Ping1Author
    Visitor II
    December 18, 2025

    Hi, TDK

    Thank you for your quick reply, tried to download the whole repository and still found some drivers are missing, they seems linked to other libraries. What is the recommended way to import this specific project only to CubeIDE and let it compile please?

    Also, noticed it uses Link-list for DMA, which is new to me too, is it used for continuous TX/RX between Master and slave? will normal work? Sorry, i am asking too many questions.

    Regards!

    Ping  

    Technical Moderator
    December 18, 2025


    Hello,


    @Ping1 wrote:

    Hi, TDK

    Thank you for your quick reply, tried to download the whole repository and still found some drivers are missing, they seems linked to other libraries. What is the recommended way to import this specific project only to CubeIDE and let it compile please?


    You need to git clone with recursive option. Please read this knowledge base: Downloading STM32Cube packages from GitHub correctly

    Ping1Author
    Visitor II
    December 18, 2025

    Thank you all for reply.

    Now I have tried to copy the example to my project and found it only receives once and then ignore the rest of data packets coming, I am not sure the original example, is it designed doing once only, or continuously?

    What is needed in order to let it run continuous ? any advice is appreciated.

    Regards!

    Ping

     

    Technical Moderator
    December 18, 2025

    @Ping1 wrote:

    I am not sure the original example, is it designed doing once only, or continuously?


    What the readme file of example is saying?

    Ping1Author
    Visitor II
    December 18, 2025

    Hi, 

    I haven't found anything information on readme file regarding it run once or multiple, probably run once once after button press, hence, I am asking the question and also get some confirm from experts here, please kindly let me know if you know the answer.

    Regards!

    Ping