cancel
Showing results for 
Search instead for 
Did you mean: 

Interrupt Issues

Matthew Force
Associate
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
0 REPLIES 0