Home / Learn Chip Programming / Flash Programmers and Hardware Tools: CH341A, Bus Pirate, J-Link

Flash Programmers and Hardware Tools: CH341A, Bus Pirate, J-Link

The tools for reading and writing chips on the bench.

In shortThe tools for reading and writing chips on the bench.

Theory in plain words

Read a SPI flashidentify chip (W25Q64)clip + programmer at 3.3 Vflashrom -p ch341a_spi -r dump.binread again and comparestore dump safely
Read a SPI flash

What it is

To read or write external flash and EEPROM you need a programmer: CH341A (SPI/I2C), Raspberry Pi, FT232H, Bus Pirate, TL866 universal, SOIC8 test clip. For MCU internals use debug probes.

Why we use it

Repair, recovery, factory programming and security analysis all need these tools. Wrong voltage or wrong clip placement can destroy chips.

How it works

Identify the chip (marking, datasheet), pick the programmer voltage (3.3 V vs 1.8 V!), use a clip or desolder, read twice and compare, keep a backup before writing.

Where it is used

  • BIOS chip recovery
  • Reading a W25Q flash
  • Factory programming

Tool chooser

Which programmer for this chip?Try it Yourself

Always check the logic voltage first. Dump the chip twice and compare checksums before changing anything.

flashrom workflow
flashrom -p ch341a_spi                          # detect the chip
flashrom -p ch341a_spi -r backup1.bin
flashrom -p ch341a_spi -r backup2.bin
sha256sum backup1.bin backup2.bin               # both hashes must match
flashrom -p ch341a_spi -w new.bin -v            # write and verify
Tip:In-circuit reading often fails because other chips on the board drive the bus. Hold the main MCU in reset, or lift the chip’s power pin, or desolder the chip.

Quick quiz

1. Always before writing a chip?

2. Common CH341A danger?

Common questions

Always before writing a chip?

Make and verify a backup. Two matching reads prove the clip contacts work.

Common CH341A danger?

5 V on data lines for 3.3 V chips. Use a 3.3 V modification or adapter.