Skip to main content
mpapai
Visitor II
Oct 6, 2021 10:58 AM UTC
Question

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

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
Oct 6, 2021 12:07 PM UTC

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
Oct 6, 2021 6:21 PM UTC

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""."