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

Evalboard MBC4300, SPIFI

Hello,

I would like to use the SPIFI memory (S25FL032) of the MBC4300 Eval board from my application.
In the software packs I only find CMSIS Driver/Flash (API) for AT45DB642D. I assume (but did not test) that this driver would not be compatible to the S25FL032. Is the required driver somewhere available?

On lpcware.com I found a Spifi-driver for LPC4300 that supüports htr required device (and many more) but I don't think (but also not verified) that this is not a CMSIS driver which is compatible to the file system middleware which I also would like to use.

Are there any plans that keil middleware supports the spi-flah of their evalboard in the near future?

Thank you

Parents
  • Hi,
    thank you for this advice.
    When I take the AT45DB642D.c file and replace the functions to access the SPI-Flash S25FL032 (I would use the lib/source from LPCware.com), can I then use the embedded filesystem by simply selecting the correct drive letter?

    4MByte is small compared to SD-Cards with several GBytes, but it is big compared to I2C-EEprom that I want to replace.

    The S25FL032 has a sector size of 64kbyte, but erase size is 4kbyte. In a next step I want to swap to S25FL132 which has a sector size of 4kbyte (and also erase size of 4kbyte).

    I know the fatfs requires 512 byte sectors.
    Does the embedded file system accept this 4kbyte erase sector size?
    I'm sure it's documented somewhere but I did not look for it.

    Maybe you could give me an advice:
    It seems that the existing CMSIS SPI driver does not support the SPIFI mode.
    Would it be "better" to implement a CMSIS SPIFI driver first and use this to implement a S25FL driver, or it it "OK" to mix the device-specific code of SPI-Flash and the SPIFI-funcion?

    Thank you.

Reply
  • Hi,
    thank you for this advice.
    When I take the AT45DB642D.c file and replace the functions to access the SPI-Flash S25FL032 (I would use the lib/source from LPCware.com), can I then use the embedded filesystem by simply selecting the correct drive letter?

    4MByte is small compared to SD-Cards with several GBytes, but it is big compared to I2C-EEprom that I want to replace.

    The S25FL032 has a sector size of 64kbyte, but erase size is 4kbyte. In a next step I want to swap to S25FL132 which has a sector size of 4kbyte (and also erase size of 4kbyte).

    I know the fatfs requires 512 byte sectors.
    Does the embedded file system accept this 4kbyte erase sector size?
    I'm sure it's documented somewhere but I did not look for it.

    Maybe you could give me an advice:
    It seems that the existing CMSIS SPI driver does not support the SPIFI mode.
    Would it be "better" to implement a CMSIS SPIFI driver first and use this to implement a S25FL driver, or it it "OK" to mix the device-specific code of SPI-Flash and the SPIFI-funcion?

    Thank you.

Children
No data