Example of Code in Ram for lpc15 using LPCXpresso

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

Example of Code in Ram for lpc15 using LPCXpresso

661 Views
gregwilson-lind
Contributor II

We are building a system using an LPC1517 and CAN bus, we will need to be able to update the code in FLASH in system. We are going to need to write an update utility that executes out of Ram and I haven't been able to find any examples for compiling code to execute from Ram for the LPC15 family. Are there any examples available?

0 Kudos
1 Reply

344 Views
lpcxpresso_supp
NXP Employee
NXP Employee

If you just want to create an application that you download and run in RAM, then you can either remove the flash section from the memory map in the Memory Configuration Editor (documented in the LPCXpresso IDE User Guide), or else tick the "Link application to RAM" option in

Project - Properties - C/C++ Build - Settings - MCU Linker - Managed Linker Script

But if you want to create an application built for flash but where some of the code is relocated and executed from RAM, then the FAQ gives some details of how to approach this: https://community.nxp.com/message/630746 

Regards,

LPCXpresso Support

0 Kudos