AnsweredAssumed Answered

GCC Linker Script for LPC54608

Question asked by Matthew Pennock on Feb 15, 2017
Latest reply on Feb 16, 2017 by Fall Guy

Hi All,

 

I'm working with the gcc-arm-none-eabi toolchain to target the LPC54608. This is the first time I've compiled for bare metal and could use some guidance.

 

First I modified mem.ld to reflect the Flash and RAM Banks of the LPC54608 as follows:

 

MEMORY
{
FLASH (rx) : ORIGIN = 0x0, LENGTH = 0x80000 /* 512KB */
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x20028000 /* 160KB */
}

 

A generic Cortex-M4 startup script is included in the toolchain distribution and linker script to layout sections (startup_ARMCM4.s and gcc.ld). Will this be enough to correctly link C code? Can I compile the SystemInit(); function from the LPC54608 Keil SDK with this toolchain to setup my PLL and being writing my own code?

 

With the upcoming release of the XpressoIDE support for this device is there a publicly available linker script to use?

 

Thanks,

Matt

Outcomes