External oscillators are more accurate because of the imprecision, temperature/supply voltage dependence, and jitter of the internal oscillators. Currently the settings are configured to use the HSI on 16Mhz (these are the unaltered values for the NUCLEO-L152RE)
External oscillators are more accurate because of the imprecision, temperature/supply voltage dependence, and jitter of the internal oscillators. Currently the settings are configured to use the HSI on 16Mhz (these are the unaltered values for the NUCLEO-L152RE)
Maybe useful code if hsi has problems
//
RCC->CFGR |= RCC_CFGR_SW_HSI; //set hsi as systemclk while((RCC->CR & RCC_CFGR_SWS_HSI)!= RCC_CFGR_SWS_HSI);
RCC->CFGR |= (RCC_CFGR_MCOSEL_SYSCLK); //set mco output to sysclk