AnsweredAssumed Answered

INPUT_SECTION_ALIGN(4) usage in CCES 2.5.0

Question asked by Sudheer Employee on May 3, 2017
Latest reply on May 31, 2017 by AndyK2

Hi,

 

We are using CCES 2.5.0 and BLIP2 Hardware.

 

We are opening the POST example code available as part of BLIP2 BSP.

 

Our goal is to start a buffer with alignment of 4 in SDRAM BANK0.

For this purpose app.ldf is modified as given below

 

dmc_sdram_bank0

{

INPUT_SECTION_ALIGN(4)

INPUT_SECTIONS( $OBJS_LIBS(dmc_bank0 sdram_bank0 sdram0_bank0) )

INPUT_SECTIONS( $OBJS_LIBS(sdram0 program) )

EXECUTABLE_NAME(__executable_name)

 

/*$VDSG<insert-input-sections-at-the-start-of-sdram0_bank0> */

/* Text inserted between these $VDSG comments will be preserved */

/* Modified for Buffer with an alignment of 4 and size 0x1000 */

INPUT_SECTION_ALIGN(4)

_LARGE_BUF_BEGIN = .;

. = _LARGE_BUF_BEGIN + 0x1000; // 10K

_LARGE_BUF_END = .;

/*$VDSG<insert-input-sections-at-the-start-of-sdram0_bank0> */

 

} > MEM_DMC_SDRAM_BANK0

 

But, after recompiling the POST example code in memory map file I can see that _LARGE_BUF_BEGIN address is 0x801c2017 and the BUF_END address is 0x801c3017.

 

How to modify the app.ldf to have a buffer starting with an alignment of 4.

 

Thank You & Regards,

Sudheer

Outcomes