PlatformsFaststream SiliconFaststream RadioFaststream VisionConnected EdgeFaststream SecureMobility & Rail
ProductsSemiconductor IPWireless & RANEdge & GatewaysTracking & IdentificationSoftware & FrameworksConnected Systems
TechnologyRTL to GDSIIVerification methodologyDFT and silicon testLow-power designMixed-signal integrationDesign enablement5G protocol stackWireless and RF architectureBaseband and low PHYForward error correctionControl and data planeHigh-speed interfacesFirmware and bootSilicon root of trustSoftware-defined vehicleAutomotive OTAFunctional safety
AIAI Engineering ServicesEdge AI & Embedded MLComputer Vision EngineeringSensor Fusion & PerceptionAI Silicon & AccelerationMLOps for DevicesAI Visual InspectionPredictive MaintenanceDriver MonitoringVideo Analytics & Safety
SolutionsSemiconductorIndustrial AIConnected ProductsAsset TrackingAutomotive & MobilitySmart InfrastructureSecure IdentityWireless & SatelliteSmart WashroomsFuel ManagementSmart BuildingsWorker SafetyEnergy MonitoringSmart AgricultureSmart CityAutonomous PlatformsAssembly AutomationLiDAR Rail SafetyHardware Wallet
IndustriesSemiconductorTelecommunicationsIndustrial & ManufacturingAutomotive & MobilityTransportation & RailAerospace & DefenceHealthcare & MedicalEnergy & UtilitiesOil & GasRetailConsumer ElectronicsMedia & EntertainmentSmart Infrastructure & IoT
ServicesSystem Integration overviewASIC & SoC DesignFPGA DesignFPGA-to-ASIC ConversionAnalog, Mixed-Signal & RFHardware & High-Speed PCBEmbedded SoftwareCloud, OTA & Device ManagementManufacturing TransitionHow we engage
InsightCase StudiesKnowledge CenterWhite PapersGlossaryNewsletterResources & Support
CompanyAbout FaststreamEngineering ExcellenceLeadership & OrganisationHow We EngageQuality & ComplianceStandards & EcosystemPartners & EcosystemTrust CentreLocations & DeliveryNewsroom & MediaCareers
ContactStart a projectHow we engage
Talk to an engineer
SOFTWARE

Firmware and Boot Architecture

Boot architecture is the one part of a product that cannot be fixed later. The immutable first stage, the partition layout, the signing scheme and the rollback path are all fixed before the first unit ships, and a design that got them wrong is a design that either cannot be updated or cannot be trusted.

Boot ROMVerified bootBootloaderBSPDFURollback
Verified boot chain — each stage validates the next
Boot ROMMask-programmed, immutable, permanent commitmentFirst-stage bootloaderClocks, DRAM, minimum peripherals — small enough to auditSecond-stage bootloaderA/B slot selection, update state machine, rollbackOS or RTOSKernel and board support packageDrivers and middlewarePeripherals, stacks, storage, connectivityApplicationRuns on a chain that has verified everything beneath itNothing above the boot ROM can repair a mistake made in it.
THE BOOT CHAIN

Each stage verifies the next.

01

Boot ROM

Mask-programmed, immutable, and therefore the root of the chain. It cannot be updated after manufacture, so it does as little as possible: initialise the minimum hardware, locate the next stage, verify its signature, transfer control. Everything it does is a permanent commitment.

02

First-stage bootloader

Brings up clocks, DRAM and the minimum peripherals needed to load further code. Verified by the boot ROM. Small enough to audit line by line, because a defect here is not field-repairable in most designs.

03

Second-stage bootloader

Selects between application images, handles the update state machine, and implements rollback. This is where A/B slot logic lives, and where an interrupted update must leave the device bootable.

04

Operating system or RTOS

Kernel and board support package brought up, with device tree or platform configuration describing what is actually fitted.

05

Drivers and middleware

Peripheral drivers, protocol stacks, storage and connectivity brought into service in a defined order with defined failure behaviour.

06

Application

Product functionality, by which point the chain has established that every stage below it is the one that was signed.

UPDATE SCHEMES

Choosing the update architecture.

A flash budget decision as much as a software one, made when the memory part is selected.

Firmware update scheme comparison
SchemeFlash costPower-loss safeTypical fit
Dual image (A/B)Two full application slotsYes, with atomic switchoverThe default choice wherever the flash can be afforded
Image plus recoveryOne slot plus a minimal recovery imageYes, via a degraded recovery pathCost-constrained designs where two full slots will not fit
Delta or differentialSmaller transfers; dual slots still requiredYesConstrained links where transfer size rather than flash is the limit
In-place single imageLowestNoAvoid in fielded products; acceptable only with physical recovery access

Power loss mid-write is the most common way to brick a fleet. A dual-image scheme with atomic switchover removes the failure mode entirely; careful coding in a single-image scheme does not.

SCOPE

What firmware engineering covers.

THE TENSION

Anti-rollback against recoverability.

Secure update wants monotonic version numbers: once a device has run version five, it must refuse version four, because version four is where the vulnerability was. Recoverability wants the opposite: if version five is broken, going back is the only way to save the unit.

Reconciling them needs a distinction between a security downgrade and a functional rollback. A monotonic security counter, incremented only on releases that fix a vulnerability, allows rollback within a counter generation while still refusing a genuinely unsafe downgrade.

Designing that in is cheap. Retrofitting it after a bad release has already reached the field is not, because by then the fleet is split across versions and the counter has no agreed meaning.

WHERE THIS APPLIES

Industries this serves.

COMMON QUESTIONS

What engineers ask about this.

01

What is a verified boot chain?

A sequence in which each stage cryptographically verifies the next before transferring control, rooted in an immutable boot ROM. It establishes that the code running is the code that was signed, and it is the mechanism a silicon root of trust enables.

02

Why can boot architecture not be changed later?

Because the boot ROM is mask-programmed and immutable, and because partition layout, signing scheme and rollback path are fixed in the first firmware and the flash part selection. Changing them on deployed units generally requires physical access.

03

What is the safest firmware update scheme?

Dual image with atomic switchover. The new image is written to the inactive slot, verified, then activated by an atomic switch, so power loss during the write leaves the running image untouched. Single-image in-place update cannot offer that guarantee.

04

How do you allow rollback without allowing a downgrade attack?

By separating functional version from a monotonic security counter that only increments on releases fixing a vulnerability. Rollback within a counter generation is permitted; going below the counter is refused.

KEEP READING

Related work.

BUILD WITH FASTSTREAM

Bring us the difficult part.

Tell us the specification, the constraint and the deadline. Programmes that cross silicon, radio, embedded and AI are where Faststream is strongest.