We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi everyone.
i'm building some prototype devices based on a reference design from a client of mine.
The reference design uses an AP8064 Audio SoC which has a Cortex M3 core.
The AP8064 does not have any on-board flash. The dev-kit and the reference design use a 25Q16CSIG flash chip, but it's difficult to get hold of here in the UK.
So on my prototypes I would like to use the SST25VF016B from Microchip (mainly because I already have hundreds of them in stock, its the same size and pin-out).
So in order to do that I need to write a flash driver (.FLM) for the 25VF16.
But I cannot find any template or existing projects that target 25-Series flash chips.
Can anyone point me in the direction of a suitable starting point, or template for a 25-Series external flash chip to write the .FLM?
Hi SpiderKenny,
unfortunately we don't have Flash algorithms for the SST25VF016B or any other SST25xxx device. So you either need to start from the blank Flash project in folder Keil_v5\ARM\Flash\_Template or you can copy one of the SST39xxx Flash algorithms if they are similar.You can find more details here:
http://www.keil.com/pack/doc/CMSIS/Pack/html/flashAlgorithm.html
http://www.keil.com/support/docs/3656.htm
Thanks for the quick reply.
I checked the SST39 series, but they are parallel flash, so not similar to the 25 Series which are SPI. I'm sorry I didn't mention SPI in the OP.
Well, it will be an interesting exercise for me to write one from scratch. Shouldn't be too hard.
Thanks again!
Sorry, I did not see that this is a SPI device. You might look into this folder:
C:\Kei_v5l\ARM\Flash\LPC18xx43xx_S25FL032
This is a Flash algorithm for a 4-bit SPI (=SPIFI) interface for a NXP LPC1800 or LPC4300 device. It might give you some hints how to handle serial Flashes. You will have to write the SPI interface initialization yourself or maybe you can copy it from your 25Q16CSIG Flash algorithm.
Thank you again!
I will look at the LPC examples. :-)
I do have an FLM for the 25Q16CSIG, but not the sources! So close, yet so far. Not to worry, I fancy the challenge of doing one from scratch.