Dangerous Prototypes

Dangerous Prototypes => Bus Blaster JTAG debugger => Topic started by: zougloub on October 27, 2011, 06:24:21 am

Title: SPI flash programming with flashrom and BB
Post by: zougloub on October 27, 2011, 06:24:21 am
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...).

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01262052320session_write_close ( )...(null):0
20.01302183912ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01302184688Database_MySQL->query( ).../DatabaseHandler.php:119
40.06322323424Database_MySQL->error( ).../Db-mysql.class.php:273