STM32 interrupt latency
hi there !
I have an RTOS project, there are many interrupts (UART1,UART2,UART3, CAN interrupts, ....etc) .
I want to measure the interrupt latency of any interrupt in the system.
as you know the latency is the time between the event of interrupt (T1) and the first instruction in the ISR (T2) of the interrupt we want to measure its latency. (T2-T1)
I use STlink debugger.
I use the VScode as a code editor.
we know where is the first instruction in the ISR (T2), i mean (the location in code), but for
the event of interrupt (T1), we do NOT , for example the (T1), for (UART interrupt - in case it is receiving a character - is going to make (RXNE flag to be rise),
so the question is could we stop the code at this point when this flag is changing its value from LOW to HIGH ?
if we couldnt, how could we measure the latency for those types of interrupts, when we dont have an external event acts as (T1)?
