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/TMS320DM8148: Trying to Run Edma Example for DSP core of DM814x from EDMA LLD.

Part Number: TMS320DM8148

Tool/software: Code Composer Studio

I am Booting up using linux , and tried to run the the example using CCS , in which i am not able to connect to DSP Core . If i run the program using slave loader from linux side , the program seems to be halting and not allowing me to debug the DSP Core .

  • Hi Ammar,

    I need more details regarding your issue.

    Do you use DM814x TI EVM or custom board? Do you use DM814x EZSDK 5.05.02.00? What steps exactly and in which order do you execute in your use case?

    Regards,
    Pavel
  • Hi Ammar,

    Please share steps followed to connect to DSP, someone can help you on that if your missing any steps, I hope your using TI814.ccxml. When your running from slave core how are you choosing EDMA channels, It is possible that channels are occupied or programmed from other cores or linux itself and even the slots (param entries) might also be occupied or programmed by someone.

  • Yes Using latest Ezsdk with Z3 Dm814x Module.
    I compiled the EDMA LLD Example for DM814x DSP side. Included in edma3_lld_02_11_06_01 package.

    After compiling i try it running like sys link example using slave loader . while booting up from linux.
    And Tried to connect to DSP Using ccs after connecting to Arm A8 first .
  • I didnt change any thing in the pre included example in edma3_lld_02_11_06_01 package , after compiling i first run the Ti814x.ccxml , connect to the A8 core , after that tried to connect to DSP core .
  • what is error you have when connect to DSP ?
  • Thank You for the reply ,
    The error is that the core is held in Reset. If i run the program from Slave Loader and load symbols from ccs instead of program , On connection to DSP it says The program is haulted and core need to be restarted.
  • Hi Ammar,

    DSP pll might not been enabled in u-boot may be , Please check in your u-boot "dsp_pll_config" is been called or not, If not please call that function and try attaching to DSP halting at u-boot console.

    Function would look like below,

    static void dsp_pll_config()
    {
        pll_config(DSP_PLL_BASE,
                DSP_N, DSP_M,
                DSP_M2, DSP_CLKCTRL);
    }

    reset sequence for DSP you will find it in GEL file , it would look as below give some time between each command.

    #mw 0x48180400 0x2

    #mw 0x48180420 0x2

    #mw 0x48180A10 1

    #mw 0x48180A10 0

  • DSP is already configured with uboot , Have tried Syslink example which run on both DSP and A8 .
  • Ammar,

    Make sure DSP clock is enabled and DSP is power ON.

    ti-ezsdk_dm814x-evm_5_05_02_00/board-support/host-tools/DM814x_gel.zip/DM814x_PG2.x.gel

    From the above GEL file, you can explore GEMSSClkEnable() and cmdDSPPLL() functions. Before connecting to DSP core, you can make register dump of the DSP related registers (CM_GEM_CLKSTCTRL, CM_ACTIVE_GEM_CLKCTRL, PM_ACTIVE_PWRSTST, etc) and see if you will have there the expected values.

    Also EZSDK comes with different version of EDMA3 LLD than what you are using, so I would suggest you to switch to that version.

    ti-ezsdk_dm814x-evm_5_05_02_00/component-sources/edma3lld_02_11_05_02

    Regards,
    Pavel