AnsweredAssumed Answered

Newbie Question:Large Buffer in External Memory EZ 21262

Question asked by Felipe.Sarmiento on Jun 14, 2011
Latest reply on Jun 16, 2011 by Felipe.Sarmiento

Hello, Im trying to place some data in external SRAM provided in the EZ21262, using the section directive, to do so I declared a couple of buffers as:


#pragma section("seg_sram")
int SAMPLES_BUFFER[NUM_DEL_SAMPLES];
#pragma section("seg_sram")
int SAMPLES_BUFFER1[NUM_DEL_SAMPLES]; 
and then added this to my LDF file

MEMORY{
...
seg_sram { TYPE(DMAONLY DM) START(0x01200000) END(0x012FFFFF) WIDTH(8) }
}

SECTIONS{

 

seg_sram

        {

            INPUT_SECTIONS($OBJECTS(seg_sram) $LIBRARIES(seg_sram))

            PACKING(4 B0 B0 B0 B1 B0 B0 B0 B0 B2 B0

                     B0 B0 B0 B3 B0 B0 B0 B0 B4 B0)

        } > seg_sram

 

}

 

However I keep getting this error in linking phase:

 

 

[Error li1131] ".\Block Based TalkThru.ldf":200 Input section(s) of incompatible qualifier detected in the output section 'seg_sram'

For more details, see 'linker_log.xml' in the output directory.

 

 

The proyect is based on the Block Based C talktrtough, with only minor modifications.

Outcomes