Runtime Firmware Update for 32-Bit Microcontrollers with Instruction Cache Under Concurrent Task Execution.
Bernardino Pinto Neves, Victor D N Santos, José Eduardo G Oliveira, António Valente
Engineering Department, School of Sciences and Technology, University of Trás-os-Montes and Alto Douro (UTAD), Quinta de Prados, 5000-801 Vila Real, Portugal. · Coimbra Institute of Engineering, Polytechnic University of Coimbra, Rua Pedro Nunes-Quinta da Nora, 3030-199 Coimbra, Portugal.
Key points
From the paper's conclusion- The mechanism also incorporates instruction cache invalidation, dynamic task validation and fault recovery procedures.
Abstract
Smart sensor devices increasingly require remote firmware updates to deploy new functionality, security patches and algorithmic improvements without interrupting services. Runtime firmware updates remain a significant challenge in embedded sensing systems, particularly in real-time and high-availability applications where service interruption and system reboot are undesirable. This paper presents an innovative runtime firmware update mechanism for 32-bit embedded systems architecture and integrated with a custom Runtime Scheduler (RTS). The proposed approach enables dynamic Flash Program Memory (FPM) reprogramming without reboot while preserving concurrent task execution, making it suitable for intelligent sensors and edge-based IoT devices requiring continuous operation. Three update granularities, application, function and row levels, were implemented and experimentally evaluated. Reducing update granularity significantly decreased both system downtime and update data size. For the demonstration update developed to validate the concept, function-level updates reduced the transmitted patch size to approximately 35% of the data that would have been required for the equivalent application-level update, while row-level updates reduced the maximum continuous system unavailability time to approximately 16 ms by distributing FPM write operations across multiple RTS cycles. The mechanism also incorporates instruction cache invalidation, dynamic task validation and fault recovery procedures. Experiments using an intelligent power quality monitoring sensor testbed demonstrate its feasibility while improving availability, reducing update overhead and maintaining operational continuity.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Secure Over-the-Air (OTA) Firmware Update Mechanism for Resource-Constrained Embedded DevicesSCCTS Journal of Embedded Systems Design and Applications · 2026
- A Proposal of Secure and Automated Over-the-Air Firmware Update Mechanism for IoT Devices Using Continuous Integration and Continuous DeliverySensors · 2026
- Secure Boot and Firmware Update Framework for ARM Cortex-M Embedded IoT DevicesProgress in Electronics and Communication Engineering · 2026
- Towards a Memory-Safe IEEE 802.15.4 TSCH MAC Layer with Hardware-Determined Timing in Rust.Sensors (Basel, Switzerland) · 2026
- Hybrid Framework for Secure Low-Power Data Encryption with Adaptive Payload Compression in Resource-Constrained IoT SystemsSensors · 2026
- FreeSBee: A Constant-Time Compilation PipelinearXiv · 2026