Article INPUT_SECTION_ALIGN(4) usage in CCES

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.

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.