This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

KEIL MDK external Flash templates (FLM)

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?

Parents Reply Children
  • 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.