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.

What is the effect of the attribute I in the MEMORY directive?

The Platform Wizard in CCS generates platforms with the MEMORY directives, and the only attributes used are R,W and X. I have never seen any warning or an error message complaining about a section allocation to a memory segment lacking an attribute,either I or any other. I checked SPRU186, but it talks very little about attributes in the MEMORY directive.

There is a thread e2e.ti.com/.../409468 were a user sees some issues at runtime, and the only difference is in the attribute I for one of the segments. Does that seem as a likely cause for runtime problems?

Thanks,
Sasha

  • Sasha Slijepcevic said:
    Does that seem as a likely cause for runtime problems?

    No.  If you use attributes in the MEMORY directive, then in the SECTIONS directive, you can allocate by attribute.  This example comes from the sub-chapter titled Named Memory in C6000 assembly tools manual ...

    SECTIONS
    {
        .text: > (X)  /* .text --> executable memory   */
        .data: > (RI) /* .data --> read or init memory */
        .bss : > (RW) /* .bss --> read or write memory */
    }

    If you do not use this feature to allocate output sections, then the attributes have no effect.

    Thanks and regards,

    -George