Skip to main content

A Practical Firmware Update Strategy for Connected Devices

Updated 7 min readMarkdown

Firmware updates are one of the most important parts of a connected product’s lifecycle. They allow teams to fix defects, improve performance, add features, and address security vulnerabilities after devices are deployed.

However, firmware updates can also create serious risks. A poorly designed update process can leave devices offline, corrupt data, expose security weaknesses, or make a product impossible to recover.

A good firmware update strategy is not only about sending a new binary to a device. It is a complete system for versioning, validation, delivery, installation, rollback, monitoring, and long-term maintenance.

Start with update requirements

Before designing an update system, define what the product needs.

Ask:

  • How often will firmware be updated?
  • Will updates be mandatory or optional?
  • Can the device tolerate downtime during an update?
  • How much storage is available for the new firmware image?
  • Is the device battery-powered or permanently powered?
  • What happens if the update fails midway?
  • Does the device need to continue operating during the update?
  • How many devices must be updated, and how quickly?
  • Are there regulatory or safety requirements for the product?

These answers determine whether the product needs a simple update mechanism or a more robust dual-bank, staged-rollout architecture.

Use versioning from day one

Every firmware build should have a clear, unique version identifier.

At a minimum, include:

  • Firmware version
  • Hardware revision
  • Build timestamp
  • Git commit or build ID
  • Target microcontroller or board variant
  • Security patch level
  • Configuration or calibration version, where applicable

Versioning helps the cloud platform determine which devices need updates, prevents incompatible installations, and makes field troubleshooting much easier.

Avoid treating versioning as a manual task. Build it into the firmware build pipeline so every release is traceable.

Sign every firmware image

Firmware images should be cryptographically signed before release. The device should verify the signature before accepting or installing an update.

A secure update process should include:

  • A private signing key held securely by the product team
  • A public verification key stored securely on the device
  • Signed firmware images
  • Verification before installation
  • Verification again before boot
  • Protection against modified or unauthorised firmware
  • Secure key storage on the device

Never rely only on HTTPS or an authenticated cloud connection. Transport security protects data in transit, but firmware signing protects the integrity of the update itself.

Use secure boot where possible

Secure boot helps ensure that a device only runs firmware that has been verified by the manufacturer.

In a secure boot flow, the device verifies the bootloader, application image, or both before execution. If verification fails, the device should enter a safe recovery state rather than running unverified code.

Secure boot is especially important for products that handle sensitive data, control physical equipment, operate in industrial environments, or remain deployed for many years.

Design for failed updates

Updates can fail because of power loss, weak connectivity, storage errors, incompatible hardware, or an unexpected fault in the new firmware.

The device should never be left in an unrecoverable state.

A reliable update strategy should include:

  • A known-good recovery image or bootloader
  • Verification before switching to the new firmware
  • Rollback to the previous firmware version
  • A defined boot attempt limit
  • Automatic recovery after repeated boot failures
  • Status reporting to the cloud
  • Safe behaviour if the update is interrupted

A common approach is to keep the current firmware intact until the new image has been fully verified. Only then should the device switch its active boot partition.

Consider a dual-bank architecture

For devices with enough flash storage, a dual-bank update architecture is often the safest approach.

In this model:

  • Bank A contains the active firmware
  • Bank B receives the new firmware
  • The device verifies the new image
  • The bootloader switches to Bank B only after successful verification
  • The previous image remains available for rollback

This approach is more storage-intensive, but it substantially reduces the risk of bricking a device during an update.

For memory-constrained devices, teams may need a compressed update, partial update, or recovery-image strategy. The trade-off should be decided early in hardware and firmware design.

Use staged rollouts

Do not update the entire device fleet at once. Even a well-tested firmware release can reveal an issue in a specific hardware revision, network environment, or usage pattern.

Use a staged rollout:

  1. Update a small internal test group.
  2. Release to a limited customer pilot group.
  3. Monitor crash rates, connectivity, battery use, and error reports.
  4. Expand gradually to larger device groups.
  5. Pause or roll back if key metrics deteriorate.

Staged rollouts reduce the impact of an unexpected issue and give the team time to respond before a problem affects the full fleet.

Monitor update health

Firmware update monitoring should be part of the product’s observability strategy.

Track:

  • Current firmware version by device
  • Update success and failure rates
  • Devices stuck in an update state
  • Boot failures after an update
  • Rollback events
  • Connectivity failures during updates
  • Battery level before update initiation
  • Storage availability
  • Time taken to complete updates
  • Error codes and device logs

Alerts should be actionable. For example, an increase in failed updates for one hardware revision should trigger investigation before the rollout continues.

Protect the update channel

The update channel must be secured end to end.

Key controls include:

  • Mutual TLS or strong device authentication
  • Encrypted firmware transfer
  • Signed firmware images
  • Authorisation checks before download
  • Protection against replay attacks
  • Rate limiting and abuse monitoring
  • Separate permissions for update deployment
  • Audit logs for update actions

The cloud platform should know which devices are authorised to receive an update, which firmware version they should receive, and whether the update has been approved.

Test updates before deployment

Testing should cover both the update process and the updated firmware.

Test scenarios should include:

  • Successful update from each supported version
  • Update after a long period of device operation
  • Update with weak or intermittent connectivity
  • Power loss during download and installation
  • Low-storage conditions
  • Rollback after an intentional failure
  • Update across hardware revisions
  • Update while the device is performing its primary function
  • Update with multiple devices connected simultaneously
  • Security testing of the update endpoint and firmware package

A firmware update that works in a lab does not guarantee that it will work safely across every deployed device.

Plan for long-term maintenance

Connected devices may remain in the field for years. Plan for the full lifecycle, not just the first release.

Maintain:

  • A firmware release calendar
  • A security patching process
  • Compatibility testing across hardware revisions
  • Documentation for each firmware release
  • A rollback and incident-response plan
  • Clear ownership for update decisions
  • End-of-life and migration planning

A product without a maintenance plan may become difficult to support as components change, security requirements evolve, and customer expectations grow.

Common mistakes to avoid

Avoid these common firmware update mistakes:

  • Sending unsigned firmware images
  • Using the same credentials across all devices
  • Updating the entire fleet at once
  • Failing to test rollback
  • Ignoring low-battery or power-loss scenarios
  • Not tracking firmware versions
  • Treating updates as a one-time launch task
  • Designing an update process after hardware is finalised
  • Assuming every device has enough storage for a full update

Final thoughts

A firmware update strategy is a core part of connected product design. It affects device reliability, security, operational cost, customer trust, and the ability to improve the product after deployment.

The most reliable connected products are designed with updates in mind from the beginning: signed images, secure boot, version control, rollback capability, staged rollouts, and continuous monitoring.

If you are developing a connected product and need support with firmware architecture, secure OTA updates, embedded systems, or device-to-cloud engineering, you can explore Jenex Technovation’s embedded firmware solutions.

About the author

  • Jenex Technovation is a premier engineering firm specializing in the Hardware-Software Bridge, providing end-to-end IoT, embedded firmware, and custom hardware solutions for global enterprises.

No comments yet. Be the first to comment.