AnsweredAssumed Answered

Place code in internal flash and SPI flash

Question asked by Leo Cheng on Jan 7, 2016
Latest reply on Mar 17, 2016 by TomE

Our project is based on the old using MCF52258, 512KB flash, 64 K sram + 128K external SDRAM. Now the code is increasing, I am considering that place partial code in SPI flash, then load and run in SDRAM. Here is what I am thinking,



function1() { }  function2() { }



function3() { }  function4() { }


Objective: placing file1.c in to internal flash, file2.c in to spi flash, when calling function3 and function4, read the code from SPI flash to external ram, then run in ram


Is this feasible? How to?

Does Anyone have any advice?

external ram