SPIFI library support for Spansion S25FL132K

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPIFI library support for Spansion S25FL132K

1,343 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gstraka on Mon Apr 18 14:50:31 MST 2016
This may not be the correct forum, but I'm working with a LPC1850 (flashless part) and the Spansion S25FL132K qspi flash chip (Spansion recommends this part for new designs, as opposed to the S25FL032P).  I can program the flash and the board runs and everything.  However I run into issues when using the SPIFI library.

After bootup I'm using the SPIFI library to do additional customization...here's the first few lines:

   spifiInit(LPC_SPIFI_BASE, false); // tried with true as well
   spifiRegisterFamily(spifi_REG_FAMILY_CommonCommandSet);
   spifiGetSuppFamilyCount();
   uint32_t memSize = spifiGetHandleMemSize(LPC_SPIFI_BASE);


The processor hangs when I call spifiGetHandleMemSize...I have located the code and SPIFI library in external SDRAM, and all interrupts are disabled, so I don't believe it's accessing the flash chip.

I came across a different thread where NXP Support indicated that the SPIFI library did not support that particular flash chip.  See here:
https://www.lpcware.com/content/forum/winbond-w25q80bv-support-spifilib-lpclink2-board

So my question is, does the current SPIFI library support the Spansion S25FL132K?  Thanks.
Labels (1)
0 Kudos
Reply
5 Replies

1,212 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos
Reply

1,212 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bavarian on Wed Apr 20 05:01:32 MST 2016
Yes, the bootcode in ROM is not flexible in this. If it can identify the device as quad-capable via ID reading, it will switch to quad mode and 32MHz (or also to 2-bit mode if it's a know 2-bit flash). Otherwise it stays in 1-bit mode at 18MHz.

Regards,
NXP Support Team.
0 Kudos
Reply

1,212 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gstraka on Tue Apr 19 14:23:49 MST 2016

Quote: bavarian
The Spansion quadSPI flash S25FL125K is in the list of supported devices:

https://www.lpcware.com/content/project/nxp-peripherals/spifi-nxp-microcontrollers

Regards,
NXP Support Team



BTW when the board is booting from SPIFI using the S25FL132K, it doesn't appear to be running in quad mode.  Is that expected?
0 Kudos
Reply

1,212 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gstraka on Tue Apr 19 14:22:42 MST 2016

Quote: bavarian
The Spansion quadSPI flash S25FL125K is in the list of supported devices:

https://www.lpcware.com/content/project/nxp-peripherals/spifi-nxp-microcontrollers

Regards,
NXP Support Team



I updated the SPIFI library to add support for the S25FL132K.  I'm following the instructions in the SPIFI manual (section LPCSPIFILIB library use model) and also some examples provided in LPCOpen.

However when I get to the call "spifiGetHandleMemSize", it goes out to lunch and never comes back.  Any thoughts or suggestions?  Thanks
0 Kudos
Reply

1,212 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bavarian on Tue Apr 19 01:45:15 MST 2016
The Spansion quadSPI flash S25FL125K is in the list of supported devices:

https://www.lpcware.com/content/project/nxp-peripherals/spifi-nxp-microcontrollers

Regards,
NXP Support Team
0 Kudos
Reply