Systick Interrupt handler not executed and gets reset if any interrupt is enabled
I have used the HAL_Delay function as below, the micro is stm32g474ret6.
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, SET);
HAL_GPIO_WritePin(Buzzer_GPIO_Port, Buzzer_Pin, RESET);
HAL_Delay(1000);
HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, RESET);
}
/* USER CODE END 3 */
}The problem is the code always struck in the HAL_Delay function

with uwTick always returning 0. The systick interrupt handler is not called.
Another observation if i enable the timer1 interrupt (i assume enable any interrupt) the code is reset. I generated the PWM using timer1 without interrupts.
What is the problem when i enable interrupts how do i check it? Is it something to do with the Interrupt vector table.
