Wiring View
Commands
Run the host commands from your computer against the adapter serial port.
Safe write order
- Put the firmware in Flashrom SPI adapter mode and let it reboot into the USB CDC adapter.
- Probe with verbose output before writing.
- Read a backup and store it somewhere safe.
- Write the known-good image and let Flashrom verify it.
- Power-cycle the target only after the write/verify step completes.
Result
What success looks like
Flashrom identifies the chip, writes the image and completes verification. Keep the backup even after the board boots again.
Troubleshooting
- Flashrom cannot identify the chip: check CS, MISO/MOSI, power and WP#/HOLD#.
- Write fails in-circuit: the main board may still be driving the SPI bus.
- Image size does not match the detected flash size.
- Clip contact is unstable during erase/write.
SPI flash Flashrom write FAQ
Why should I read a backup before writing?
A backup is the only easy path back if the image is wrong, the target has board-specific calibration data, or the write fails halfway. Read and keep the original before erase or write.
Why must the image size match the detected flash size?
A full-chip write replaces the address space Flashrom detected. Matching the image size to the chip size prevents accidental truncation, padding mistakes and firmware images being written to the wrong target.
What if Flashrom verifies but the board still does not boot?
A successful verify only proves the bytes were written back as requested. The image can still be for the wrong board, miss calibration or partition data, or require a different boot configuration.