2024-09-17 5:50 AM
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
2024-09-17 5:58 AM
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
2024-09-17 6:15 AM
No it's not normal. The DMA can easily keep up at a 4 MHz clock speed. Probably a code bug.
2024-09-17 6:46 AM
sorry did want to approuve as the best solution not sure how to revert back
2024-09-17 6:47 AM
I am using it with some other task FreeRtos... Do you have any idea what can be the problem?
Thank you
2024-09-17 6:56 AM
@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
2024-09-17 7:54 AM
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.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.