Reference manual 0008 - starting from page 77 especially figure 8.
If you look at the ST examples you will also see the recommended way of
waiting after clock initialization.
And i have done many tests here. If you try it with an external 16MHz
crystal you will kicked back to the internal HSI if you omit the waiting
after rcc_osc_on(HSE). One little error in my code: the comment
rcc_set_adcpre(ADCPRE_PLCK2_DIV8); //prescales the ADC from the AHB
clock; max 14MHz
is wrong. Instead the ADC prescales its clock from APB2 (see figure 8).
And funny to see... I have 2 48Pin stm32 here. One which run at 36mhz
with 0WS and the other one needs 1WS. 8-) it seems that your stms runs
also stable with 0WS at 36MHz.
Best regards,
Thomas Otto
Am Sonntag, den 28.02.2010, 01:22 +0100 schrieb Uwe Hermann:
> On Sat, Feb 27, 2010 at 06:41:42PM +0100, Thomas Otto wrote:
> > see patch.
>
> Thanks, merged.
>
> Will look at the clock stuff tomorrow or so. Is there a special appnote
> about clock setup somewhere or did you get that info from the reference
> manual?
>
> Thanks, Uwe.
|