Problems with replacement of LPC4330 with LPC4337

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

Problems with replacement of LPC4330 with LPC4337

1,153 Views
michuriu
Contributor I

Hello Community,

As you can read in the heading, I have some problems with the replacement of a LPC4330 with a LPC4337.

I started my development with an LPC4330Xplorer Board, everything worked as it should. Now, I got my self-made board which does not work. Ok, I changed the LPC4330 to a LPC4337 and instead of an external Flash S25FL032 I use an external flash S25FL256.

In the first step, I just wanted to test my board by blinking a LED. For that I set up a new c project with the LPC4337 and I also added the additional external flash on address 0x14000000.

I started with the internal flash: for the debugging, everything was fine. But when I have flashed the program into the internal flash, after reset (power off, power on) the program starts after one minute. Boot pin P2_7 is connected to a pull-up resistor. Does anybody know, what may be the problem? The boot process from internal flash should not take so much time?!

Then I wanted to test the external flash, but there I just get the following error message:

op EraseSector (0x14000000, 0x0, 0x1) status 0x40 - driver reports init failure - EXTSPI driver rc 13 - No supported SPIFI device found

  Driver gave init failure when not initializing

  op Terminate (0x0, 0x0, 0x0) status 0x40 - driver reports init failure - EXTSPI driver rc 13 - No supported SPIFI device found

  15: Target error from Commit Flash write: Ef(50): Flash driver failed to initialize

  15: Target error from Read register

  Cannot access core regs when target running.

Is it possible, that the flash driver does not work for my flash even if the Spansion S25FL256S is listed in Table 25 QSPI devices supported by the boot code and the SPIFI API?

Or is it still not possible to boot from an external SPIFI flash with more than 32 MB? The Errata sheet LPC4357/53/37/33 mentions a SPIFI.1 error...

All advices or ideas are appreciated.

Thank you in advance.

Labels (1)
0 Kudos
Reply
3 Replies

772 Views
michuriu
Contributor I

Hi jeremyzhou,

to look at the boot process timing figure was a great idea from you. Indeed, there was still a capacitor on that boot pin line, which influenced the time to pull up the  boot pin. Without the capacitor, it boots as it should from internal flash. Now, I do not need anymore to boot from the external flash, I'd like to use the spifilib to read and write to it.

So, thanks for the hint with the boot process timing =)

Have a nice day,

Michael  

0 Kudos
Reply

772 Views
michuriu
Contributor I

Hi jeremyzhou,

thank you for your Support.

1) I will try to figure it out.

2) Ok and my external fash test should be to boot the program from external Flash (boot pin can be pulled down with a switch and boot select pins can be configuered with a switch as well). But when I tried to debug the program, I got immediately the above mentionned error message. I can't flash the program on the external spifi flash as I do with the LPC4330Xplorer Board. For me it looks like that the flash driver (LPC18_43_SPIFI_32MB_256KB.cfx) does not work with the used external spifi flash (kind of S25FL256) or that's the problem that I can not boot from an external spifi flash which is larger than the 32MB mentionned in the old Errata sheet LPC4357/53/37/33 ...

0 Kudos
Reply

772 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Michael Schöckel,

Thank you for your interest in NXP Semiconductor products and 
for the opportunity to serve you.
1. Boot pin P2_7 is connected to a pull-up resistor. Does anybody know, what may be the problem? 
    I'd highly recommend you to find which phase spend too much time by comparing the Fig 22 Boot process timing in the RM.
2. Then I wanted to test the external flash, but there I just get the following error message.
    I was wondering if you can describe the steps of the testing in details and I'm looking forward to your reply.
Have a great day,

TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply