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/TMS320DM8168: Issue with Gel for DDR Init

Part Number: TMS320DM8168

Tool/software: Code Composer Studio

When using the Gel file provided at https://processors.wiki.ti.com/index.php/DM816x_C6A816x_AM389x_DDR3_Init, I get the following error:

CortexA8: Trouble Writing Memory Block at 0x4c000010 on Page 0 of Length 0x4: (Error -2130 @ 0x4C000010) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.2.0.00002)

I have found that this error occurs on the last line of the following (lines 2139-2141 in the gel file):

WR_MEM_32(EMIF4_0_SDRAM_REF_CTRL, 0x0000613B); // Initially a large refresh period
WR_MEM_32(EMIF4_0_SDRAM_REF_CTRL, 0x1000613B); // Trigger initialization
WR_MEM_32(EMIF4_0_SDRAM_REF_CTRL, (0x10000000|SDREF)); // Move to a smaller more correct one

If I don't use the initial large refresh period, and instead write SDREF and then 0x10000000 | SDREF to the register, the gel file is able to load, but then DDR3_SlaveRatio_ByteWiseSearch_TI816x.out gets stuck after entering the ratio values. The frequency I am using is 796.5 MHz.

  • Hi, 

    We do not have any collateral or resource beyond what you see in the product folder. You may search the E2E forum for archived posts of previous discussions which may help address your questions. For more info on TMS320DM8168 support, please see the FAQ in 

        https://e2e.ti.com/support/processors/f/791/t/813421

    As recommended on the product folder and in FAQ , please feel free to reach out the 3rd parties listed in them for additional support.

        www.ti.com/.../TMS320DM8168

    Regret the inconvenience and lack of guidance on this.

    Rex