• TI Thinks Resolved

Compiler/TMS320F28377D: F28377D stack alignment issue

Prodigy 80 points

Replies: 3

Views: 98

Part Number: TMS320F28377D

Tool/software: TI C/C++ Compiler

Hi,

I am using F28377D. When I compile the project, I see this warning "#10443-D null: The ".stack" section size is required to be aligned to 2 bytes, but the specified size, 0xfff, is not. The aligned size is 0x1000"

Here is my map file content for "stack":

.stack 1 0000e000 00001000 UNINITIALIZED
              0000e000 00001000 --HOLE--

Any ideas?

Thanks

  • Fei,

    You will need to eiither allocate more memory for your stack and/or align the section to 2 bytes by adding 'ALIGN(2)' to the .stack line in your linker command file.

    The following may serve as a good reference on expanding memory and aligning the size:
    processors.wiki.ti.com/.../C28x_Compiler_-_Understanding_Linking

    Additionally, you can check out these posts for similar issue and resolutions
    e2e.ti.com/.../546025
    e2e.ti.com/.../2968405

    Regards,
    Ozino

  • In reply to Ozino Odharo:

    Hi Ozino,

    Thanks for your reply. I tried to allocate more memory and align the section to 2 bytes by adding ALIGN(2). The issue is still the same. Here is what I did in linker cmd file:

    .stack : > RAMGS2_3 PAGE = 1, ALIGN(2)

    Thanks

    Fei

  • In reply to Fei Pan99:

    Fei,

    Can you check that the stack_size is set to a multiple of two?Note 0xFFF is not a multiple of 2. Once you update that, you should not see an alignment warning.

    Regards,
    Ozino