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.
Theory in plain words
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
Always check the logic voltage first. Dump the chip twice and compare checksums before changing anything.
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 verifyQuick quiz
1. Always before writing a chip?
Two matching reads prove the clip contacts work.
2. Common CH341A danger?
Use a 3.3 V modification or adapter.
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.