AnsweredAssumed Answered

HSE Config

Question asked by tr.gregory8 on Jul 25, 2011
Latest reply on Jul 26, 2011 by brazov.ajeje
I need to config my stm8s105k6 to work with oscillator of 16Mhz

my code :

CLK_ClockSwitchCmd ( ENABLE );
 CLK->SWR  = 0xB4;
 CLK->SWR  = 0xB4;
 while ( !(CLK->CMSR == 0xB4 ) );

I get stuck behind the while loop
Am I missing something ?

Outcomes