Using the W25Q32FVSIG SPI Flash Memory from winboard

A forum where Flowcode v6 user created components can be shared, discussed and reviewed.

Moderator: Benj

User avatar
amarsingh12
Posts: 9
Joined: Sun Jul 17, 2011 4:21 pm
Has thanked: 1 time
Been thanked: 3 times
Contact:

Using the W25Q32FVSIG SPI Flash Memory from winboard

Postby amarsingh12 » Wed Jul 29, 2015 5:18 am

Hi Team, has any one successfully used the winboard flash chips that come super cheap and run on the SPI, or do we have any component that we can use to try some read writes. This are offered super cheap on ebay but do not see any sample programs for those. I think they work same at the SD card component.. but have not tried it on the chips that I have received.. any one with any experience or help will be appreciated.

Product Link: http://www.ebay.com/itm/171414742316?ss ... 1439.l2649
Data Sheet: http://www.elinux.org/images/f/f5/Winbond-w25q32.pdf

User avatar
Benj
Matrix Staff
Posts: 13948
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4224 times
Been thanked: 3980 times
Contact:

Re: Using the W25Q32FVSIG SPI Flash Memory from winboard

Postby Benj » Wed Jul 29, 2015 9:55 am

Hello,

They do look fairly good. My problem with Flash chips is that they are often much slower then they first appear. If you look at the datasheet on page 51 then this lists the associated write times.

50-80 seconds to erase the device
120-200ms to erase a sector
1.5-3ms to write a page (after you have loaded all the data)

If you need none volatile memory to store low frequency data then probably a good option. If you don't need none volatile then I would recommend a SRAM chip instead as the read write time is a lot faster and the page/sector/block complications are removed.
These users thanked the author Benj for the post:
amarsingh12 (Wed Jul 29, 2015 3:16 pm)
Rating: 5.88%
 

User avatar
amarsingh12
Posts: 9
Joined: Sun Jul 17, 2011 4:21 pm
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: Using the W25Q32FVSIG SPI Flash Memory from winboard

Postby amarsingh12 » Wed Jul 29, 2015 3:01 pm

Thankyou for your reply.. :) . You have been my hero since you got the ENC28J60 to work on flowcode :idea: . My read write will be approx 1 time per minute... which kind of serves my purpose... would like to ask you one more question please, should I use the standard sd card component to send and receive data to the chip.. or do i have to come up with some custom macros for the same ?
These users thanked the author amarsingh12 for the post:
Benj (Wed Jul 29, 2015 4:22 pm)
Rating: 5.88%
 

User avatar
Benj
Matrix Staff
Posts: 13948
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4224 times
Been thanked: 3980 times
Contact:

Re: Using the W25Q32FVSIG SPI Flash Memory from winboard

Postby Benj » Wed Jul 29, 2015 4:25 pm

You have been my hero since you got the ENC28J60 to work on flowcode :idea:


Many thanks :D those modules are very cool.

The FAT component will only work with an SD card so your better off using the SPI component and creating your own macros. The datasheet looks to be quite detailed in terms of how you send out the various commands and how to send / receive data.

This blog might help if you are new to SPI communications.
http://www.matrixtsl.com/blog/simplifie ... c-and-spi/

Let us know how your getting on.

User avatar
amarsingh12
Posts: 9
Joined: Sun Jul 17, 2011 4:21 pm
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: Using the W25Q32FVSIG SPI Flash Memory from winboard

Postby amarsingh12 » Thu Jul 30, 2015 2:31 am

Thankyou Benj, I have received the chips but still waiting on the PCB that converts it from SOIC to DIP, once received will start some experiments..will post the results in the forum.
These users thanked the author amarsingh12 for the post:
Benj (Thu Jul 30, 2015 10:10 am)
Rating: 5.88%
 

User avatar
Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 494 times
Been thanked: 188 times

Re: Using the W25Q32FVSIG SPI Flash Memory from winboard

Postby Rudi » Mon Sep 21, 2015 6:28 pm

Hi

Not sure, perhabs it helps.
I had a try with this , but i think there is a little mistake in my flowchart,
perhabs benj can look to the flowchart, i used arduino mega 2560, and i found the tip from benj with hardware spi ;-) here :

viewtopic.php?f=59&t=16760&p=69407#p69407

this helps me first time to sort out the software / hardware spi doing.
( txs benj )

btw:
i tested arduino sketch with the SPIFlash libary and works ( see picture ) the wire is ok and same - so i think the mistake is in the flowchart
( benj can you help please? - what was making wrong ? )

best wishes

rudi ;-)

User avatar
Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 494 times
Been thanked: 188 times

Re: Using the W25Q32FVSIG SPI Flash Memory from winboard

Postby Rudi » Mon Sep 21, 2015 7:50 pm

update#

think - ready for fc

change the CKE to Trailing Edge and data comes
have a try and look to the pics and flowchart.
have phun!

rudi ;-)
These users thanked the author Rudi for the post:
Benj (Tue Sep 22, 2015 11:54 am)
Rating: 5.88%
 

User avatar
Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 494 times
Been thanked: 188 times

Re: Using the W25Q32FVSIG SPI Flash Memory from winboard

Postby Rudi » Mon Sep 21, 2015 8:36 pm

push'

btw:
wire was:

W32
----------
1 /CS -> cs ( mega 2560 i take dig10 ( B4 ))
2 DO -> MISO
3 /WP-> here i connect it temporaly ( i do not need the just in time the function ) to GND
4 GND -> GND
5 DI -> MOSI
6 CLK -> CLK
7 /HOLD-> here i connect it temporaly ( i do not need the just in time the function ) to 3.3+
8 VCC -> 3.3+

like benj mentioded here this is helpfull
mega 2560 SS tip:
http://www.www.matrixmultimedia.com/mmf ... 407#p69407

spi / i2c
http://www.matrixtsl.com/blog/simplifie ... 2c-and-spi

last but not least:
5V / 3.3V
http://matrixtsl.com/blog/wp-content/up ... lshift.bmp

rudi
These users thanked the author Rudi for the post:
Benj (Tue Sep 22, 2015 11:54 am)
Rating: 5.88%