Dangerous Prototypes

Dangerous Prototypes => Bus Pirate Support => Topic started by: Ramazuri on August 30, 2019, 10:57:18 am

Title: Is it possible to use dual/quad spi to read flash?
Post by: Ramazuri on August 30, 2019, 10:57:18 am
Hey guys,

I am wondering about something. I bought a buspirate v4 because I would like to read the content of a NAND Flash that I have.
My idea is to connect the BP to my NAND Flash and then I would like to use flashrom to read out the Flash and store the content in a .bin file.
I found a couple of tutorials and explanations about how to connect the pins and how it works.
After a quick look at the datasheet from the NAND Flash I could verify what I read about the connection. It should looks like this:

BP      |  NAND Flash
------------------------
CS      | CS#
MISO | SO
3v3    | WP#
GND  | VSS
3v3    | VCC
3v3    | HOLD#
CLK    | SCLK
MOSI | SI

After taking an other look at the datasheet I found out that the NAND Flash supports dual and quad spi and the WP#, SO, SI and the HOLD# Pin have a second function.
WP# can also be used as SIO2, HOLD# can also be used as SIO3.
SI can also be used as SIO0 and SO can also be used as SIO1.

What I am wondering about is, can I connect the pins differently so that I can use dual or quad spi instead of standard spi to read out the flash?
Does flashrom and the BP even support dual and quad spi?

Thanks
Title: Re: Is it possible to use dual/quad spi to read flash?
Post by: ian on August 30, 2019, 11:32:58 am
Hi Ramazuri,

I'm very familiar with the dual/quad mode in various flash and sram chips, working with some right now. It would be totally possible to access the chip in dual/quad mode from the v4 because it has extra IO pins. However, there is no firmware support that I know of. Also, the SPI stuff is all done in hardware, but dual/quad would need to be bitbanged and would likely be slower than just using hardware SPI.
Title: Re: Is it possible to use dual/quad spi to read flash?
Post by: Ramazuri on September 04, 2019, 08:24:00 am
Thank you for your answer :)

( ! ) 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.00902040712session_write_close ( )...(null):0
20.00932172288ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.00932173064Database_MySQL->query( ).../DatabaseHandler.php:119
40.05412311784Database_MySQL->error( ).../Db-mysql.class.php:273