lpc11xx.ld +startup_ARMCM0

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

lpc11xx.ld +startup_ARMCM0

644 Views
hajianik
Senior Contributor I

I'm looking for the following two files to be used with GCC TOOL CHAIN:

lpc11xx.ld +startup_ARMCM0.s

I'd like to use linker "provide" command to copy initialized variable from ROM to .data section in RAM in reset_handler function defined in the startup file.

If anyone has access to these files please let me know.

Regards,

Koorosh Hajiani

0 Kudos
1 Reply

347 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Koorosh Hajiani,

Which MCU are you using? I would recommend you to use the LPCOpen examples as reference:

LPCOpen Software for LPC11XX|NXP 

For example the package for the LPCXpresso LPC1125 board comes with various examples to help you get stated, there you can find the corresponding *.ld and startup files:

pastedImage_2.png

Please notice that the linker script is autogenerated into the Debug/Release subdirectory of your project, in case you want to tweak this template for project specific requirements you have to place a local copy into your application project, take a look at this post that explains how to do it:

Linker script templates 


Hope it helps!

Best Regards,
Carlos Mendoza
Technical Support Engineer

0 Kudos