How to use falsh memory for LPC4330

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

How to use falsh memory for LPC4330

806 Views
leoncorleone
Contributor II

Hello to all. Sorry if my English is poor.

I have bought lot's of LPC4330 and now I see that there isn't on-chip flash in it.

Now I wanna to use external flash memory but I don't know how to use.

Is there easy way to use this microcontroller? Is there easy Memory IC with schematic to use that?

very thank you.

Labels (2)
0 Kudos
3 Replies

621 Views
leoncorleone
Contributor II

I've used W25Q32FV as Flash and I've programed the example of NXP LPC43xx-GPIO, but it has this problem. Does somebody know where my problem is?

-----------------------------------------------------

Load "C:\\Users\\Leon\\Desktop\\lpc43xx\\Examples\\GPIO\\Gpio_LedBlinky\\Keil\\SPIFI 64MB Debug\\example.axf"
Set JLink Project File to "C:\Users\Leon\Desktop\lpc43xx\Examples\GPIO\Gpio_LedBlinky\Keil\JLinkSettings.ini"
 
JLink info:
------------
DLL: V4.20p, compiled Nov 19 2010 15:55:07
Firmware: J-Link ARM V8 compiled Jan 29 2010 19:34:13
Hardware: V8.00
S/N : 20080643
Feature(s) : RDI,FlashDL,FlashBP,JFlash,GDBFull
 
* JLink Info: TotalIRLen = 8, IRPrint = 0x0011
* JLink Info: Found Cortex-M4 r0p1, Little endian.
* JLink Info: TPIU fitted.
* JLink Info: ETM fitted.
* JLink Info:   FPUnit: 6 code (BP) slots and 2 literal slots
ROMTableAddr = 0xE00FF003
* JLink Info: TotalIRLen = 8, IRPrint = 0x0011
* JLink Info: Found Cortex-M4 r0p1, Little endian.
* JLink Info: TPIU fitted.
* JLink Info: ETM fitted.
* JLink Info:   FPUnit: 6 code (BP) slots and 2 literal slots
 
Target info:
------------
Device: Cortex-M4
VTarget = 3.254V
State of Pins:
TCK: 1, TDI: 0, TDO: 1, TMS: 0, TRES: 1, TRST: 1
Hardware-Breakpoints: 6
Software-Breakpoints: 2048
Watchpoints:          4
JTAG speed: 2000 kHz
 
Erase Done.
Programming Done.
Contents mismatch at: 14000000H  (Flash=FFH  Required=58H) !
Contents mismatch at: 14000001H  (Flash=FFH  Required=08H) !
Contents mismatch at: 14000002H  (Flash=FFH  Required=08H) !
Contents mismatch at: 14000003H  (Flash=FFH  Required=10H) !
Contents mismatch at: 14000004H  (Flash=FFH  Required=29H) !
Contents mismatch at: 14000005H  (Flash=FFH  Required=01H) !
Contents mismatch at: 14000006H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000007H  (Flash=FFH  Required=14H) !
Contents mismatch at: 14000008H  (Flash=FFH  Required=2DH) !
Contents mismatch at: 14000009H  (Flash=FFH  Required=01H) !
Contents mismatch at: 1400000AH  (Flash=FFH  Required=00H) !
Contents mismatch at: 1400000BH  (Flash=FFH  Required=14H) !
Contents mismatch at: 1400000CH  (Flash=FFH  Required=2FH) !
Contents mismatch at: 1400000DH  (Flash=FFH  Required=01H) !
Contents mismatch at: 1400000EH  (Flash=FFH  Required=00H) !
Contents mismatch at: 1400000FH  (Flash=FFH  Required=14H) !
Contents mismatch at: 14000010H  (Flash=FFH  Required=31H) !
Contents mismatch at: 14000011H  (Flash=FFH  Required=01H) !
Contents mismatch at: 14000012H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000013H  (Flash=FFH  Required=14H) !
Contents mismatch at: 14000014H  (Flash=FFH  Required=33H) !
Contents mismatch at: 14000015H  (Flash=FFH  Required=01H) !
Contents mismatch at: 14000016H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000017H  (Flash=FFH  Required=14H) !
Contents mismatch at: 14000018H  (Flash=FFH  Required=35H) !
Contents mismatch at: 14000019H  (Flash=FFH  Required=01H) !
Contents mismatch at: 1400001AH  (Flash=FFH  Required=00H) !
Contents mismatch at: 1400001BH  (Flash=FFH  Required=14H) !
Contents mismatch at: 1400001CH  (Flash=FFH  Required=5AH) !
Contents mismatch at: 1400001DH  (Flash=FFH  Required=5AH) !
Contents mismatch at: 1400001EH  (Flash=FFH  Required=5AH) !
Contents mismatch at: 1400001FH  (Flash=FFH  Required=5AH) !
Contents mismatch at: 14000020H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000021H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000022H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000023H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000024H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000025H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000026H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000027H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000028H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000029H  (Flash=FFH  Required=00H) !
Contents mismatch at: 1400002AH  (Flash=FFH  Required=00H) !
Contents mismatch at: 1400002BH  (Flash=FFH  Required=00H) !
Contents mismatch at: 1400002CH  (Flash=FFH  Required=37H) !
Contents mismatch at: 1400002DH  (Flash=FFH  Required=01H) !
Contents mismatch at: 1400002EH  (Flash=FFH  Required=00H) !
Contents mismatch at: 1400002FH  (Flash=FFH  Required=14H) !
Contents mismatch at: 14000030H  (Flash=FFH  Required=39H) !
Contents mismatch at: 14000031H  (Flash=FFH  Required=01H) !
Contents mismatch at: 14000032H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000033H  (Flash=FFH  Required=14H) !
Contents mismatch at: 14000034H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000035H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000036H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000037H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000038H  (Flash=FFH  Required=3BH) !
Contents mismatch at: 14000039H  (Flash=FFH  Required=01H) !
Contents mismatch at: 1400003AH  (Flash=FFH  Required=00H) !
Contents mismatch at: 1400003BH  (Flash=FFH  Required=14H) !
Contents mismatch at: 1400003CH  (Flash=FFH  Required=B9H) !
Contents mismatch at: 1400003DH  (Flash=FFH  Required=0BH) !
Contents mismatch at: 1400003EH  (Flash=FFH  Required=00H) !
Contents mismatch at: 1400003FH  (Flash=FFH  Required=14H) !
Contents mismatch at: 14000040H  (Flash=FFH  Required=3FH) !
Contents mismatch at: 14000041H  (Flash=FFH  Required=01H) !
Contents mismatch at: 14000042H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000043H  (Flash=FFH  Required=14H) !
Contents mismatch at: 14000044H  (Flash=FFH  Required=3FH) !
Contents mismatch at: 14000045H  (Flash=FFH  Required=01H) !
Contents mismatch at: 14000046H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000047H  (Flash=FFH  Required=14H) !
Contents mismatch at: 14000048H  (Flash=FFH  Required=3FH) !
Contents mismatch at: 14000049H  (Flash=FFH  Required=01H) !
Contents mismatch at: 1400004AH  (Flash=FFH  Required=00H) !
Contents mismatch at: 1400004BH  (Flash=FFH  Required=14H) !
Contents mismatch at: 1400004CH  (Flash=FFH  Required=3FH) !
Contents mismatch at: 1400004DH  (Flash=FFH  Required=01H) !
Contents mismatch at: 1400004EH  (Flash=FFH  Required=00H) !
Contents mismatch at: 1400004FH  (Flash=FFH  Required=14H) !
Contents mismatch at: 14000050H  (Flash=FFH  Required=3FH) !
Contents mismatch at: 14000051H  (Flash=FFH  Required=01H) !
Contents mismatch at: 14000052H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000053H  (Flash=FFH  Required=14H) !
Contents mismatch at: 14000054H  (Flash=FFH  Required=3FH) !
Contents mismatch at: 14000055H  (Flash=FFH  Required=01H) !
Contents mismatch at: 14000056H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000057H  (Flash=FFH  Required=14H) !
Contents mismatch at: 14000058H  (Flash=FFH  Required=3FH) !
Contents mismatch at: 14000059H  (Flash=FFH  Required=01H) !
Contents mismatch at: 1400005AH  (Flash=FFH  Required=00H) !
Contents mismatch at: 1400005BH  (Flash=FFH  Required=14H) !
Contents mismatch at: 1400005CH  (Flash=FFH  Required=3FH) !
Contents mismatch at: 1400005DH  (Flash=FFH  Required=01H) !
Contents mismatch at: 1400005EH  (Flash=FFH  Required=00H) !
Contents mismatch at: 1400005FH  (Flash=FFH  Required=14H) !
Contents mismatch at: 14000060H  (Flash=FFH  Required=3FH) !
Contents mismatch at: 14000061H  (Flash=FFH  Required=01H) !
Contents mismatch at: 14000062H  (Flash=FFH  Required=00H) !
Contents mismatch at: 14000063H  (Flash=FFH  Required=14H) !
Too many errors to display !
Error: Flash Download failed  -  "Cortex-M4"1.png2.png3.png4.png5.png

0 Kudos

621 Views
leoncorleone
Contributor II

Can I use this IC for flash: W25Q16BV.

How can I use that?

0 Kudos

621 Views
soledad
NXP Employee
NXP Employee

Hello Leon,

You need to use SPIFI library. You can find more information in the following link: 

LPC SPIFI Peripheral|NXP 

For schematic reference, you can check the LPC4330 Xplorer board: 

https://www.nxp.com/downloads/en/design-support/LPC4330_Xplorer_schematic_OM13027.pdf 

Regarding the QSPI devices, multiple QSPI devices from various vendors can be used with the SPIFI interface and the SPIFI API available on nxp.com. The devices listed in the following table are tested to work as boot devices for the LPC43xx and with the SPIFI API.

Remark: All QSPI devices have been tested at an operating voltage of 3.3 V

pastedImage_2.png


Have a great day,
Sol

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

0 Kudos