2008-05-27 12:37 PM
RCC_WaitForHSEStartUp function
2011-05-17 03:35 AM
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?2011-05-17 03:35 AM
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...