We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
Eric, code memory is 16KB RAM
still you would be far better off choosing a chip with more code memory (tons avaialble) or use an external code memory.
Erik
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