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

How to define a big array in external memory

Hi,

I am using REALVIEW to develop my project with STR912FAW44 microcontroller. My issue is the same as the post below.
http://www.keil.com/forum/docs/thread8004.asp

I want to define a big array in external SRAM. Does anybody have examples and show me how to do that? Greatly appreciate any suggestions.

Thanks

Parents
  • Thank you very much for your info. I try it as followed.

    1. Configure the EMI interface in the startup.s.
    2. Define a variable in the main program.
    unsigned short *test __attribute__((at(0x3c000900)));
    3. Write a value to the test variable *(u16*)test = 0x0010;

    However, it doesn't work. Could you please help me figure out what I miss?

    Thanks for your help.

Reply
  • Thank you very much for your info. I try it as followed.

    1. Configure the EMI interface in the startup.s.
    2. Define a variable in the main program.
    unsigned short *test __attribute__((at(0x3c000900)));
    3. Write a value to the test variable *(u16*)test = 0x0010;

    However, it doesn't work. Could you please help me figure out what I miss?

    Thanks for your help.

Children