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