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

Overlapping Memory areas in ARM

Hi,

Is there a way to allow memory overlapping in MDK-ARM?

I have tried to use the "__attribute__((at(address)))" but it does not work.

Ex.

unsigned char array1[20] __attribute__((at(0x20002000)));
unsigned char array2[10] __attribute__((at(0x2000200A)));

Parents
  • "array2 was declared as a global variable (but it is not visible on my module"

    So why is it not visible "on your module" ?

    Why don't you just make it visible?

    "it is not really used by the other modules"

    So why is it there if it's not used??!

    Sounds like you have basic design flaws, and should be addressing them - rather than introducing further kludges!

Reply
  • "array2 was declared as a global variable (but it is not visible on my module"

    So why is it not visible "on your module" ?

    Why don't you just make it visible?

    "it is not really used by the other modules"

    So why is it there if it's not used??!

    Sounds like you have basic design flaws, and should be addressing them - rather than introducing further kludges!

Children
No data