STM32L052 crashes when executing SystemClock_Config when MSI_RC set to 65.536
I start a new project using STM32CubeIDE Version: 1.14.1 and select STM32L052K6T6.
All I change is the MSI_RC clock setting to be 65.536kHz. This causes all the other clocks to change to this same freq.
I program the device and step through - execution freezes in SystemClock_Config.
I believe the problem is related to the system tick timer. I note that in the NVIV config code generation tab that the "Call HAL Handler: option is ticked by default. If I untick this, then SystemClock_Config executes.
I think all the handler does is to increment the tick:
void SysTick_Handler(void)
{
HAL_IncTick();
}
Maybe the core frequency is too low to execute the tick handler?
Do I need the system tick at all? I think the HAL_ADC_DeInit uses it.
Can I slow the tick down to some slow value so it doesn't overwhelm the processor?
Am I even asking the right question?
