For a PCB assembly quote, identify which firmware release goes on each board revision, where the assembler will program it, and how you will accept the finished board. The build record should show which file the programming job loaded, which memory regions and settings passed verification, and how the board performed in the agreed functional test.
The assembly BOM guide covers general file and revision control. The PCB functional testing guide helps define the signals to apply and the responses to check.
Should IC programming happen before or after assembly?
Program before placement when you lack usable board access and the supplier has a socket and tool that support the exact device and package. Agree how the supplier will label and segregate programmed parts by firmware release. If you need to trace a programmed part lot to an assembly lot or board serial, specify that before the build. Plan what to do with programmed stock if the firmware changes.
Program on the assembled board when the released design provides access and the device can enter its programming mode in the intended fixture. Mark the connector or pads on the assembly drawing. Specify the pinout, power source, reset or boot sequence, and the point in the build when the connections are accessible. For instance, a fixture may need to contact the pads before the board goes into its enclosure. Where reset circuitry shares the programming pins, check device requirements against the populated circuit. See the PIC programming and reset circuit example.
For a pilot, run a first article through the proposed programming job, fixture and downstream tests. Confirm that the records identify the loaded release and the board tested. If the image or settings change after approval, identify affected stock and boards, revise the job under change control, and agree which checks to repeat before resuming.
What firmware files and settings should you send?
Fill in one worksheet for each board variant and target device in scope. If a board needs both a bootloader and an application image, identify each file and its intended memory region.
| Field | What to put in the release package |
|---|---|
| Board and device | PCB assembly part number, revision, variant, device reference designator and exact orderable part number. |
| Firmware release | Approved release ID, artifact filename, and expected digest with its algorithm. Label the artifact the digest applies to. |
| Memory layout | File format supported by the selected tool, approved memory regions and any explicit load addresses. Include bootloader or external memory images where applicable. |
| Device settings | Released configuration, including any applicable option bytes, lock settings, calibration or per-unit data. Identify fields to preserve and the approved order of operations. |
| Programming job | Route, tool and job revision, interface or socket, fixture revision and ownership. Include power, pinout and boot or reset instructions for on-board access. |
| Acceptance | Digest check on the file loaded by the job, write and configuration verification, first-article and functional test criteria, record format and rules for repeat attempts. |
A raw binary contains bytes without their destination addresses. Specify the approved load address and range in the programming job. For an address-bearing format such as Intel HEX, check that the programmed regions match the released memory map. Confirm format and address handling with the selected tool.
How do you verify programmed firmware?
Check the file. Before writing, have the active programming job check the digest of the exact file it loads against the approved release record. Keep the result or link to the station log. A stale local copy can pass a write-and-verify cycle if both steps use that same copy.
Check the device. Verify the required memory regions using the approved programming method and retain the result. For example, STM32CubeProgrammer can read back programmed internal flash and compare it byte for byte with the file. It handles option bytes separately. Record what the job verified, including any separate setting checks. If protection restricts readback, agree on supported evidence and the sequence for verification and protection before production. STMicroelectronics UM2237 Rev 31, sections 2.3.1 and 2.4
Check the board. Run the agreed functional tests after programming. A flash comparison checks the memory it covers. A startup or communications test checks whether the assembled board responds under the specified conditions. Product qualification may require additional coverage defined by the product owner.
What if flash verification passes and the board fails?
In this fictional pilot record, the board must answer an identification request from the test fixture within two seconds. That limit belongs to the example project.
| Record field | First attempt |
|---|---|
| Board and job | Serial PILOT-017, controller Rev C, U4. Station P02, job PG-04 Rev B, log P02-017-01. |
| File identity | PASS. Before writing, PG-04 checked the SHA-256 digest of the image it loaded against release FW-2.4.1. |
| Device verification | PASS. Byte comparison covered the application flash regions listed in PG-04 Rev B. Configuration matched the job's separate reference. |
| Functional test | FAIL. FCT-12 Rev A received no response within two seconds. Fixture checks passed. |
| Disposition | HOLD for diagnosis. Retest pending authorization. |
If the fixture failed its required checks, keep the invalid attempt and its reason under the approved procedure. Correct the station before repeating the test. For a valid board failure, preserve the original result. Link any authorized repeat to the same serial number and record why it was run, what changed, the new result and who approved the disposition.
What should go in a PCB assembly RFQ?
Send the worksheet with your BOM, assembly drawing, quantities and applicable test procedure. Ask HILPCB to confirm the programming route, compatible tools, fixture ownership, verification coverage and the format and retention of any requested records. Include a sample record if your quality system requires particular fields. Programming and functional test scope depend on the build and quotation. SMT assembly services · Request a quote
Frequently Asked Questions
What file type is needed for PCB assembly programming?
Use the released format the selected tool supports for that device. For a raw BIN file, supply the approved load address and range in the programming job.
Can a firmware file checksum verify the chip?
Use a file checksum or digest to identify the exact file the job loads against the approved release value. Use a supported target check with defined coverage to verify device memory.
Does flash verification cover option bytes or calibration data?
Check the approved job's coverage. These fields may need separate verification, especially when they are stored outside the application regions.
Can pre-programmed parts be tested after assembly?
Yes. Plan an assembled-board test with the required power-up and functional checks. If the board also needs unit-specific programming or calibration, agree where and how to perform it.

