Example of Code in Ram for lpc15 using LPCXpresso

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Example of Code in Ram for lpc15 using LPCXpresso

1,429件の閲覧回数
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,112件の閲覧回数
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 件の賞賛
返信