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.

CCS/TMS320F28388S: Group same LOAD different RUN

Part Number: TMS320F28388S


Tool/software: Code Composer Studio

Hello,

I would like to allocate output sections together in a certain order. I know I can use the GROUP statement. My problem is that sections in the GROUP statement must have same allocation memory and what I would like is to allocate contiguously in FLASH and some sections should RUN from different RAM locations. How can I do it? Example

SECTIONS
{

    GROUP : {

        .FirstOutput:

        {

            *(.First_a)

            *(.First_b)

        }

        .SecondOutput:

        {

            *(.Second_a)

            *(.Second_b)

        }  RUN = RAM_A

        .SecondOutput:

        {

            *(.Second_a)

            *(.Second_b)

        }  RUN = RAM_B

    } > FLASH

  • Unfortunately, there is no method to implement what you describe.  

    Please just try it without the GROUP.  Each output section will be allocated to the FLASH memory range for load, and different RAM memory ranges for run.  You cannot control the order in which the output sections are loaded in FLASH.  But I expect them to all be contiguous, regardless of the order.

    Please let me know if this suggestion resolves the problem.

    Thanks and regards,

    -George