This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28069F: A question on the Linker Command File

Part Number: TMS320F28069F

Hello,

I have a question on the Linker Command File for the TMS320F28069F device.

Specifically it is on the SECTIONS section.

Generally the code for the SECTIONS section seems to begin as follows:

--------------------------------------------------------------------------------

SECTIONS
{

   /* Allocate program areas: */
   .cinit              : > FLASHA_B,   PAGE = 0
   .pinit              : > FLASHA_B,   PAGE = 0
   .text               : > FLASHA_B,   PAGE = 0
   codestart           : > BEGIN,      PAGE = 0
   ramfuncs            : LOAD = FLASHD,
                         RUN = RAML0_1,
                         LOAD_START(_RamfuncsLoadStart),
                         LOAD_END(_RamfuncsLoadEnd),
                         RUN_START(_RamfuncsRunStart),
                         PAGE = 0

--------------------------------------------------------------------------------

Meanwhile the code for the SECTIONS section may begin as follows:

-----------------------------------------------------------------------------------------------

SECTIONS
{

   /* Allocate program areas: */
   .cinit              : > FLASHA_B,   PAGE = 0, ALIGN(4)
   .pinit              : > FLASHA_B,   PAGE = 0, ALIGN(4)
   .text               : > FLASHA_B,   PAGE = 0, ALIGN(4)
   codestart           : > BEGIN,      PAGE = 0, ALIGN(4)
   ramfuncs            : LOAD = FLASHD,
                         RUN = RAML0_1
                         LOAD_START(_RamfuncsLoadStart),
                         LOAD_END(_RamfuncsLoadEnd),
                         RUN_START(_RamfuncsRunStart),
                         PAGE = 0, ALIGN(4)

---------------------------------------------------------------------------------------

The difference between both codes is on the usage of ALIGN(4).

Please inform me on the usage of ALIGN(4).

What is the favor for using the ALIGN(4).

Thank you for your guidance.

With regards,

G. Kim