FIRMWARE • SECURITY

Secure OTA Updates and Bootloaders

Ship fixes to devices in the field without bricking them or opening them to attackers.

What a safe update system needs

  • An OTA system must survive power loss at any moment. Dual-bank or swap-based layouts with a confirmed-boot step make an interrupted update recoverable.
  • Images must be signed and verified before they run. Without it, anyone who can reach the update channel controls your device.
  • Rollback protection stops downgrade attacks that reinstall a known-vulnerable version.
  • Regulation is moving this way. Many markets now expect devices to be updatable and to ship without default passwords, so an update path is becoming a compliance feature.

The building blocks

We frequently build on MCUboot, an open-source bootloader supported on many Cortex-M parts, or on vendor equivalents, instead of writing a bootloader from scratch.

Delivery channels

ChannelNotes
Wi-Fi / Ethernet over HTTPS or MQTTMost common; pair with cloud device management
Cellular (LTE-M, NB-IoT)Plan for data cost; use delta updates where possible
Bluetooth LEPhone acts as the transport; slower, needs resumable transfer
LoRaWANVery low bandwidth; firmware-update-over-the-air (FUOTA) multicast support varies
Wired (UART, USB, CAN)Factory and service updates

Key management

Security rests on protecting the private signing key. We recommend keeping it in an HSM or a managed key service, separating development and production keys, and documenting how a key would be rotated or revoked. The device side stores only the public key, ideally in immutable memory or a secure element.

Testing an update system

We test by cutting power at random points during update, corrupting images, sending images signed with the wrong key, and replaying older versions. An update system that has only been tested on the happy path has not been tested. See also our firmware development service.

Sources and further reading

Last reviewed: October 2026. Regulations and product availability change; confirm current rules with the issuing authority before you commit to a design.

Common Questions

Frequently Asked Questions

What is the difference between secure boot and OTA?

Secure boot verifies firmware authenticity at every startup. OTA is the mechanism that delivers and installs new firmware. A good design uses both, so updates can only install trusted images.

Can I add OTA to a device already in the field?

Only if the existing firmware can be updated or already contains a bootloader. Otherwise a service visit is needed. For new designs we reserve flash and plan the partition layout from the start.

How large is a typical update?

It depends on the application. Delta updates can reduce transfer size significantly for constrained links such as cellular or LoRaWAN, at the cost of more complex tooling.

Is secure boot enough to make a device secure?

No. It is one layer. Secure communications, unique device credentials, debug-port locking and a patch process are also needed.

Need a safe way to update devices in the field?

Share your MCU, link type and fleet size. We will design the update path and test it against failure cases.

REQUEST AN ENGINEERING CONSULTATION

Related Solutions

← All engineering solutions