Electronics (Apr 2024)

Innovative Firmware Update Method to Microcontrollers during Runtime

  • Bernardino Pinto Neves,
  • Victor D. N. Santos,
  • António Valente

DOI
https://doi.org/10.3390/electronics13071328
Journal volume & issue
Vol. 13, no. 7
p. 1328

Abstract

Read online

This article presents a new firmware update paradigm for optimising the procedure in microcontrollers. The aim is to allow updating during program execution, without interruptions or restarts, replacing only specific code segments. The proposed method uses static and absolute addresses to locate and isolate the code segment to be updated. The work focuses on Microchip’s PIC18F27K42 microcontroller and includes an example of updating functionality without affecting ongoing applications. This approach is ideal for band limited channels, reducing the amount of data transmitted during the update process. It also allows incremental changes to the program code, preserving network capacity, and reduces the costs associated with data transfer, especially in firmware update scenarios using cellular networks. This ability to update the normal operation of the device, avoiding service interruption and minimising downtime, is of remarkable value.

Keywords