AnsweredAssumed Answered

Hello. MPC5674F Link Command File (LCF) is being created. I want to enter unique information in the LCF. Is there a way to declare a symbol for unique information in the MPC5674F LCF and enter its symbol value?

Question asked by choonha ryu on Oct 13, 2017
Latest reply on Oct 29, 2017 by ZhangJennie

MEMORY
{
    /* FLASH: 0x00000000 - 0x0003FFFFF */
    /* Fixed location required for RCHW and program entry point*/
    resetvector:           org = 0x00000000,   len = 0x00000008

    /* Contains initializations from __ppc_eabi_init.c,
     MPC56xx_HWInit.c, MPC56xx_init_*.c and the entry point (__startup).
     Should be 4K since the hardware automatically creates a default TLB entry
     from the start of the entry point specified in RCHW.
     */
    init:                   org = 0x00000010,   len = 0x00000FF0 /* ~4K */

    /* ~63K gap required to align the exception handlers.*/

    /* Contains interrupt branch tables for both core and INTC module
     and the ISR handlers code. Note, the gap is required since the vector
     base address field of core IVPR is defined within the range [0:15], the
     INTC branch tables must be loaded at an address aligned to 64K boundary.
     */
    exception_handlers: org = 0x00010000,   len = 0x0020000 /* 128K */

    /* Space allocated for user code and device initialization.
    ROM Image address should be set with the start address of this
    segment in order to instruct the runtime to initialize the
    static variables. All the section above are ignored for this action.
    Please see -romaddr linker option.*/
    internal_flash:        org = 0x00030000,   len = 0x003D0000 /* 3904K */

    /* SRAM: 0x40000000 - 0x4003FFFF */
    internal_ram:       org = 0x40000000,   len = 0x00030000 /* 192KB */
    heap  :             org = 0x40030000,   len = 0x00008000 /* 32KB Heap start location */
    stack :             org = 0x40038000,   len = 0x00008000 /* 32KB Start location for Stack */
 


    /* ROM SW ID */
    rom_sw_id:    org = 0x40035000,   len = 0x0000000D
}

 

 

SECTIONS
{

 GROUP : {
   /* I want to fill the value of symbol */
 } > rom_sw_id

}

Outcomes