Over-The-Air Bootloaders

Enhancing MCU Functionality with OTA Updates and Bootloaders

The microcontroller (MCU) domain is evolving, with new features and technologies being introduced daily. Over-the-air (OTA) updates play a major role in today’s technological prowess. The Internet of Things has already revolutionized how devices operate and co-exist in a system. OTA updates add another dimension by making updates seamless and eliminating the need for physical connections or any manual intervention.

Bootloaders can be used to upgrade firmware on a target device without the need for an external programmer or debugger. Commonly used with MCUs, a bootloader is the code in charge of loading and executing an application program. Bootloaders can include additional features such as validating the code integrity and authenticity, and in some cases, the bootloader can be tasked with performing an OTA application update.

Bootloaders have always been crucial in microcontroller technology to ensure the proper functioning of devices. With over air capability, they make firmware updates secure and efficient. The benefits of Over the Air Bootloaders are as follows

  • Convenience: OTA updates can be deployed without user intervention, making the process seamless and user-friendly.

  • Cost-Effectiveness: Reducing the need for physical servicing saves on logistics and labor costs associated with manual updates.

  • Security: Regular OTA updates allow for quick patches to security vulnerabilities, keeping devices safe from emerging threats and in compliance with emerging security legislation.

  • Scalability: OTA bootloaders can simultaneously handle updates for thousands or even millions of devices, making them ideal for large-scale deployments.

  • Extended Device Lifecycle: With the ability to push new features and improvements, manufacturers can extend the useful life of their products.

Applications of OTA Bootloaders

  • Internet of Things (IoT) Devices: IoT devices, such as smart thermostats, home security cameras and wearable fitness trackers, also rely on OTA bootloaders to stay up to date. This ensures that the device continues to improve long after the initial purchase.

  • Automotive Industry: Modern vehicles are equipped with numerous electronic control units (ECUs) that manage everything from engine function to in-car entertainment systems. OTA bootloaders are increasingly being used by car manufacturers to update these systems without requiring the owner to visit a dealership. Microchip has examples to demonstrate the  implementation of the customer bootloader. Refer to the Secure CAN Bootloader, which demonstrates the use of the internal HSM of the PIC32CX SG61 for securely transferring application firmware between the host and client over a CAN bus.

  • Industrial and Medical Equipment: In industries where equipment downtime can be costly or dangerous, OTA bootloaders are a critical component. For instance, in the medical field, devices like pacemakers and insulin pumps can receive firmware updates that refine their algorithms for better patient care. Similarly, in manufacturing, machinery can be updated to improve efficiency or add new capabilities, all without interrupting the production line.

  • Smartphones and Tablets: One of the most common examples of OTA bootloader usage is in smartphones and tablets. The updates are sent across the world simultaneously for devices to download.

For IoT and Medical equipment, security implementation over bootloader is the key. We have a Secure Boot implementation tutorial that shows how to create a Secure Bootloader.

Over-the-air (OTA) capabilities have revolutionized how we manage and update devices, making it more convenient and secure. With further developments, we can expect OTA bootloaders to be more secure and reliable. In a plethora of features, OTA Bootloaders are one of the key components in the evolution of microcontroller technology.

The bootloader solution developed as part of MPLAB Harmony framework covers solutions for multiple product families, 32-bit microcontrollers, microprocessors and wireless devices.