Can LPC18x0 boot from SPIFI source connected to DualSPI mode flash (not QuadSPI)

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

Can LPC18x0 boot from SPIFI source connected to DualSPI mode flash (not QuadSPI)

570 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Andrei.Bystrov on Thu Jul 25 02:57:50 MST 2013
Hi All,

I also have a question regarding the booting for LPC1850 chip from SPIFI. We are going to use the Pins P3_4 and P3_5 assigned for SPIFI SIO2 and SIO3 for different pin function (audio I2S - this is the only possible config for this function regarding these pins). So we will not have these pins available for SPIFI SIO2 and SIO3 functions. We know that we can boot from normal SPI (SSP0) boot mode but the pin functions will be assigned differently for SPI then for SPIFI and we will not have SPIFI mapped memory in this case.
The question is - Is it possible to boot from Quad SPI flash like for example Spansion S25FL064P used on Hitex boards without SIO2 and SIO3 connected to this chip - means in Dual SPIFI mode? We know that the dual SPIFI mode is supported for normal operations. Is Dual SPIFI mode supported for Booting in the ROM of LPC18x0 devices?

Thank you!
Andrei
Labels (1)
0 Kudos
8 Replies

505 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nils28 on Thu Oct 24 01:24:43 MST 2013
Hi MC,

Thanks for your answer I did not see it :s

I use LPC4330FET256 (PFM906.04 ESD1149ZRY) on my personnal board. My software for testing is very simple, It toggles two RJ45 leds.

You will see my software in attached files. I've added the modified cfx file driver allowing Redsuite to connect to a dual SPIFI.

Thanks for helping.
0 Kudos

505 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Wed Oct 02 11:04:00 MST 2013
Hi Nils28,
After your input I ordered samples of SST SST25VF064C and tested on my MCB board. This board contains LPC1857. I did not see  problem.
There may be problem with your code. For further help, please post marking on the chip as well as the code.
0 Kudos

505 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Fri Sep 27 22:59:00 MST 2013
Hi Nils28,
Which NXP device are you using? Could you please post your code here?

MC
0 Kudos

505 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nils28 on Tue Sep 24 02:56:26 MST 2013
Hi!

Bad news...We have received yesterday SST SST25VF064C SPIFI which have only Dual mode and we have the same results. No problems with JTAG and nxp flash driver but no boot in standalone.
I seems that LPC do not switch to dual mode if no quad is found which is not consistent with §5.3.5.4 SPIFI boot mode in UM :
- " if SQI device supported then 4-bit I/O will be used "
- " For an SPI flash, the part boots with a 18 MHz clock. For a quad SPI flash device, the part boots with a 32 MHz clock."

I also tried to modify rooting to boot in SSP0 mode but where can I found a .cfx driver to load code in flash in this mode with RedSuite ?

Ken your solution is possible only if P3_4 and P3_5 are linked to SPIFI. In my board pins P3_4 and P3_5 are only linked to an audio codec.

Nils
0 Kudos

505 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by usb10185 on Thu Sep 19 11:00:09 MST 2013
Hi,

Another solution is even if the part boots in Quad mode, in Main() switch back to dual mode and mux the pins back to I2S.

Ken
0 Kudos

505 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nils28 on Thu Sep 19 01:04:34 MST 2013
Hi!

I have the same issue than Andrei (P3_4 and P3_5 used for I2S1 functions). We tried the Spansion S25FL128SAGNFI001 SPIFI. All works fine with JTAG but no boot in standalone.
Have you tried one of the flash proposed by Noah ?
We are ordering Atmel AT25DF641A-SH-B which is pin compatible with S25FL128. But my question is will the Atmel flash work with the LPC SPIFI API ? And be mapped in LPC "SPIFI data" memory area (Fig 4. from UM) ?

As soon as we receive the AT25DF641A I'll give you the results.

Thanks
0 Kudos

505 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by noahk on Fri Aug 16 19:14:07 MST 2013
Hi Andrei,

I believe there are some supported devices that don't work with Quad and those devices may work for you if they are supported by the boot. You might want to check some of these:

Numonyx M25PX16
SST SST25VF064C
Macronix MX25L1606E
Atmel AT25DF641

Noah
0 Kudos

505 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Thu Aug 15 18:45:10 MST 2013
Hi Andrei,
This device(S25FL064P) is supported to operate in its best supported mode, therefore it won't be possible to boot in dual mode.
0 Kudos