cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G030 Interrupt latency

ferrario
Associate III

I am experiencing a vey long external interrupt latency up to 2 microseconds.

Clock is internal PLL, 64MHz.

void HAL_GPIO_EXTI_Rising_Callback(uint16_t GPIO_Pin)

{

   if (GPIO_Pin == TRIGGER_Pin)

      {

           __disable_irq();

            LL_GPIO_ResetOutputPin(S2_GPIO_Port, S2_Pin);         

            __enable_irq();

      }

}

how can I speed it up, I need it to be <1 microsecond

Thanks

11 REPLIES 11
Like I said, the handler in the vector table is EXTI4_15_IRQHandler. You can view the call stack during the interrupt to verify this. Find that function in your program and put the code there instead.
If you feel a post has answered your question, please click "Accept as Solution".