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.

How to load programm code in external SDRAM via CCStudio

Other Parts Discussed in Thread: CCSTUDIO, OMAP-L138

Hello.
Sorry. I'm begginer.
I work with TMS320C6722, DSP/BIOS and CCSv5.2
I can load and run my project in RAM of my target.
But I can't load it and run it in my external SDRAM.
I only can write data in SDRAM and then read it from SDRAM.
(EMIF initialization I realize at begin of my programm)
Help me. Haw can I write my programm code in SDRAM via CCStudio?
Thank's

  • In your project, in linker.cmd file, need to define as:

    /*****************************************************************************
    * linker command file for OMAP-L138 test code.
    *
    * © Copyright 2009, Logic Product Development, Inc. All Rights Reserved.
    ******************************************************************************/

    -l rts67plus.lib

    -stack           0x00000800
    -heap            0x00000800

    MEMORY
    {
       dsp_l2_ram:      ORIGIN = 0x11800000  LENGTH = 0x00040000
       entry_point:     ORIGIN = 0x80010000  LENGTH = 0x00000080
       shared_ram:      ORIGIN = 0x80010080  LENGTH = 0x00007F80
       external_ram:    ORIGIN = 0xC0000000  LENGTH = 0x08000000
       arm_local_ram:   ORIGIN = 0xFFFF0000  LENGTH = 0x00002000
    }

    SECTIONS
    {
       .text:_c_int00 > entry_point
       .cinit      > shared_ram
       .text       > shared_ram
       .const      > shared_ram
       .bss        > shared_ram
       .far        > shared_ram
       .switch     > shared_ram
       .stack      > shared_ram
       .data       > shared_ram
       .sysmem     > shared_ram
       .cio        > shared_ram
    }


    In SECTIONS, you need to specify which section of code goes to specific memory.
    As per above example, text, data, bss and etc goes to shared ram.

    Refer the C6000 BIOS SDK installation source code.

    -Thanks,
    Balaji N

  • Thank's

    Well. But the problem is, for writing the programme code in SDRAM it's necessary in the beginning to adjust EMIF

    But this I can do only from its program

    To write my program in SDRAM I need to adjust EMIF before functioning the program facility
    I need make this via CCStudio
    But I can not do it

    Thank's. Alexander

  • GEL Scripts are used to initialize the processor,RAM timing paramaeters and etc.
    In CCS, with debugger (Emulator), need to run the GEL scripts before load the code
    in SDRAM memory.

    -Thanks,
    Balaji N