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.

F2812 - what changes when you add external memory?

I have a program running on a F2812, with interrupts served quite nicely as long as the whole code is loaded into internal RAM.

Once I activate "zone6", which I map to 0x100000 with a length of 0x004000, and load the code (at least partly) to that memory, I don't hit the break in the  ISR.

here is the line from memory, page 0:

   ZONE6      : origin = 0x100000, length = 0x004000     /*xintf zone 6 */

 

and here is the sections line:

   .text            : > ZONE6,       PAGE = 0

 

if I use L0L1RAM instead of ZONE6 (mapped to page 1 L0L1RAM     : origin = 0x008000, length = 0x2000 ) all is good.

My prblem is I need the extra ram for my code, so what do I need to do to get my ISR working?

Thanks.

  • Hi nothingeverworks(dsp works!! :p),

    I'm facing the same problem too. i'm undergraduate from Malaysia, doing induction motor control using ezdsp 2812. I need extra RAM so that i can add FIR digital filter. Currently i'm working on the memory space margin.

     

    Below are some descriptions of my problem:

    XINTF6 was put into page 0.

    PAGE 0 :
      
       RAMM0    : origin = 0x000000, length = 0x000400
       BEGIN    : origin = 0x3F8000, length = 0x000002      
       PRAMH0   : origin = 0x3F8002, length = 0x001FFE   
       BOOTROM  : origin = 0x3FF000, length = 0x000FC0
       RESET    : origin = 0x3FFFC0, length = 0x000002
       XINTF6    : origin = 0x100000, length = 0x080000

     

    But when i tried to allocate some sections to external RAM of ezdsp2812, .cinit and .pinit seems working but allocating .text to ext RAM seems doesn't work as MESSAGE " DATA VERIFICATION FAILED AT ADDRESS 0x100000,PLEASE VERIFY TARGET MEMORY and MEMORY MAP" pop out when i tried to load program.

    May i know what are the reasons prohibiting .text to be allocated to ext RAM? Below are my .cmd file, which was modified from TI's example program:

    SECTIONS
    {
       codestart         : > BEGIN,       PAGE = 0
       ramfuncs         : > PRAMH0       PAGE = 0 
       .text                   : > XINTF6,       PAGE = 0   
       .cinit                 : > PRAMH0,     PAGE = 0   
       .pinit                 : > PRAMH0,      PAGE = 0  
       .switch            : > RAMM0,       PAGE = 0
       .reset              : > RESET,       PAGE = 0, TYPE = DSECT
      
       .stack               : > RAMM1,       PAGE = 1
       .ebss               : > DRAMH0,      PAGE = 1
       .econst            : > DRAMH0,      PAGE = 1 
       .esysmem      : > DRAMH0,      PAGE = 1   

       DLOG                 : >    L0L1RAM,      PAGE =    1

    }

    Glad to find out this forum regarding F2812 since this forum and dsprelated,com help alots when i'm facing problem.