AnsweredAssumed Answered

Using SRAM for code with ADSP21369

Question asked by Eric-overline on Feb 14, 2013
Latest reply on Feb 15, 2013 by Eric-overline

Hi

I would like to use some parts of my code in the SRAM section. Unfortunately, the linker display an error message:

 

[Error li1080] ".\Debug\A8MEval.doj(seg_pmco):0x1c" address of '_InitTimerData' (=0x1200000) is out of range

        Referenced from 0x90210

        Valid range is [0x0,0xffffff]

 

the code is defined like this:

 

__attribute__((section ("seg_sram"))) void InitTimerData(void)

{

     ...

}

and the ldf file includes the following lines:

 

MEMORY

{

....

seg_sram { TYPE(PM RAM ) START(0x01200000) LENGTH(0x2db7) WIDTH(8)   }

}

 

 

PROCESSOR P0

{

     ...

   SECTIONS

    {

    seg_sram
    {
        INPUT_SECTIONS($OBJECTS(seg_sram) $LIBRARIES(seg_sram))
    } > seg_sra

...

}

 

After adding the -jcs2l option to the linker, I still have an error, with the warning:

[Warning li2011]  -jcs2l switch has no effect.

 

Is there some solutions to use SRAM to place some C code ?

 

Thank you.

Eric

Outcomes