Skip to main content
mpapai
Visitor II
October 6, 2021
Question

Using timebase other than SysTick will cause the program to freeze on STM32G0B1KET with the 1.5.0 firmware package

  • October 6, 2021
  • 2 replies
  • 1260 views

Hey there,

I've noticed, that if I generate a project for CubeIDE using the latest STM32Cube_FW_G0_V1.5.0 and I set the timebase source as one of the peripheral timers instead of the SysTick, the program will freeze when the HAL_TIM_Base_Start_IT function is called. This problem does not present itself, when I'm generating the project using V1.4.0 using CubeMX for example. My question is whether or not am I missing something, or is there a bug in the new FW package?

Thanks in advance!

This topic has been closed for replies.

2 replies

Mike_ST
ST Technical Moderator
October 6, 2021

Please check that TIM6 ISR is defined in stm32g4xx_it.c

In CubeIDE, under System Core => NVIC, make sure that "Generate IRQ Handler" for "Time base: TIM6" is active.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. 
TDK
October 6, 2021

There seem to be quite a few questions lately about a TIM timebase causing issues with the latest CubeMX version.

"If you feel a post has answered your question, please click ""Accept as Solution""."