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.
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.
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:
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:
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
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: