cancel
Showing results for 
Search instead for 
Did you mean: 

SPI slave master DMA 4Mhz not working

aabba.1
Associate III

Hi,
I am using a STM32H5 as SPI slave DMA (the main clock is at 250Mhz and SPI clock is at 160Mhz)... I am trying to receive data (2072 Bytes) from a master with a clock of 4Mhz and I am having some OVVERUN is this normal. When the master clock is at 2Mhz I don't have any issue.

 

Thank you

6 REPLIES 6
Imen.D
ST Employee

Hello @aabba.1 

Did you check the Datasheet on SPI characteristics and tips of maximum clock frequency?

SPI maximum clock frequency for STM32H5 MCUs devic... - STMicroelectronics Community

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
TDK
Guru

No it's not normal. The DMA can easily keep up at a 4 MHz clock speed. Probably a code bug.

If you feel a post has answered your question, please click "Accept as Solution".

sorry did want to approuve as the best solution not sure how to revert back

aabba.1
Associate III

I am using it with some other task FreeRtos... Do you have any idea what can be the problem?

Thank you


@aabba.1 wrote:

sorry did want to approve as the best solution not sure how to revert 


Instructions here: 

https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256

Yeah, a code bug. If you showed your code, maybe something more precise could be said. Guessing at problems is not useful. Be objective, debug the code.

If you feel a post has answered your question, please click "Accept as Solution".