FAQ: INPUT_SECTION_ALIGN(4) usage in CCES

Document created by Kader.M Employee on Jan 30, 2018
Version 1Show Document
  • View in full screen mode

Question:

 

Our goal is to start a buffer with alignment of 4 in SDRAM BANK0. How to modify the app.ldf to have a buffer starting with an alignment of 4.

 

==========================

 

Answer:

 

The INPUT_SECTION_ALIGN command affects INPUT_SECTION commands. Instead use the ALIGN(number) command  - it aligns the address of the current location counter to the next address that is a multiple of number, where number is a power of 2. 

 

You can also define the buffer in your application C or assembly source to avoid the need for an LDF modification.

Attachments

    Outcomes