SPI slave master DMA 4Mhz not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-17 05: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
- Labels:
-
SPI
-
STM32H5 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-17 05: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
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-17 06:15 AM
No it's not normal. The DMA can easily keep up at a 4 MHz clock speed. Probably a code bug.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-17 06:46 AM
sorry did want to approuve as the best solution not sure how to revert back
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-17 06:47 AM
I am using it with some other task FreeRtos... Do you have any idea what can be the problem?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-17 06: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-17 07: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.
