SDC default clock speed for STM32F4

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
hazelnusse
Posts: 77
Joined: Thu May 24, 2012 8:01 am

SDC default clock speed for STM32F4

Post by hazelnusse »

I have a Olimex STM32-H407 dev board which has an STM32F407 chip on it. I'm using the SD card and FatFS to write data to the card. I have been search the source tree but am unable to find out what the SDIO clock speed (SDIO_CK in RM0090) is set to by default. My reading of the documentation is that it can be between 0-25MHz. Anybody know what speed it is set to?

Thanks,
Luke
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: SDC default clock speed for STM32F4

Post by Giovanni »

Hi,

Look into sdc_lld.h at line 139 and following, the clock is calculated there depending on the device and system clock.

Giovanni
talsit
Posts: 24
Joined: Wed Oct 10, 2012 10:09 am

Re: SDC default clock speed for STM32F4

Post by talsit »

If you have excel, you can try out this clock config tool:
http://www.st.com/web/catalog/tools/FM1 ... 3/PF257927
It will tell you the speed of your SDIO bus.
Post Reply