[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
10.1145/3576914.3587521acmconferencesArticle/Chapter ViewAbstractPublication PagescpsweekConference Proceedingsconference-collections
research-article
Open access

FrankenTrace: Low-Cost, Cycle-Level, Widely Applicable Program Execution Tracing for ARM Cortex-M SoC

Published: 09 May 2023 Publication History

Abstract

Program execution tracing is an important technique in software development and analysis. However, noninvasively obtaining cycle-level traces for modern low-power ARMv7-M-based SoCs is challenging, because convenient off-the-shelf high-speed tracing probes are expensive and cannot be applied to SoCs that lack high-speed debug components, notably Embedded Trace Macrocell (ETM) and parallel tracing port (PTP). To address this issue, in this work, we present FrankenTrace, a technique for generating full, noninvasive, cycle-level program counter traces and full, cycle-level data transfer traces of varying invasiveness on SoCs with only low-speed debug components, namely Debug Watchpoint and Trace unit (DWT), Instrumentation Trace Macrocell (ITM), Single Wire Output (SWO), and an inexpensive probe. We demonstrate the technique by tracing software running on a node of the 1KT testbed.

References

[1]
2023. Orbcode. https://orbcode.org/.
[2]
Cédric Adjih, Emmanuel Baccelli, Eric Fleury, Gaetan Harter, Nathalie Mitton, Thomas Noel, Roger Pissard-Gibollet, Frédéric Saint-Marcel, Guillaume Schreiner, Julien Vandaele, and Thomas Watteyne. 2015. FIT IoT-LAB: A Large Scale Open Experimental IoT Testbed. In Proc. IEEE WF-IoT ’15. IEEE.
[3]
Paramasiven Appavoo, Ebram Kamal William, Mun Choon Chan, and Mobashir Mohammad. 2018. Indriya2: A Heterogeneous Wireless Sensor Network (WSN) Testbed. In Proc. TridentCom ’18. Springer, Cham.
[4]
ARM. 2018. ARMv7-M Architecture Reference Manual, Issue E.d.
[5]
ARM. 2023. External Trace Width and Bandwidth. https://perma.cc/6FQS-CD4U.
[6]
Mateusz Banaszek, Wojciech Dubiel, Jacek Łysiak, Maciej Dębski, Maciej Kisiel, Dawid Łazarczyk, Ewa Głogowska, Przemysław Gumienny, Cezary Siłuszyk, Piotr Ciołkosz, Agnieszka Paszkowska, Inga Rüb, Maciej Matraszek, Szymon Acedański, Przemysław Horban, and Konrad Iwanicki. 2021. 1KT: A Low-Cost 1000-Node Low-Power Wireless IoT Testbed. In Proc. MSWiM ’21. ACM.
[7]
FTDI. 2019. FT232H Single Channel Hi-Speed USB to Multipurpose UART/FIFO IC Datasheet.
[8]
FTDI. 2020. FT232R USB UART IC Datasheet.
[9]
Infineon (Cypress). 2021. EZ-USB™ FX2LP USB 2.0 Peripheral Controller.
[10]
Texas Instruments. 2016. CC2650 SimpleLink™ Multistandard Wireless MCU Datasheet.
[11]
Li Yi, Junyan Ma, and Te Zhang. 2019. HATBED: A Distributed Hardware Assisted Testbed for Non-Invasive Profiling of IoT Devices. In Proc. CPS-IoTBench ’19. ACM.

Cited By

View all
  • (2024)TWFuzz: Fuzzing Embedded Systems with Three WiresProceedings of the 25th ACM SIGPLAN/SIGBED International Conference on Languages, Compilers, and Tools for Embedded Systems10.1145/3652032.3657568(107-118)Online publication date: 20-Jun-2024

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
CPS-IoT Week '23: Proceedings of Cyber-Physical Systems and Internet of Things Week 2023
May 2023
419 pages
ISBN:9798400700491
DOI:10.1145/3576914
Publication rights licensed to ACM. ACM acknowledges that this contribution was authored or co-authored by an employee, contractor or affiliate of a national government. As such, the Government retains a nonexclusive, royalty-free right to publish or reproduce this article, or to allow others to do so, for Government purposes only.

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 09 May 2023

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. ARM Cortex-M
  2. DWT
  3. ETM
  4. ITM
  5. cycle-level trace
  6. embedded debugging
  7. execution trace
  8. low-cost tracing probe
  9. memory trace

Qualifiers

  • Research-article
  • Research
  • Refereed limited

Funding Sources

Conference

CPS-IoT Week '23
Sponsor:

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)281
  • Downloads (Last 6 weeks)35
Reflects downloads up to 25 Dec 2024

Other Metrics

Citations

Cited By

View all
  • (2024)TWFuzz: Fuzzing Embedded Systems with Three WiresProceedings of the 25th ACM SIGPLAN/SIGBED International Conference on Languages, Compilers, and Tools for Embedded Systems10.1145/3652032.3657568(107-118)Online publication date: 20-Jun-2024

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

HTML Format

View this article in HTML Format.

HTML Format

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media