{"docs":[{"id":114,"title":"Over-the-Air Firmware Updates: Designing Them In From Day One","heading":"Over-the-Air Firmware Updates: Designing Them In From Day One","subheading":null,"category":"Embedded Systems","body":{"root":{"type":"root","children":[{"type":"heading","tag":"h3","version":1,"children":[{"type":"text","text":"Sizing the flash","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"With two slots, the application can be at most roughly half of the flash left after the bootloader and any data storage. On a 1 MB device with a 32 KB bootloader and 64 KB of storage, each slot is about 464 KB. Check that your firmware fits, with room to grow, before the part is chosen.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Where flash is too small for two slots, alternatives include an external flash chip to stage the image, or compressed and differential updates. Each adds complexity that should be weighed against a larger part.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"tags":"Embedded Systems, Firmware, OTA, Security","cardCta":{"label":null,"link":null},"pageCta":{"label":"Talk to AAVICO engineering","link":"/contact"},"excerpt":"A product that cannot be updated safely in the field cannot be fixed or secured. Update capability has to be built into the memory map from the start.","featuredImage":null,"type":"Blog","readTime":"3 min read","publishedAt":"2026-11-14T18:46:00.000Z","heroImage":null,"introText":"Connected products ship with bugs and face vulnerabilities discovered after launch. Over-the-air update is how both are dealt with, and it is one of the few features that cannot be added later, because it determines how flash memory is divided and how the device boots. A failed update must never leave a device unusable. This article covers the architecture that makes updates safe.","metrics":[{"id":"over-the-air-firmware-updates-designing-metric-1","value":"2 slots","label":"An A/B layout keeps the running firmware intact while the new image is written to the other slot.","icon":null},{"id":"over-the-air-firmware-updates-designing-metric-2","value":"2x","label":"A dual-slot design needs flash for two full images plus the bootloader.","icon":null},{"id":"over-the-air-firmware-updates-designing-metric-3","value":"SHA-256","label":"A cryptographic hash verifies that the image arrived complete and unaltered.","icon":null},{"id":"over-the-air-firmware-updates-designing-metric-4","value":"Signature","label":"A digital signature proves the image came from you. A hash alone does not.","icon":null}],"gallery":[],"challenge":{"root":{"type":"root","children":[{"type":"paragraph","version":1,"children":[{"type":"text","text":"The naive approach overwrites the running firmware in place. If power fails or the download is corrupted part-way through, the device is left with half an image and no way to recover without physical access.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Updates are also an attack surface. A device that accepts any image it is offered can be taken over by anyone who can reach it, so the device must verify who produced the image before running it.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"blockquote":{"quote":"An update is safe only if the device can always boot something. Design for the failure, not the success.","author":null,"role":"AAVICO Engineering"},"supportImage1":null,"deliverables":{"root":{"type":"root","children":[{"type":"paragraph","version":1,"children":[{"type":"text","text":"Fix the memory map: bootloader, two application slots, and persistent data that must survive an update.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Implement verification in the bootloader: check the signature and hash before marking a new image as bootable.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Add rollback: the new image must confirm that it started correctly, or the bootloader returns to the previous one.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"results":[{"id":"over-the-air-firmware-updates-designing-result-1","title":"Recoverability","description":"An interrupted or bad update leaves the device running its previous firmware."},{"id":"over-the-air-firmware-updates-designing-result-2","title":"Security","description":"Only images signed with your key will run, whatever the transport."},{"id":"over-the-air-firmware-updates-designing-result-3","title":"Fleet Control","description":"Fixes and features reach devices in the field without a service visit."},{"id":"over-the-air-firmware-updates-designing-result-4","title":"Longevity","description":"Security updates can continue for the supported life of the product."}],"lookingAhead":{"root":{"type":"root","children":[{"type":"paragraph","version":1,"children":[{"type":"text","text":"Protect the signing key. If it is lost you cannot update your devices; if it is stolen, someone else can.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Roll updates out in stages and monitor the results, so a faulty release reaches a few devices rather than all of them.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"supportImage2":null,"testimonial":{"quote":null,"author":null,"role":null,"photo":null},"challengesSolved":[{"id":"over-the-air-firmware-updates-designing-challenge-1","title":"Devices bricked by an interrupted update","description":null,"icon":null},{"id":"over-the-air-firmware-updates-designing-challenge-2","title":"Firmware accepted without verifying its source","description":null,"icon":null},{"id":"over-the-air-firmware-updates-designing-challenge-3","title":"Flash too small for a second image","description":null,"icon":null},{"id":"over-the-air-firmware-updates-designing-challenge-4","title":"No way back from a bad release","description":null,"icon":null}],"relatedPosts":[],"contactUs":{"show":true},"updatedAt":"2026-11-14T17:38:33.345Z","createdAt":"2026-11-14T17:38:33.345Z"}],"hasNextPage":false,"hasPrevPage":false,"limit":10,"nextPage":null,"page":1,"pagingCounter":1,"prevPage":null,"totalDocs":1,"totalPages":1}