A short description how to generate Timer Update Interrupt using HAL API.
Please check the website to get more detailed insights about programming STM32 microcontrollers:
https://www.steppeschool.com
The board I am using (NUCLEO-L476RG):
https://www.st.com/en/evaluation-tool...
Callback function of the timer update interrupt:
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
0:00 Configure Timer Update Interrupt
1:04 Start timer and write a callback function
2:00 Debugging the code