can't make interrup callback work
Hi,
I am a newbie to CubeIDE and STM32 Mcus, and have spent hours trying to make interrupt callback work on a Nucleo-STM32G070 board.
First, I tried HAL_UART_TxCpltCallback for USART2, this function is not called, then I downloaded an example project TIM_TimeBase which works, but when I added the timer 3 into my test project with the same configuration as in the example project, it does not work.
I must have missed something in configuration in my project.


the Priority is not configurable


again, the Priority is not configurable

As for the Timer 3, I am a bit confused by the calculation of the prescaler in the example project, could someone clarify it to me:

Actually, in system_stm32g0xx.c, it is defined as follow:
uint32_t SystemCoreClock = 16000000U;
Regards
Chao
