cancel
Showing results for 
Search instead for 
Did you mean: 

config for 32khz HSE in stdperipheral drivers

karthikainala
Associate II
Posted on March 23, 2014 at 11:38

In  the system_stm32l1xx.c file of stdperipheral drivers it is given that SetSysClockToHSE(void) function is defined for 8Mhz by default and if we want to change config to 32khz external clock where can we change it ?

2 REPLIES 2
Posted on March 23, 2014 at 13:16

Which STM32L1XX firmware version are you using?

32KHz? Isn't that the LSE (LOW Speed External)?

The MSI clock might get you to 65.536 KHz, you could divide that by two, but the Clock Tree doesn't suggest you can run from LSE or LSI. The AHB prescaler offers other speed combinations.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
karthikainala
Associate II
Posted on March 24, 2014 at 07:18

i am using V1.1.1 .

 yes i have and LSE of 32khz and i am not using it for RTC or timer, as the sysclk runs on MSI by default of 2Mhz , do i need to configure any registers for LSE or ignore it as i am not using it, even though its connected, will it cause any problems?

thanks for the reply