External Flash Memory

Hi,
In my application code size is increased more then 512KB. I am using LPC2148 so can is use external memory to run my application like EEPROM,SD CARD etc. ? If yes then how ?

Parents
  • No. Make the code smaller.

    A very, very, complex solution would be to store code in external memory (memory card, EEPROM or similar) and load blocks of code from there into RAM and execute.

    But the compiler don't expect your processor to support any mechanism for banking so it will not help you to create these individual code blocks to swap in from external memory.

    Maybe you have a huge amount of printouts? Then it is quite easy to store these texts in external memory, and implement a printout function that just takes an integer as input parameter and then loads that specific text message from eeprom or similar for the printout. That would remove the need for storing all the printout strings in your cramped program flash.

Reply
  • No. Make the code smaller.

    A very, very, complex solution would be to store code in external memory (memory card, EEPROM or similar) and load blocks of code from there into RAM and execute.

    But the compiler don't expect your processor to support any mechanism for banking so it will not help you to create these individual code blocks to swap in from external memory.

    Maybe you have a huge amount of printouts? Then it is quite easy to store these texts in external memory, and implement a printout function that just takes an integer as input parameter and then loads that specific text message from eeprom or similar for the printout. That would remove the need for storing all the printout strings in your cramped program flash.

Children
More questions in this forum