Skip to main content
Senior III
June 17, 2026
Solved

Systick Interrupt handler not executed and gets reset if any interrupt is enabled

  • June 17, 2026
  • 20 replies
  • 308 views

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.

Best answer by STuser2

RESET PROBLEMS WITH STM32G474RET6 | Community

This did the trick.

20 replies

STuser2Author
Senior III
June 18, 2026

I have tried the code is some of the other nucleo board and my custom board and the systick handler works except this board, this board i got to use it now, it was already being used by someone else for long time (6 months), so i am not sure if anything done inside the controller by erasing code or changing some parameters, could it be hardware issue? Please provide suggestions so that i can resolve the issue.

CubeMx 6.17.0

STuser2Author
Senior III
June 19, 2026

I tested with another board of G4 series and same problem of Systick interrupt does not happen. But i tested with another board with STM32F334C8T6 F33 series and the Systick happens. Can someone suggest what can I do? Should i suspect hardware or software? If i share my project can someone please test and let me know so that i can confirm if it is hardware or software? Or please share me your project with the same series i can try.

STuser2AuthorBest answer
Senior III
June 19, 2026