2019-12-06 02:13 AM
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