Skip to main content
Visitor II
April 23, 2024
Question

SPI DMA is not workng at higher SPI baud rates

  • April 23, 2024
  • 2 replies
  • 1244 views

Hi,

My NUCLEO-H563ZI application uses SPI with DMA. The SPI transactions are not working at clock/2 clock/4 and clock/8 rates, clock being 250 Mhz. Is there any clock frequency restriction when SPI is used with DMA?

WCarey_0-1713875592886.png

 

    This topic has been closed for replies.

    2 replies

    Graduate II
    April 23, 2024

    Give context! Explain your setup! What means "not working?  What is your setup?

    WCareyAuthor
    Visitor II
    April 23, 2024

    This is my SPI Configuration.

    WCarey_0-1713877617979.png

    Upto a clk freq of SPI_BAUDRATEPRESCALER_16 (250/16 = 15.625 Mhz), my SPI transactions work i.e the 10 bytes I send from Master are coming up on the MOSI line. And my slave also behaves correctly.

    WCarey_1-1713877686187.png

    However, for frequencies above that (say SPI_BAUDRATEPRESCALER_8), the clock pin does not show any pulses!!

    WCarey_2-1713878704784.png

     

     

     

     

    Graduate II
    April 23, 2024

    You do not show your GPIO Setup. Is GPIO set for appropriate speed? How is your wiring? On-Board, on Board with jumper wires or bord-tp board with some cable or jumper wires? Did you look at the signal with a fast scope? 30 Mhz signals need some thoughts and care!

    Visitor II
    January 31, 2025

    @WCarey Did you find a solution for it?