Hi, Is it possible to run the code from an external flash memory or RAM? We are running out of space in our K60. We don’t want to change the whole processor. So I was wondering if there is a possibility to execute code from external memory. I would like to compile the whole code –libraries, RTX RTOS, application and then generate some file (let’s call it the main application) which I would copy to SD card or program external flash with it. Then my boot loader application which resides in the internal flash memory would read the generated file (with the main application), copy that file to the RAM and execute it. Or if the main application would reside in the external flash, the main application would be executed from the external flash.
Thanks in advance. John Ostrowski
Yes, but it might be significantly slower.
You can modify the memory map in the target pane, or via scatter files passed to the linker.
To burn directly to external flash you will likely need to create an applet to do that, for running from RAM via the debugger, you'd need to create an initialization script to configure the external memory, and download the code.