LPC4330 and SPIFI questions
Hi guys,
I'm just starting on coding / debugging a custom LPC4330 board. The variant I'm using has NO internal flash, but does have a hardware SPIFI interface to a Winbond QSPI device, the W25Q16DVSSIG (16MBIT, 104 MHz).
I have been able to run very simple code in RAM so far using Crossworks. To keep it very simple, I created the generic executable from your project template. Everything works as expected.
However, I then tried going into the settings and changing the placement from RAM to SPIFI. I got these errrors:
Compiling main.c
Assembling thumb_crt0.s
Assembling LPC4300_Startup.s
Generating linker script HighG.ld
Linking HighG.elf
.vectors is too large to fit in SPIFI memory segment
.init is too large to fit in SPIFI memory segment
.text is too large to fit in SPIFI memory segment
.rodata is too large to fit in SPIFI memory segment
.vectors is too large to fit in SPIFI memory segment
.init is too large to fit in SPIFI memory segment
.text is too large to fit in SPIFI memory segment
.rodata is too large to fit in SPIFI memory segment
Build failed
My (possibly false) assumption was that SPIFI flash would be supported thru a loader possibly. Is that correct? Keil and LPCExpresso use the NXP spifi_drv_M4.lib it looks like. I'd like to be able to load my code to SPI flash, then debug via my CrossConnect.
Can you walk me thru what I am missing here?
Thanks!
Matt
p.s. Using Crossworks version 3.2.
Please sign in to leave a comment.
Comments
33 comments