cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX 5.4.0 generated code doesn't compile when using tickless timebase (TIM16)

Stijn1
Associate II

In STM32CubeMX v5.4.0 I generated a project using STM32L452RET6, where I disabled the systick timer by selecting "TIM16" as timebase source under "SYS".

After code generation, the unedited project doesn't compile as TIM_HandleTypeDef cannot be resolved.

This issue is fixed by enabling at least one other TIM via CubeMX.

It seems that using a timer as system timebase (which generates stm32l4xx_hal_timebase_tim.c) doesn't apply the correct define to enable the declaration for TIM_HandleTypeDef

0 REPLIES 0