arrow
Return

Runtime Firmware Update for 32-Bit Microcontrollers with Instruction Cache Under Concurrent Task Execution

delete2026-09-15
delete0
delete
OA
AI
B
Bernardino Pinto Neves *
V
Victor D. N. Santos
J
José Eduardo G. Oliveira
A
António Valente
DOI:10.3390/s26185813delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
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.
Keywords:
runtime firmware update
smart sensors
Internet of Things
real-time systems
concurrent tasks
in-application programming

Journal

Sensors cover
Sensors
IF:
3.5
Papers:
7.2W
Citations:
20.9W

Organization

U
University of Tras-os-Montes and Alto Douro
Scholars:
289
Papers: 96
Citations: 5
P
Polytechnic University of Coimbra
Scholars:
88
Papers: 54
Citations: 0
E
eneida grid intelligence s.a.
Scholars:
2
Papers: 1
Citations: 0
researcher View more organizations
Cited Papers

Cited Papers

errShare
errSave
Innovative Firmware Update Method to Microcontrollers during Runtime
err
err0
PREAI
errNeves,Bernardino Pinto; Santos,Victor D. N.; Valente,António
errShare
errSave
researcher View more