CubeMX 5.4.0 generated code doesn't compile when using tickless timebase (TIM16)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-12-06 2: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
Labels:
- Labels:
-
Bug-report
-
STM32CubeMX
-
STM32L4 series
-
TIM
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
