STM32H7 max SDRAM clock speed for 480MHz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-28 7:43 AM
ST example uses 400MHz / 4 = 100MHz for SDRAM. What should the SDRAM clock be when the system is running at 480MHz? If we use 480/4 then it is 120Mhz for SDRAM, but datasheet shows max of 100MHz for SDRAM! Are we stuck running SDRAM at 60Mhz? Or run the system at 400Mhz?
What is the best way to get the max system performance?
Solved! Go to Solution.
- Labels:
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-28 8:38 AM - edited ‎2023-07-28 8:39 AM
The clock options are more complicated than just SDRAM clock = SYSCLK / prescaler. You should be able to find one at which SYSCLK=480 and SDRAM=100 by using the clock mux.
You don't mention which chip you're using, but here is one such configuration:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-28 8:38 AM - edited ‎2023-07-28 8:39 AM
The clock options are more complicated than just SDRAM clock = SYSCLK / prescaler. You should be able to find one at which SYSCLK=480 and SDRAM=100 by using the clock mux.
You don't mention which chip you're using, but here is one such configuration:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-28 8:56 AM
Hi, we are using STM32H743 which is 480MHz max.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-28 9:10 AM - edited ‎2023-07-28 9:11 AM
Doesn't it have a DIV2 and DIV3 option, so 120 MHz or 80 MHz (not 60 MHz) are viable? Stuff is also cached, so may mask the clock and latency inherent in the devices. Could also play with "what-blends" options with clocks to pick optimal mix for given application, which might be below maximum, but fits better with wait states or other combinations, CAS timing, etc. If you're willing to characterize your own design thoroughly, you might probably be able to hit 120 MHz on the SDRAM bus/devices.
Section 22.9
SDRAM clock can be fmc_ker_ck/2 or fmc_ker_ck/3
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-28 9:11 AM
Hopefully there's a PLL available in the clock tree you can use to generate the FMC clock rate you need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-28 9:22 AM
Okay, so you should be able to find a solution using the clock mux. The screenshot I posted is relevant for the STM32H743.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-09 12:46 PM
I was successful to set 99MHz.
Thank you so much
