Need to remux SPIFI pins for SSP and then back again

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

Need to remux SPIFI pins for SSP and then back again

376 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rockyh on Fri Sep 26 05:59:23 MST 2014
Hi, our hardware designer connected an SPI device to the SPIFI pins of the LPC4330. The problem is, that we are also using SPIFI, and using it to boot up from flash. I figured out that I can re-mux the pins to SSP in SPI mode after boot up and running code in internal SRAM.  I can then communicate with the other device, which thankfully, I only have to do once to set it up.  After this, I need to then switch back to SPIFI functions.  The problem is that SPIFI code seems to be "gone" at the address range of 0x1400 0000, and no longer accessible. Is there a way to "refresh" the SPIFI?
Thanks
Labels (1)
0 Kudos
2 Replies

363 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Fri Sep 26 09:16:02 MST 2014
Hi Rockyh,
Once you initialize SPI, SPIFI is not any  more communicating with the QSPI flash and code won’t appear in the memory map.
As suggested by pierre reinitializing the SPIFI  and putting device in memory mode should work again.
0 Kudos

363 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by pierre on Fri Sep 26 07:42:17 MST 2014
Have you tried to initialize libspifi and use setMemMode( true ) ?
0 Kudos