Analyzing ARM Cortex-M Firmware with the Perfetto Trace Processor
summary
Explains how on-device ARM Cortex-M debug peripherals ITM/ETM/DWT and formatters SWO/TPIU are captured via Auterion Embedded Debug Tools (orbetto), decoded with Capstone, and converted into Perfetto ftrace so traces show thread/IRQ/workqueue/semaphore/heap/DMA state and per-thread call stacks. Claims raw instruction traces hit ~100 GB/hour and reduced call‑stack traces ~50 GB/hour; SWO tops ~60 Mbps and USB2 limits collection. Demonstrates live PX4/NuttX captures, SQL queries with PerfettoSQL to validate scheduling, DMA throughput and event-frequency hypotheses, and shows the pipeline reliably produces actionable CI/post‑flight metrics.
AI-written summary · about
chapters (12)
- 0:00Introduction to embedded
- 1:48Speaker background and context
- 3:49Debugging and trace protocols
- 7:21Profiling and tracing methods
- 9:27Hardware tracing with ITM/DWT
- 11:20Advanced instruction tracing
- 14:00Data flow and trace hardware
- 18:03Practical implementation
- 22:24Visualizing traces in Perfetto
- 26:08SQL-based trace analysis
- 31:58Future research and conclusion
- 36:46Q&A session
