Question
SysTick_Handler not called, STM32G070 (and 2024 release)
SysTick_Handler() function isn't called in a project based upon the STM32G070CB mcu (48 terminals). However, with the STM32G070RB (64 terminals (NUCLEO-G070RB)) there aren't any issues.
I found this workaround from 3 years ago (almost 4):
This post goal is to help others naive programmers like me (that trusted in ST) in case they ever face the same problem:
// system_stm32g0xx.c:
void SystemInit(void)
{
/* Configure the Vector Table location -------------------------------------*/
#if defined(USER_VECT_TAB_ADDRESS)
SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation */
#endif /* USER_VECT_TAB_ADDRESS */
SCB->VTOR = FLASH_BASE; // <---------------- WORKAROUND!
}
