STM32F103 - CubeMX - Timer and Interrupt
This function need to be called in order for the interrupt handler to be called:

HAL_TIM_Base_Start_IT(&amp;htim1);


Thank you kkrambo for the tip, although it wasn't HAL_TIM_OC_Start_IT(), but the one above.