cancel
Showing results for 
Search instead for 
Did you mean: 

RCC_WaitForHSEStartUp function

danielya
Associate II
Posted on May 27, 2008 at 21:37

RCC_WaitForHSEStartUp function

2 REPLIES 2
danielya
Associate II
Posted on May 17, 2011 at 12:35

In the STM32 datasheet is written:

''tSU(HSE) is the startup time measured from the moment it is enabled (by software) to a stabilized 8 MHz oscillation is reached. This value is measured for a standard crystal resonator and it can vary significantly

with the crystal manufacturer''.

The same time the timeout value for the RCC_WaitForHSEStartUp function of the Firmware Library is hard defined in stm32f10x_rcc.c module equal to 128. In my case I tried 128, 144 and only with 192 the function starts to return SUCESS. If this value is so resonator dependend, why the library designers did not made it a function parameter?

lanchon
Associate III
Posted on May 17, 2011 at 12:35

I recommend you consider the fwlib as an example or an implementation guide rather than something to build upon, as it has a number of problems. I wish ST would release include files for the hardware...