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
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:
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:
Hope it helps!
Best Regards,
Carlos Mendoza
Technical Support Engineer