Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
Glen0 Regular Member Joined: 12/10/2014 Location: New ZealandPosts: 95
Posted: 11:24pm 11 Oct 2014
Copy link to clipboard
Print this post
Can anyone tell me how to write to, and read from, SPI serial flash.
I am trying to write data to an 8 pin serial flash ic and then read it back a few hours later.The chip is a SST25VF080B Serial flash memory ic.
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2932
Posted: 10:34am 12 Oct 2014
Copy link to clipboard
Print this post
Hi Glen - welcome to BSF. Have you tried 'adapting' the SPI code form the User Manual to work with the Flash IC you refer to?
It should be very easy to do assuming you have the datasheet at hand.
Let us know what you have tried. Most importantly, don't be afraid to try things yourself - it seems to be a 'dying art' (i.e. people ask first rather than trying the 'basics' themselves)
There are plenty of people to help if you get stuck so let us know what you have 'attempted' and we will assist in ensuring your 'success'.
WW
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9590
Posted: 02:23pm 12 Oct 2014
Copy link to clipboard
Print this post
Welcome aboard the great ship BackShed.
I don't have any SPI memory chips here of any sort(I always use I2C), but I am interested in your results, so I will be watching this thread. Good luck, and please do post back with your results etc.
Smoke makes things work. When the smoke gets out, it stops!
Glen0 Regular Member Joined: 12/10/2014 Location: New ZealandPosts: 95
Posted: 04:08pm 12 Oct 2014
Copy link to clipboard
Print this post
Thanks for the reply.
Must admit I am looking for the easy way out here, I did however have a number of goes at it, including the example in Geoff's manual, but there are just too many unknowns at this stage.
The memory chips data sheet is also a little lacking in mapping detail. So if anyone has any examples of writing to a memory chip using SPI it will be much appreciated.
Being able to record time-stamped data will make this a powerful device.