ETM and ISR execution order
Posted: Thu Sep 19, 2024 4:48 pm
Hello,
I was looking into this sample and noticed that I could not understand. https://github.com/espressif/esp-idf/tr ... re_hc_sr04.
The sample uses both an ISR of the hardware timer and the ETM matrix. In the ISR of the timer it is expected that the ETM channel has executed before the ISR is invoked, so the value from the register can be read. Is that always the case and is it documented somewhere ?
Thanks,
Martin
I was looking into this sample and noticed that I could not understand. https://github.com/espressif/esp-idf/tr ... re_hc_sr04.
The sample uses both an ISR of the hardware timer and the ETM matrix. In the ISR of the timer it is expected that the ETM channel has executed before the ISR is invoked, so the value from the register can be read. Is that always the case and is it documented somewhere ?
Thanks,
Martin