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.

Executing on external memory and debug in CCS

Hello.

I want to use the external SDRAM for executing my application project. I will execute a bootloader at internal memory at first, and the bootloader loads application project to SDRAM and jumps to it.

There are two project, bootloader and application. I can use a debug mode for bootloader project in CCS. But I can't use the debug mode for application project, because the application project is executed on the external SDRAM, so it needs EMIF initialization before downloading the binary(*.out). Is there a way to initialize the external memory in CCS before download? I heard that other MCU and IDE has a script function for configure registers before download, so they can use debug mode like this situation.

Please let me know the way.

Best Regards.

  • Wonjae,

    Do you need to just initialize the EMIF module to get the SDRAM configured through debugger or a gel file and load the SDRAM memory prior to executing the code (bootloader project as you have mentioned) ? 

  • Hello KARTHIKEYAN

    Yes, I need a initialization way for downloading the my application project(executed on SDRAM) to a target. Is it possible to download and execute the project on the SDRAM without any configuration for EMIF? Consquently, I want to debug my application project on the SDRAM in CCS.

    Thank you

  • Since you need to initialize the EMIF module and set-up SDRAM before you can download and run your code, you may need to do the following.

    a. Use a GEL file and add the config routines to OnTargetConnect() - which gets executed when target is connected or add a new routine as hot menu in the Gel file and access them through the scripts tab

    b. I do not have a sample config routine, but here are the procedures to initialize EMIF through gel that I can think off,

        1) Enable pinmux module and configure the required pinmux for EMIF SDRAM

        2) Program the SDRAM Configuration registers like SDTIMR,SDSRETR,SDRCR,SDCR and so on as per your requirement

    Once you get this set-up, your EMIF module is initialized, post which you can download the application code and then load the other code following that.

  • Hello.

    Thank you for your reply. This is the first time to use GEL file, so I need to study it :). I found an application report, 'Creating Device Initialization GEL Files' in TI website. Is it helpful to me? Please recommend something to help me if you have.

    Best Regards.