Skip to main content
Associate II
July 28, 2024
Solved

SPI DMA Doesn't work in Nucleo-STM32u575ZITxQ

  • July 28, 2024
  • 4 replies
  • 1459 views

Hello , 

I have an issue in STM32u575 IN SPI DMA , Even IF I Tried the Example code (/SPI_FullDuplex_ComDMA_Master) 

there is no data received from the other side  iam using the aardvark to test it 

when check the return of this function 

HAL_SPI_GetState(&hspi1);

will be : HAL_SPI_STATE_BUSY_TX 

I tried all steps and Do the same in another project every Time I faced this issue even if using the Linked - list  mode or stander request mode 

I receive the same issue with no data may please support in this point ? 

 

Best answer by TDK

> SO please Advice what can I do ?

Run the code in debug mode, wait a few seconds, hit pause, see where execution is at.

4 replies

TDK
July 28, 2024

Most of the examples work without issue. If you run the example without changing anything, where does the code end up? Do the LEDs toggle as expected? There are two STM32u575 boards, are you using the correct example? Be detailed.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate II
July 29, 2024

Hello , 

Thank you for your replay 

The example code doesn't send any data to the slave when put this line in example 

 

HAL_SPI_StateTypeDef test = HAL_SPI_GetState(&hspi1);  

To check the status it is stuck in HAL_SPI_STATE_BUSY_TX  , I don't know why each time stuck on it even if the I2c is working with DMA as Example but  SPI Not . SO please Advice what can I do ?

 

TDK
TDKBest answer
July 29, 2024

> SO please Advice what can I do ?

Run the code in debug mode, wait a few seconds, hit pause, see where execution is at.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Christian N
ST Employee
July 29, 2024
This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.
Associate II
July 30, 2024

Hello , 

Finally the example code is working fine but when trying the same steps in my project the function 

HAL_SPI_TxRxCpltCallback(SPI_HandleTypeDef *hspi) 

doesn't call any more it means data stuck and never translate may set some points to check maybe Couse this issue please ? 

Associate II
July 30, 2024

Hello Again , 

Thank you for Your effort I found the issue in software as priority  issue there is a lot of tasks and so on that make interrupt does not come so I will solve my project thank you for that