This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

usign external RAM for static arrays

Hi,

I am using eZdspF28335. My program need a large section for static arrays (No dynamic allocation). I tryed to switch my data to external RAM.

I did the following:

  • change the line for .ebss to

                                .ebss            : > ZONE7B,     PAGE = 1

  • change the size of to a larger size

                                     ZONE7B     : origin = 0x20FC00, length = 0x020000

  • add this line to my main  (this is from a sample to use DMA.

                                    init_zone7();

The above leads to problem and after executing a few line jumps to the following line:

                        interrupt void ILLEGAL_ISR(void) // Illegal operation TRAP

                       {
                      // Insert ISR Code here

                      // Next two lines for debug only to halt the processor here
                     // Remove after inserting ISR Code
                     asm(" ESTOP0");
                       for(;;);

                       }

I thought it should be quite easy to use external RAM instead of internal RAM, but seems it is not so.

I appreciate if any body guides me about how to use External RAM in addition to internal RAM for my arryas.

Thanks in advance,

    Behzad