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?
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