Skip to main content
Stijn1
Associate
December 6, 2019
Question

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

  • December 6, 2019
  • 0 replies
  • 434 views

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

This topic has been closed for replies.