This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Program code Size more than CODE/DATA RAM

Hi ALL,

i am using Cypress fx2lp chip in my application & uVision2 IDE. i have 16KB of code & data memory but my code size is more than it. so i am planning to have two memory segments 1. fixed memory (around 10KB)
2. shared memory n(6KB)

i am planning to store code in EEPROM. where on reset chip will start loading code in fixed memory. the required part of the remaining code will be loaded by fixed code in to shared memory whenever required. can i do this? any other suggestions

-dhanraj

Parents
  • I take it security is an obvious non issue? IE you don't care if your code is dumped and reversed engineered?

    That will be easy if you do things this way. There are reasons they don't use RAM for code space on many microcontrollers, theft is a one, another is people reprogramming it to do things you don't want it too. So property theft and liability are some of the main reasons you do not execute code from RAM on microcontrollers. Unless you are doing a consumer item that can't kill someone cause an explosion etc.

    Stephen

Reply
  • I take it security is an obvious non issue? IE you don't care if your code is dumped and reversed engineered?

    That will be easy if you do things this way. There are reasons they don't use RAM for code space on many microcontrollers, theft is a one, another is people reprogramming it to do things you don't want it too. So property theft and liability are some of the main reasons you do not execute code from RAM on microcontrollers. Unless you are doing a consumer item that can't kill someone cause an explosion etc.

    Stephen

Children
No data