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/TMS320F28379D: Is memory utilized if it's not specified in the *.cmd linker command file?

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

If a section of memory is not specified in the command linker file's MEMORY section will it be inaccessible during the linking process?

For example:

MEMORY
{
    /* Mx is MCU dedicated */
    RAMM0       : origin = 0x000121, length = 0x0002DE
    /*RAMM1       : origin = 0x000400, length = 0x0003FF*/
}

If RAMM1 is commented out what is the net effect during the linking process and at run-time?

Kindly,

Graham

 

  • Graham,

    If memory section is not defined in linker cmd file then it'll not be used during linking process and nothing will be mapped there. During run time though, if CPU tries to access that location then access will go through.

    Vivek Singh
  • Thanks Vivek. Much appreciated.
  • One more question for clarification:

    If the memory section IS specified in the MEMORY section and used in the SECTIONS area, will that area of memory be accessible at runtime by the CPU for purposes other than code execution and variable storage?

    e.g. Can a pointer to that area of memory read/write to it or is now reserved for the linker? Assuming that the read/write flags are set in the SECTIONS area.

    Kindly,
    Graham