Example of Code in Ram for lpc15 using LPCXpresso

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Example of Code in Ram for lpc15 using LPCXpresso

1,463 次查看
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 项奖励
回复
1 回复

1,146 次查看
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 项奖励
回复