CPSLab Cyber-Physical Systems Lab, Boston University

Publications Memory & Shared-Resource Management

Investigating and Mitigating Contention on Low-End Multi-Core Microcontrollers

Daniel Oliveira, Weifan Chen, Sandro Pinto, Renato Mancuso

Cyber-Physical Systems and Internet of Things Week 2023, May 2023, San Antonio, TX, USA

Read the PDF Publisher page (DOI) Code and artifacts Cite

Figure 3: System overview of the proposed architecture.

Abstract

In this paper, we investigate the problem of contention and loss of predictability in modern microcontrollers (MCU). To address this issue, we first present a framework to empirically analyze and observe the impact of interference on low-end MCUs. With carefully crafted evaluation scenarios, we conduct experiments on an Arm’s Musca-A1 platform and provide sufficient evidence that even with common application setups, interference can slowdown applications by several orders of magnitude. Furthermore, we propose an architecture for a novel mitigation system that enables applications to monitor their timing progress slackness and mitigate temporal interference over shared resources. This is achieved by suspending less critical cores and reconfiguring their priority on the bus when intolerable contention delays are present. Our findings emphasize the critical importance of considering the impact of shared resources, such as interconnects and memory access patterns, on low-end multi-core MCUs. It is, therefore, crucial to design mechanisms that can allow MCU-based applications to regain control of their timeliness.

Code and hardware artifacts

Cite this paper

@inproceedings{Cont_MCUs_RAGE23,
  title     = {{Investigating and Mitigating Contention on Low-End Multi-Core Microcontrollers}},
  author    = {Oliveira, Daniel and Chen, Weifan and Pinto, Sandro and Mancuso, Renato},
  booktitle = {Cyber-Physical Systems and Internet of Things Week 2023},
  year      = 2023,
  month     = may,
  pages     = {221--226},
  publisher = {Association for Computing Machinery},
  address   = {San Antonio, TX, USA},
  doi       = {10.1145/3576914.3587513},
  url       = {https://doi.org/10.1145/3576914.3587513}
}

Download .bib