Why assert_failed in HAL_InitTick()?
After spending some time debugging my project, I was able to narrow my problem down to this and reproduce it as follows:
- File, New, STM32 Project
- Select NUCLEO-L412KB
- In Pinout & Configuration, SYS, choose Timebase Source TIM16
- In Project Manager, Code Generator, select Enable Full Assert
- Debug...
assert_failed() at main.c:197 0x80002a0 HAL_NVIC_SetPriority() at stm32l4xx_hal_cortex.c:192 0x80006fe HAL_InitTick() at stm32l4xx_hal_timebase_tim.c:49 0x800030e HAL_RCC_OscConfig() at stm32l4xx_hal_rcc.c:482 0x8000a7a SystemClock_Config() at main.c:124 0x800022c main() at main.c:79 0x80001d8
