Skip to main content
Matthew Force
Visitor II
May 23, 2018
Question

Interrupt Issues

  • May 23, 2018
  • 0 replies
  • 453 views
Posted on May 23, 2018 at 13:49

I have a CubeMX generated project using the STM32L I have TIM2 configured for IC and OC. I am using the Cube generated ISR callbacks for the TIM and SYSTICK. The SYSTICK callback works fine by itself and the TIM_IC_Capture callback works fine. What I am seeing is that when I make a call toHAL_TIM_OnePulse_Start_IT(&htim2, TIM_CHANNEL_1) that my SYSTICK callback no longer seems to run. Could this be an interrupt priority issue? Ideas? Thanks!

void SystemClock_Config(void)
{
...
 HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);
}

static void MX_NVIC_Init(void)
{
 /* EXTI4_15_IRQn interrupt configuration */
 HAL_NVIC_SetPriority(EXTI4_15_IRQn, 0, 0);
 HAL_NVIC_EnableIRQ(EXTI4_15_IRQn);
 /* TIM2_IRQn interrupt configuration */
 HAL_NVIC_SetPriority(TIM2_IRQn, 0, 0);
 HAL_NVIC_EnableIRQ(TIM2_IRQn);
}

void HAL_SYSTICK_Callback(void)
{
 ServiceTimers();
}�?�?�?�?

void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
{
 ServiceHeater();
}
�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?

#isr-systick
This topic has been closed for replies.