Profiling Firmware on Cortex-M | Interrupt

Hi there, thank you for this article!

As you pointed out the last method doesn’t really work for multi-threaded applications on MCU. Most of my projects are running FreeRTOS and I was wondering if there is a way in OpenOCD to profile individual threads (or function) without taking into account task switch and IRQs. Do you know if it is possible?

AFAIK OpenOCD supports thread-aware debugging so normally it should be able to “detect” kernel events.

PS: Thank you again, this blog is like heaven for embedded software engineers :slight_smile: