Question
The HAL_TIM_PeriodElapsedHalfCpltCallback function doesn't generate an interrupt.
That's how it looks:
- Started the TIM4 interrupt mode:
/* USER CODE BEGIN 2 */
HAL_TIM_Base_Start_IT(&htim4);
/* USER CODE END 2 */- The counter values should be incremented in the middle and in the end of the period, however it doesn't happen. There is a problem with the HAL_TIM_PeriodElapsedHalfCpltCallback function. The half_elapsed variable is not inctemented during debugging.
/* USER CODE BEGIN 4 */
void HAL_TIM_PeriodElapsedHalfCpltCallback(TIM_HandleTypeDef *htim)
{
half_elapsed++;
}
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{
elapsed++;
}
/* USER CODE END 4 */- These are my Cube settings:


