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.

Problem about linkerfile in C6670L



 Hello;

I am using Hyperlink interface example that trasfer data from L2SRAM in local device to L2SRAM in remote device.the data segment is placed in DDR3 which is the i/p to core0 So,how to allocate the data to be sent by hperlink interface(o/p from core 0) to L2SRAM memmory before seng it to the remote device.

there is a liker file i made it so, is there any modification to it ?

/****************************************************************************/
/*  lnk.cmd   v#####                                                        */
/*  Copyright (c) 1996@%%%%  Texas Instruments Incorporated                 */
/*    Usage:  lnk6x <obj files...>    -o <out file> -m <map file> lnk.cmd   */
/*            cl6x  <src files...> -z -o <out file> -m <map file> lnk.cmd   */
/*                                                                          */
/*    Description: This file is a sample linker command file that can be    */
/*                 used for linking programs built with the C compiler and  */
/*                 running the resulting .out file on a C620x/C670x         */
/*                 simulator.  Use it as a guideline.  You will want to     */
/*                 change the memory layout to match your specific C6xxx    */
/*                 target system.  You may want to change the allocation    */
/*                 scheme according to the size of your program.            */
/*                                                                          */
/*    Notes: (1)   You must specivy a directory in which rts6x00.lib is     */
/*                 located.  either add a -i"<directory>" line to this      */
/*                 file or use the system environment variable C_DIR to     */
/*                 specify a search path for the libraries.                 */
/*                                                                          */
/*           (2)   If the run-time library you are using is not named       */
/*                 rts6200[e].lib, rts6400[e].lib, or rts6700[e].lib, be    */
/*                 sure to use the correct name here.                       */
/*                                                                          */
/****************************************************************************/
-c
-heap  0x2000
-stack 0x80000
/* Memory Map 1 - the default */
MEMORY
{
        L1P:      o = 0x000E00000   l = 0x00008000 
        L1D:      o = 0x000F00000   l = 0x00008000
        L2SRAM:   o = 0x000800000   l = 0x00100000
} 

SECTIONS
{
    .text       >       L2SRAM
    .stack      >       L2SRAM
    .bss        >       L2SRAM
    .cinit      >       L2SRAM
    .cio        >       L2SRAM 
    .const      >       L2SRAM
    .data       >       L2SRAM
    .switch     >       L2SRAM 
    .sysmem     >       L2SRAM
    .far        >       L2SRAM
    .ppdata     >       L2SRAM
}


thanks you in advance;

  • You would need to have a space defined for the Remote Device L2SRAM, and the address should be the translated address.  Just as you would read/write those translatted addresses (which get translated by the hyperlink to their physical address on the remote device.)

    Best Regards,

    Chad