Contents
The PCB assembly programming process should connect an approved firmware or configuration image to the exact hardware revision and production build that is intended to use it. Before a PCBA enters a programming step, the engineering release should identify the image, compatible hardware, loading method, verification result, and record to retain. “Program the latest file” is not an adequate production instruction because “latest” can change without a controlled approval or traceable build record.
Programming is a production operation that loads data into a programmable device or board. It may occur before assembly, during assembly, or at a later system-integration step, depending on device access, test flow, and project requirements. The decision is product-specific. This guide focuses on release and configuration control, not software development or a particular microcontroller’s command sequence.
What should a production programming release identify?
At minimum, identify the product and hardware revision, the exact approved programming artifact, the configuration or options to apply, the intended loading stage, and the verification method. Define who owns each item and how a production operator can select the right version without guessing.
| Release item | What to record | Why it matters |
|---|---|---|
| Product identity | Board/product number, hardware revision, assembly or work-order scope | Prevents an image from being applied to an incompatible hardware state |
| Programming artifact | Filename or package ID, version, release date/authority, and integrity identifier where used | Distinguishes approved data from a working or superseded file |
| Configuration | Region, feature option, calibration/configuration data, boot mode, or customer variant as applicable | Separates executable image identity from product-specific settings |
| Programming method | Device access, interface, fixture or adapter requirements, and sequence owner | Makes the intended operation reproducible without inventing vendor-specific steps |
| Verification | Programmer result plus any readback, checksum, version query, functional check, or other approved method | Shows what was verified and what a “pass” means for this device/process |
| Trace record | Unit/lot/work-order identifier, hardware revision, artifact identity, station/operator or process record as required | Connects the built item to its configuration evidence |
| Change authority | Approver, effective build/lot/serial point, and disposition of prior image/material | Prevents an unapproved file from silently replacing the released baseline |
The integrity identifier may be a checksum or cryptographic hash, depending on the workflow. These mechanisms serve different purposes: a checksum can detect certain data changes or transmission errors, while a cryptographic hash provides a stronger identity check. Neither alone proves that the file is correct, approved, compatible, or safe to execute. The release process must identify the trusted source and acceptance rule.
How should teams match firmware to hardware revision?
Treat hardware and firmware as separate configuration items with an explicit compatibility relationship. A hardware revision may alter a pin assignment, power rail, memory device, oscillator, peripheral, or boot behavior. A firmware image may assume a particular circuit, BOM option, programmable-device revision, or calibration state. Maintain a compatibility record that engineers and production can read.
| Hardware state | Software/configuration state | Production decision |
|---|---|---|
| Approved hardware revision listed as compatible | Approved image and option set match released manifest | Proceed using the specified method and verification evidence |
| New board revision without compatibility disposition | Existing image is available | Hold programming until engineering confirms compatibility or issues a new release |
| Approved hardware, but two image files have ambiguous names | Version or integrity identity cannot be confirmed | Hold; obtain a uniquely identified release package |
| Correct image but wrong customer option/configuration | Base image is approved, configuration is not | Hold or reconfigure under an approved option-control procedure |
| Image change arrives after work order release | Production already has an older controlled package | Follow authorized cut-in and WIP disposition; do not silently overwrite line data |
Compatibility must be based on engineering review and relevant verification. Do not assume that a newer firmware version supports every previous board or that one board revision accepts every older image.
Where should programming occur in the build flow?
Choose the programming point based on access, process capability, security and intellectual-property constraints, verification needs, and production flow. Common options include programming a component before placement, programming an accessible device on the assembled board, or loading software during final system integration. Not every device or assembly supports every option. The decision should be made as part of the broader prototype-to-production PCBA transition, because the programming stage, fixture ownership, records, and test requirements may change between engineering builds and repeat production.
| Programming stage | Potential benefit | Questions to resolve |
|---|---|---|
| Before component placement | Device can be programmed using a component-level fixture or supplier flow | Who programs and verifies the part? How is programmed material identified and protected from mix-up? |
| On assembled PCBA | Board-level interface can be used for loading and immediate checks | Is the interface accessible after assembly? Does the fixture contact reliably? Can other functions or power domains affect programming? |
| At system integration | The final product context may be available for configuration or activation | Does this move programming outside the PCBA supplier’s scope? How will board-level build records link to system records? |
Select the stage before layout and fixture design are frozen. If programming pads or a connector are required, preserve access, document orientation, and ensure mechanical constraints do not block the fixture. The test-point or connector design should follow the actual programmer and process requirements; do not copy a generic footprint or pinout. For embedded processors and FPGA-based products, coordinate the programming access with the relevant embedded and FPGA PCB design constraints.
What should the programming instruction tell the production team?
Write an instruction that is specific enough to prevent selection errors but does not copy unverified tool settings. The instruction should state the authorized package location or identifier, the compatible hardware, the required configuration, the setup approval, the expected success indication, and what to do when the station reports an error.
A practical sequence is:
- Confirm the work order and hardware revision against the release manifest.
- Confirm that the selected programming package matches the approved identity and integrity check.
- Set up the approved station, fixture, cable, power conditions, and device access method from controlled process documentation.
- Load the specified image/configuration and record the station’s result.
- Perform the required independent verification, such as a version query, readback/checksum comparison, or functional check where supported and approved.
- Associate the result with the unit, lot, or work order at the traceability level defined for the project.
- Segregate failures and follow the defined reprogramming, repair, or engineering-disposition path.
The exact steps and acceptable result depend on the device vendor, programming method, board design, and customer requirements. The manufacturing instruction should reference current component or programmer documentation where technical parameters are needed. Integrate the operation with the assembly sequence in the turnkey PCB assembly process, and identify who retains the programming and component sourcing records for the build.
What does programming passed prove?
It proves only what the station and verification method actually checked. A programmer may report that a transfer completed; that does not automatically prove the application boots, the correct product option is configured, the image is functionally compatible with the board, or the complete PCBA passes system requirements.
Use layered evidence when the risk or requirement warrants it. A first-article inspection review can confirm that the initial production setup and approved build records are aligned; the project’s own criteria determine which programming evidence belongs in that review:
- Transfer evidence: the programming operation completed according to station status.
- Identity evidence: the loaded version, checksum, hash, or readback matches the release definition, when the device supports it.
- Configuration evidence: required options or calibration data are set and recorded.
- Functional evidence: the board performs the specified startup or functional checks.
- Build trace evidence: the result is linked to the relevant board revision, unit/lot, and production release.
For example, Microchip’s bootloader documentation describes a device-side checksum comparison after programming to verify that program memory matches the expected compiled application data. That illustrates one implementation-specific integrity check; it is not a universal requirement or proof of full product functionality. The distinct inspection and test coverage questions belong in the project’s PCB assembly testing plan. Microchip checksum verification example
How should a firmware or configuration change enter production?
Handle a programming release as a controlled change to the build definition. Record the reason and compatibility assessment, obtain the required approval, identify the effective work order/lot/serial boundary, and disposition units already programmed or in process. Replace line files through the authorized release path and remove or clearly supersede obsolete packages. NASA’s software configuration-management guidance similarly emphasizes recording and evaluating changes and implementing authorized versions; here it is used as a general configuration principle rather than an electronics standard. NASA software change evaluation guidance
Do not send a new file through informal chat and assume production has adopted it. If an urgent fix is required, use the project’s approved expedited route and preserve the release record. Decide whether previously built units need reprogramming, additional test, customer notification, or no action, with engineering rationale.
How should failed programming be handled?
First preserve the evidence: unit/lot identifier, hardware revision, selected package identity, station/fixture identity where recorded, failure code or observation, and attempts performed. Follow a defined retry limit and disposition rule; repeated attempts can obscure the original cause or affect a device depending on the programming method.
Potential contributors include incorrect image selection, incompatible hardware, poor fixture contact, device power or reset conditions, locked or damaged devices, configuration mismatch, and station setup. Troubleshoot according to the device and fixture documentation. Do not alter fuse/option bits, erase protection, or retry behavior without an approved engineering instruction. Quarantine or segregate failed units until their status is known.
Production programming release checklist
- [ ] Hardware/product revision and production scope are identified.
- [ ] Firmware/configuration package has a unique controlled identity and authorized source.
- [ ] Compatibility with the target hardware and required product option is documented.
- [ ] Programming stage, interface, fixture, and owner are defined.
- [ ] Required verification and what each result proves are explicit.
- [ ] Required unit, lot, or work-order trace record is specified.
- [ ] Failure, retry, reprogramming, and escalation rules are defined.
- [ ] Effective cut-in and WIP disposition are approved for any changed package.
- [ ] Superseded files are withdrawn or clearly controlled.
- [ ] First build or first article checks are complete where required.
FAQ
Should firmware be programmed before or after SMT assembly?
There is no universal answer. It depends on device access, component supply flow, fixture design, board architecture, verification needs, and project responsibility. Decide early enough to preserve access and define who controls and verifies the image.
Is a checksum enough to prove the correct firmware is loaded?
No. A checksum comparison can help verify data identity or integrity within a defined process, but it does not establish that the file was approved, compatible with the hardware, or functionally correct. Link the expected value to a controlled release and add the verification the product requires.
What should a PCBA programming record contain?
At minimum, record the identity of the product/hardware and the programmed image/configuration plus the result at the project’s required unit, lot, or work-order level. The record should be detailed enough to determine what was built and which verification was completed.
Can the assembly supplier choose the latest firmware file?
The supplier should use the customer- or design-authority-approved release identified in the production package. “Latest” is ambiguous unless the source, version, compatibility, and effective build are controlled.
Request a programming release review
When requesting turnkey PCBA or programming-related assembly support, identify the target hardware revision, device access method, approved image/configuration handoff, verification expectation, and traceability needs. Request a project review from Excel Circuit. Programming and test scope must be confirmed for the specific product; this guide does not imply that every programming method or fixture is available in-house.
References
- Microchip documentation: checksum verification after programming
- NASA Software Engineering Handbook: Track and Evaluate Changes — cited for general controlled-change principles, not as a PCBA-specific requirement.
