EmbeddedRelated.com
Forums

LPC810 problems

Started by Leon Heller April 3, 2013
I received my LPC810 proto boards from ITead yesterday, assembled one of
them, and had a couple of problems getting one of my LPC810 samples working.

First off, a very simple test program that built OK with the LPC812
wouldn't link, giving lots of error messages:

Linking Test.elf
.text is too large to fit in FLASH memory segment
.dtors is too large to fit in FLASH memory segment
.ctors is too large to fit in FLASH memory segment
.rodata is too large to fit in FLASH memory segment
.ARM.exidx is too large to fit in FLASH memory segment
.fast is too large to fit in FLASH memory segment
.data is too large to fit in FLASH memory segment
.tdata is too large to fit in FLASH memory segment
.text is too large to fit in FLASH memory segment
.dtors is too large to fit in FLASH memory segment
.ctors is too large to fit in FLASH memory segment
.rodata is too large to fit in FLASH memory segment
.ARM.exidx is too large to fit in FLASH memory segment
.fast is too large to fit in FLASH memory segment
.data is too large to fit in FLASH memory segment
.tdata is too large to fit in FLASH memory segment
Build failed

I'd never seen anything like it before so I contacted Rowley support and
was advised to set things up with minimal memory requirements:

https://rowley.zendesk.com/entries/23109322--build-a-program-that-is-as-small-as-possible-arm-

That worked.

I then tried debugging the program and hit another problem, getting an
error message - "Loader verify failed" - when I tried to download the
program via the SWD connector on my board. The CrossConnect recognised
the chip as a Cortex-M0+. Contacted Rowley support again and was told
that the flash loader is not supported on the small devices with 1KB of
SRAM (LPC810, LPC1110). It looks like putting a SWD connector on my PCB
was a waste of time.

I added RxD and TxD connectors to PIO0_0 and PIO0_4 and a jumper to
ground PIO0-1 so that I could use Flash Magic with one of those cheap
Chinese USB-RS to RS-232 adapters that are available on Ebay, and was
able to download my test program, which worked OK:

http://www.leonheller.com/LPC812%20%28DIP8%29/Flasher.c

The inability to debug applications on the LPC810 looks like a serious
shortcoming. Perhaps the best solution is to use the LPC812 for
development, and put it on the LPC810 when it is debugged and working.
Maybe NXP will develop a new device with more RAM.

Leon
--
Leon Heller
G1HSM

An Engineer's Guide to the LPC2100 Series

I was wrong about not being able to debug programs running on the LPC810! One has to load a debug build using the ISP bootloader with Flash Magic, and then attach the JTAG/SWD unit. The program can then be debugged using Attach Debugger with CrossWorks, or Ctrl+Alt+F5 to Reset and Debug. There should be similar incantations with other tools.

Leon