Skip to main content
Topic: SPI flash programming with flashrom and BB (Read 2486 times) previous topic - next topic

SPI flash programming with flashrom and BB

I just wanted to share it... I programmed my PC BIOS chip using my BBv2, which, as it uses the FT2232H, can act as a SPI master.
The chip is a Winbond W25Q32BV (4MB).
The steps to be able to communicate with it:
 - plug the chip to the BBv2. I used the FT2232H and W25Q32BV datasheets to confirm the pinouts : VTG<->VCC(8), GND(4), TCK<->CLK(6), TDI<->DI(5), TDO<->DO(2), TMS<->CS(1), WP->GND, HOLD->VCC.
 - program a pass-through buffer logic (at least for the used pins). I simply modified the JTAGkey buffer logic schematics, maybe there's something else that works but I didn't even search.
 - use 
Code: [Select]
flashrom -p ft2232_spi:type=2232H,port=A 

Thanks for the great/cheap board, it saved me a lot of trouble... (I purchased an AMD AMD FX-8150 CPU, with an ASUS Sabertooth FX990 motherboard that was supposed to support it but may not "out of the box", so I'd have needed to use a temporary CPU to update the BIOS...).