PCBA Firmware Changes During Production: Reflash and Release

On this page

A new firmware file arrives while some boards are waiting for programming, others have passed functional test, and finished units are already packed. Hold potentially affected stock, identify the physical boards covered by the change, and approve the reprogramming and repeat-test route before replacing the active programming job. Previous test results remain part of the production history, but they do not establish acceptance of a modified board.

For device, image, access and verification requirements, see APTPCB's IC programming service. A change during an existing order also requires accounting for each affected unit through reprogramming, testing and shipment.

What should you stop when a firmware change arrives?

Hold potentially affected material while the authorized product and quality owners establish the change scope. Specify whether the hold applies to programming, downstream processing, packing, shipment or several operations. An instruction to use the latest file does not resolve how existing boards should be treated.

Capture the production status before units move between stations. Include the work order, assembly and hardware revisions, current firmware release, programming job and test revisions, physical locations, quantities and available board identities. Record the snapshot owner and time. Log subsequent movements so the inventory remains accurate throughout the change.

If the affected population cannot yet be identified, document the uncertainty and hold the potentially affected stock. Do not assign unverified serial numbers merely to complete a release spreadsheet. Lot or container identification may be the only available evidence initially. Record its limitations and establish reliable unit identification before further separation or processing.

Containment must also cover every programming route. Identify active jobs on production stations, offline programmers, repair benches and backup equipment. Preserve superseded jobs in controlled history and remove them from active selection for affected work. Updating the primary programming station does not update other stations automatically.

Which boards need reprogramming, and which can stay as they are?

The product owner determines whether the previous release remains acceptable and for which destinations. Manufacturing applies that decision to identifiable stock. Approval of a new firmware image does not automatically authorize shipment of earlier units, scrapping existing stock or erasing device data.

Assign each board one current physical production state. Keep repair history, previous failures and special data requirements in separate fields. A board counted in both tested and repaired groups would inflate the quantity.

A 240-board order at the moment of change

The order, identifiers and quantities below are fictional. They illustrate production reconciliation, not an APTPCB production record or a prescribed sampling plan. All 240 boards remain at the factory, and none has shipped. The authorized change requires every deliverable board in this order to receive the new firmware release.

Current state at the hold Boards Action to define before resuming
Assembled, never programmed 60 Use the approved new programming job after initial verification, then complete the normal production route.
Programmed with the old release, not functionally tested 90 Assess erase coverage and per-unit data requirements, then reprogram, verify and complete the approved functional test.
Old release passed functional test, unpacked 50 Withdraw release eligibility, approve the reflash and repeat-test route, then reassess acceptance.
Old release passed functional test, packed 40 Locate the physical units in each package, control unpacking and re-identification, complete the approved changed-board route and repack.
Total physical boards 240 Reconcile all four groups against a controlled identity list.

Suppose 12 of the 50 tested, unpacked boards have previously undergone hardware repairs. These 12 are part of the 50. The order still contains 240 boards, not 252. Retain the repair flag and associated history because they may affect work instructions and acceptance checks.

Loose preprogrammed ICs form a separate material population. Count them by part number, programmed release and controlled lot or container. Determine whether the supported process permits reprogramming or whether the components must remain on hold for another approved use. Do not add loose IC quantities to assembled-board totals. Any reel label identifying a firmware release must reflect the disposition of its actual contents.

If units have already shipped, account for them separately and notify the responsible product and quality owners. Factory containment does not determine the need, urgency or scope of a field action. Preserve the actual shipment identities and dates; subsequent factory changes cannot alter the historical shipment record.

How do you define a firmware cut-in that survives out-of-order production?

Define the cut-in using a rule that can be verified against physical units and programming records. A work order, controlled sublot or explicit serial-number list can establish scope. A time-based instruction alone may misclassify boards waiting at repair benches, in production queues or at other stations.

Serial-number boundaries also require exception handling. Consider an instruction to apply the new firmware from serial A121 onward. Board A087 has just returned from repair and also requires the new release. A numerical range would exclude it. Update the approved membership list or document the exception explicitly, including its reason and authorization. Do not alter the serial number to force the board into the defined range.

In the fictional 240-board order, the scope is straightforward: every deliverable board requires the new release, including repaired units. However, the production-state snapshot still determines the work required for each board. The new programming job may be suitable for the 60 unprogrammed boards, while existing programmed boards require additional data-preservation steps.

If the customer authorizes both firmware releases, specify the destinations and quantities for each. Assign every board or controlled group unambiguously and verify package contents against that assignment. A shared PCB revision does not establish interchangeability when firmware, configuration or product variants differ.

What must be approved before you erase an existing board?

Determine what the target device currently contains and which memory regions the new programming job can alter. The application image may occupy only part of the device. Boot code, configuration, calibration values and unit identifiers may require different treatment. Confirm their actual storage locations with the product engineer.

Complete the following worksheet for the exact device and job, marking items that do not apply.

Item or memory region Decision required Evidence for the changed-board route
Application image Identify the released artifact and address ranges that replace the existing application. Approved artifact identity, memory map and verification coverage.
Bootloader or secondary image Decide whether to retain, update or replace it. Confirm compatibility with the application and programming sequence. Released version relationship and checks establishing the required combination.
Calibration or per-unit parameters Decide whether to preserve, migrate, regenerate or recalibrate. Identify who supplies authorized values. Value source, unit association, post-change checks and approved recovery action if values are unavailable.
Serial number or product configuration Preserve unit identity and confirm the product variant. Distinguish device factory IDs from customer-assigned identifiers. Before-and-after association and checks for unintended replacement or duplication.
Option bytes or similar device settings Identify which settings change, which remain unchanged and when they are applied. Exact-device instructions and a separate settings check where required.
Protected or irreversible fields Establish whether the approved operation is possible and what it could destroy or prevent. Device-specific engineering approval before any protection change; stop if the route remains unresolved.

STMicroelectronics UM2237 Rev 31, section 2.3.1, provides a specific tool example. It distinguishes selected-sector erase from full-chip erase. Its Verify after programming operation reads programmed memory and compares it byte by byte with the source file. Section 2.4 addresses option bytes separately. These instructions apply to STM32CubeProgrammer and do not establish erase or protection behavior for every programmable device.

Check the exact part number and device reference manual against the proposed job. Establish both erase coverage and write addresses. If preserved data shares an erase region with the application, omitting that data from the new image does not guarantee its survival. Engineering must approve the preservation or regeneration method and its verification.

Do not select skip erase simply to retain calibration data. Under UM2237, this option applies only when the target memory is already erased. It is not a validated preservation method for previously programmed boards.

A backup also needs a defined recovery process. Establish whether reading the data is permitted, which values can be retrieved, how each backup remains associated with its physical unit and how restoration will be verified. If readout protection prevents retrieval, stop and obtain a device-specific engineering decision. A generic unlock procedure may be destructive or unsupported and is not an acceptable substitute for that review.

Do not send secret keys or confidential firmware through an unrestricted initial inquiry. Agree on authorized handling methods and recipients first. Key provisioning, protected-device recovery and security validation require separately confirmed scope.

How should you prove the new programming job is ready?

Approve a compatible combination of firmware image, hardware, configuration, programming job and downstream test. Their revision identifiers do not need to follow the same numbering scheme, but the release record must establish which combination is approved.

The programming job must identify the exact approved artifact it loads. Before programming, compare its file digest with the approved release value and record the hash algorithm. A filename or version string alone does not identify the file contents. If the same stale image is used for both programming and comparison, write verification can pass without proving that the approved release was loaded.

Record file identity and target-device verification separately. Record the memory regions and configuration covered by the target check. For protected devices, agree on supported verification evidence and the approved operation sequence. Do not promise full readback where device protection prevents it.

Before resuming production, check the changed route on authorized initial units representing the conditions it must handle. An unprogrammed board cannot demonstrate calibration preservation during reprogramming of an already calibrated board. A trial before enclosure assembly also leaves programming access after closure untested.

Engineering and quality should select the initial units and review criteria according to the actual change. There is no universal first-article quantity for a firmware update. If a required production condition is excluded from the trial, keep that part of the route on hold until its feasibility and acceptance checks are established.

Confirm that every applicable station has the released programming job and can identify the correct board assignment. If the process requires automatic rejection of an old image or incorrect board assignment, demonstrate that control through an approved, controlled check. For a manual process, define the independent verification step and its record. Confirm which checks are actually implemented on the stations used for the order.

Which tests must be repeated after a firmware update?

Engineering and quality must approve the repeat-test scope before reprogramming begins. Base the decision on software changes, memory operations, configuration, physical access and existing product requirements. The FCT test-plan article explains how to define test stimulus, measurement, limits, fixtures and logs.

Link the new programming and test events to the same board identity as the previous results. Keep the earlier pass in history; the changed-board acceptance record needs the approved post-change checks.

Change or handling condition Question for the repeat-test plan
Application behavior changes Which affected functions, interfaces and approved regression checks must run with the new image?
Calibration retained or migrated How will unit-specific values and the required calibrated behavior be checked after reprogramming?
Bootloader or device settings change Which startup, boot-path and configuration checks establish the intended device state?
Enclosure opened or connectors disturbed Which assembly, connection, identification and final inspection checks must be repeated?
Board returns from hardware repair Which repair acceptance checks remain necessary alongside firmware verification and the approved repeat FCT?
Test software or limits change What authorizes the revised requirement, and how will the updated test setup be verified before production?

Do not change a pass/fail limit simply because the new image fails the existing test. First establish whether the product requirement changed, the test became incompatible, the fixture is incorrect or the board has a defect. Document the authorized resolution and release the corresponding test revision.

A programming pass confirms only its defined verification coverage. Functional testing establishes specified behavior under agreed conditions. The product owner remains responsible for software release validation and any product or system qualification beyond manufacturing acceptance. Successful reprogramming by an assembler does not replace those activities.

Define a disposition for failed attempts. Retain the original result, the reason for any authorized repeat, the changes made and the subsequent outcome. If a fixture problem invalidated a test, record the reason and correct the station before continuing. Repeatedly reflashing until a pass appears can conceal unresolved contact, power, hardware or software problems.

How do you reconcile the order before shipment?

Reconcile physical identities as well as quantities. Every in-scope board must have one current disposition, and every released unit must have the required programming and test evidence for its assigned configuration.

For the fictional 240-board order, suppose the authorized closure records show 231 boards released with the new firmware, 6 held for unresolved failures and 3 scrapped under approved dispositions. The total is 231 + 6 + 3 = 240. These illustrative figures are not production yield expectations.

Matching totals do not prove that the correct boards were assigned. A duplicated serial number and a missing serial number can cancel each other in a quantity check. Compare the unique board lists and confirm that the released, held and scrapped populations do not overlap. Together, they must account for the original in-scope population, with any authorized additions or corrections explicitly documented. Preserve the reasons for corrections rather than editing away discrepancies.

Of the 231 released boards, suppose 200 are packed for the first shipment and 31 remain in released stock. Confirm that the 200 package identities belong to the released population, that the remaining 31 units have controlled stock locations and that none of the 9 held or scrapped boards appears in either group. A package label alone does not establish the configuration of the board inside.

Use the following fields in a controlled production record or agreed export:

Field What the reviewer should be able to establish
Unit and change assignment Actual board identity, order, assembly/hardware revision and approved change reference.
Programming event Loaded artifact identity, programming job and tool revision, station identity, result, verification coverage and event reference.
Preserved or changed data Approved handling and required checks for calibration, unit identity and configuration.
Acceptance after change Applicable test revision, new result, exceptions and linked repair or repeat-test history.
Current disposition Released, held or scrapped status, authorization and any unresolved issues.
Pack-out or remaining stock Actual package and shipment association, or controlled remaining-stock location.

Verify the sequence of programming and testing as well. A functional pass recorded before the final firmware write cannot demonstrate post-write behavior. If a test routine also programs firmware or configuration, its record must establish the intended final state. Define the sequence explicitly.

The record format can remain simple for a small order. It must still contain controlled entries, identifiable approvals and a means of preventing held units from being packed. Set controls and record-retrieval requirements according to the project rather than assuming a particular factory software platform.

What should purchasing send for a change quotation?

Send the change request with the current order reference and an accurate snapshot of production states and quantities. Include the existing and proposed configurations, authorized affected population, programming access, memory and data-handling requirements, and approved repeat-test scope. Identify units already packed or assembled into enclosures because access and restoration requirements can change the process.

For example:

“Order W240 contains 240 assemblies. All deliverable units require release FW-B. The attached identity list assigns each board to its current state; 12 repaired boards are flagged within the tested population. Please confirm the supported reprogramming route, calibration preservation method, initial-unit evidence, repeat FCT and pack-out records. Keep unresolved units on hold. Confirm setup, per-board and repacking costs separately.”

APTPCB provides IC programming and functional testing services. Ask the team to confirm support for the exact device, board condition, programming access, firmware image and required evidence. Existing boards, locked devices, customer-supplied assemblies and special record requirements need project-specific review. Confirm any firmware debugging, software qualification or protected-device recovery as separate work.

Separate one-time programming-job preparation and fixture changes from recurring programming, testing and handling costs. Include data migration, recalibration, enclosure opening, label replacement and repacking where the approved route requires them. Identify assumptions that could affect the schedule and assign responsibility for resolving them. Account for the complete route when agreeing delivery, including approval and handling time.

Use the quote page to submit a defined work package, or contact APTPCB to resolve programming access and handling questions first. Agree on required records, retention, delivery format and release responsibility before restarting the changed order.

Frequently asked questions

Can old and new firmware ship in the same PCBA order?

Only with an approved configuration and destination plan. Identify the units or controlled groups assigned to each release and verify their package assignments. A common PCB revision does not establish firmware interchangeability.

Do all boards need full functional retesting after a reflash?

Engineering and quality must approve the repeat-test scope based on the change impact and applicable product requirements. A previous pass does not establish post-change behavior. Retain the original result and record the new acceptance evidence.

Will reflashing erase calibration or serial-number data?

The outcome depends on the exact device, data locations and erase/programming job. Identify the affected fields and erase coverage before authorizing the operation. Validate any preservation or regeneration process. Omitting a field from the firmware file does not prove that it will survive an erase.

Is a firmware version number enough to release a board?

No. Release requires the approved image identity, device and settings verification, and required post-change tests linked to the physical board identity. A reported version number can provide one check, but it cannot establish all these results.

Technical references

STMicroelectronics, UM2237, June 2026, Rev 31, sections 2.3.1 and 2.4: STM32CubeProgrammer programming, erase, byte-comparison verification and option-byte operations. Consult the exact target-device documentation before applying a programming job.

NASA Systems Engineering Handbook, web chapter 6.5, Configuration Management, page updated July 26, 2023: approved baselines, change implementation, status accounting and verification. The worksheets and fictional quantities above are project-planning examples, not NASA requirements or production test results.