peripheral clock speeds on STM32f207
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-21 12:43 PM
i am using STM32f207
i have a flash memory connected to SPI2. I used the ST examples and i got it working, read/write, .. great, ... the problem is the speed ... how fast can i run SPI2? There is a setting SPI_InitStruct.SPI_BaudRatePrescaler and the lowest value is SPI_BaudRatePrescaler_2In my SetSysClock function i set the dividers to 1: http://prntscr.com/3lbcy6This should give me the fastest speed?My flash goes up to 85MHz and i need to go at least 80MHz because there is a lot of data to read in short time .. will this be possible on SPI2? I have a 25MHz xtal on the board and i am running the ST at 120MHz via PLL.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-21 12:49 PM
maybe if i want to go that fast i need use I/O?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-21 12:55 PM
In my SetSysClock function i set the dividers to 1: This should give me the fastest speed?
Wouldn't it just break the buses? APB1 has a max of 30 MHz, APB2 60 MHz For faster flash interfacing consider SDIOUp 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
‎2014-05-21 1:24 PM
i see .. i saw that in the ref manual but i did not want to believe it .. ok i will use i/o then .. thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-21 1:27 PM
can i connect SPI2 to AHB2?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-21 1:32 PM
about breaking the busses, HCLK is the xtal freq right? so 25mhz will not break ahb1 if i set the ahb1 divider to 1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-21 2:11 PM
can i connect SPI2 to AHB2?
I'm not sure how you plan on achieving that without reworking the silicon.about breaking the busses, HCLK is the xtal freq right? so 25mhz will not break ahb1 if i set the ahb1 divider to 1? No, it's the CPU (PLL) clock at 120 MHz, or a fraction thereof (1 .. 512). Review the clock tree You could bit bang the part, as you suggest, there are other 4-bit (quad) SPI Flash devices too
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
‎2014-05-21 2:17 PM
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
‎2014-05-22 12:04 AM
From the DataSheet ...
''The STM32F20x devices feature up to three SPIs in slave and master modes in full-duplex and simplex communication modes. SPI1 can communicate at up to 30 Mbits/s, while SPI2 and SPI3 can communicate at up to 15 Mbit/s.'' Thus, even using all three channels simultaneously, the SPI hardware does not support the required throughput.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-27 5:15 PM
Thank you i setup the clocks correctly now .. switched to SPI1 and all is good now thank you
