cancel
Showing results for 
Search instead for 
Did you mean: 

Why assert_failed in HAL_InitTick()?

CKugl.1
Senior II

After spending some time debugging my project, I was able to narrow my problem down to this and reproduce it as follows:

  1. File, New, STM32 Project
  2. Select NUCLEO-L412KB
  3. In Pinout & Configuration, SYS, choose Timebase Source TIM16
  4. In Project Manager, Code Generator, select Enable Full Assert
  5. 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

13 REPLIES 13

Hi,

am facing the same issue with  HAL_InitTick(TICK_INT_PRIORITY); function

is it fixed?

I don't think it's fixed as it's now 2024 and I get the same problem on the STM32WB55 :(

Hello ,

This issue was detected and reported internally.

Internal ticket number: 183790 (This is an internal tracking number and is not accessible or usable by customers).

Thanks.

Mahmoud

Thank you, please can you let me know when this is fixed or any possible workaround? I'm working on a customer project that needs this working soon

Regards

Andrew