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.

Error in configuring DDR of C6472

Hello,

While initializing the DDR2 of the c6472 EVM, the CSL_ddr2Init () and CSL_ddr2Open () functions return back properly while when I try setting up configuration parameter using CSL_ddr2HwSetup (), the control does not return back at all. The execution simply stops at this. It does not even return an error.

I was able to execute the “Ddr2_normal_mode_read_write_example” example successfully. But when I try to incorporate it in my application, I am facing the above issue.

 

Declarations made:

CSL_Ddr2Handle    hDdr2;

CSL_Status          status;

CSL_Ddr2HwSetup     hwSetup ;

CSL_Ddr2Timing1     tim1 = CSL_DDR2_TIMING1_DEFAULTS;

CSL_Ddr2Timing2     tim2 = CSL_DDR2_TIMING2_DEFAULTS;

CSL_Ddr2Settings    set  = CSL_DDR2_SETTING_DEFAULTS;

// setup the hardware parameters

hwSetup.refreshRate = SDRAM_REFRESH_RATE_DEFAULT;

hwSetup.timing1Param = &tim1;

hwSetup.timing2Param = &tim2;

hwSetup.setParam = &set; 

 

Function call: CSL_ddr2HwSetup (hDdr2, &hwSetup);   

Please note that CSL_ddr2Open () and CSL_ddr2Open () are successfully executed before calling CSL_ddr2HwSetup ().

I have no separate ".cmd" file in the project as in the example. Will that be a problem? I removed it as there were conflicts in the memory map.

Help in this regard is highly appreciated.

 

-Varun

  • Varun,

    Is it possible for you to step in the code and see where exactly it hangs. i can see there is no error print at all inside the function.

     

    Thanks,

    Arun.

  • Hi,ArunMani

        I also run the csl_ddr on the Sundance DSP.  But at the  Verify that the data was indeed written  steps. it always returns FAILED.  Does the different board has different result?

    for (index = 0; index < DATA_CNT; index++) {
    if (pDdr2Data[index] != (tempData + index)) {
    result = FAILED;
    break ;
    }
    }

    I look the value through watch window, find that the first value pDdr2Data[0]  is not the same as expected. So what is the problem?

  • Yuan,

    Please Create New Threads for New Issues, and even for similar issues that have already been reported.
    Do not reply to a thread that has already been answered and say "I'm having the same problem".
    You will get a faster response if you create a new issue that is not already marked answered.