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.

Not able to connect to the target in CCS studio

Other Parts Discussed in Thread: AM5728

Hello,

I'm using AM5728 custom designed board, while testing the board with CCS studio getting below error:

Cortex_M4_IPU1_C0: GEL Output: --->>> AM572x Cortex M4 Startup Sequence In Progress... <<<---
Cortex_M4_IPU1_C0: GEL Output: --->>> AM572x Cortex M4 Startup Sequence DONE! <<<---
Cortex_M4_IPU1_C1: GEL Output: --->>> AM572x Cortex M4 Startup Sequence In Progress... <<<---
Cortex_M4_IPU1_C1: GEL Output: --->>> AM572x Cortex M4 Startup Sequence DONE! <<<---
Cortex_M4_IPU2_C0: GEL Output: --->>> AM572x Cortex M4 Startup Sequence In Progress... <<<---
Cortex_M4_IPU2_C0: GEL Output: --->>> AM572x Cortex M4 Startup Sequence DONE! <<<---
Cortex_M4_IPU2_C1: GEL Output: --->>> AM572x Cortex M4 Startup Sequence In Progress... <<<---
Cortex_M4_IPU2_C1: GEL Output: --->>> AM572x Cortex M4 Startup Sequence DONE! <<<---
C66xx_DSP1: GEL Output: --->>> AM572x C66x DSP Startup Sequence In Progress... <<<---
C66xx_DSP1: GEL Output: --->>> AM572x C66x DSP Startup Sequence DONE! <<<---
C66xx_DSP2: GEL Output: --->>> AM572x C66x DSP Startup Sequence In Progress... <<<---
C66xx_DSP2: GEL Output: --->>> AM572x C66x DSP Startup Sequence DONE! <<<---
CortexA15_0: GEL Output: --->>> AM572x Cortex A15 Startup Sequence In Progress... <<<---
CortexA15_0: GEL Output: --->>> AM572x Cortex A15 Startup Sequence DONE! <<<---
CortexA15_1: GEL Output: --->>> AM572x Cortex A15 Startup Sequence In Progress... <<<---
CortexA15_1: GEL Output: --->>> AM572x Cortex A15 Startup Sequence DONE! <<<---
IcePick_D: GEL Output: Ipu RTOS is released from Wait-In-Reset.
IcePick_D: GEL Output: Ipu SIMCOP is released from Wait-In-Reset.
IcePick_D: GEL Output: IVAHD C66 is released from Wait-In-Reset.
IcePick_D: GEL Output: IVAHD ICONT1 is released from Wait-In-Reset.
IcePick_D: GEL Output: IVAHD ICONT2 is released from Wait-In-Reset.
CS_DAP_DebugSS: GEL Output: --->>> CONFIGURE DEBUG DPLL settings to 1.9 GHZs  <<<---
CS_DAP_DebugSS: GEL Output: > Setup DebugSS 1.9GHz in progress...
CS_DAP_DebugSS: GEL Output: < Done with Setup DebugSS Trace export clock (TPIU) to 97MHz
CS_DAP_DebugSS: GEL Output: < Done with Setup DebugSS PLL Clocking 1.9GHz
CS_DAP_DebugSS: GEL Output: < Done with Setup DebugSS ATB Clocking 380MHz
CS_DAP_DebugSS: GEL Output: < Done with Setup DebugSS Trace export clock (TPIU) to 97MHz
CS_DAP_DebugSS: GEL Output: --->>> TURNING ON L3_INSTR and L3_3 clocks required for debug instrumention <<<<<<----
CS_DAP_DebugSS: GEL Output: ---<<< L3 instrumentation clocks are enabled >>>> ---
CS_DAP_DebugSS: GEL Output: --->>> Mapping TIMER supsend sources to default cores <<<<<<----
CS_DAP_PC: GEL Output: Cortex-A15 1 is not in WIR mode so nothing to do.
CortexA15_0: GEL Output: --->>> AM572x Target Connect Sequence Begins ... <<<---
CortexA15_0: GEL Output: --->>> AM572x Begin MMC2 Pad Configuration <<<---
CortexA15_0: GEL Output: --->>> AM572x End MMC2 Pad Configuration <<<---
CortexA15_0: GEL Output: --->>> AM572x PG1.1 GP device <<<---
CortexA15_0: GEL Output: --->>> I2C Init <<<---
CortexA15_0: GEL Output: --->>> PRCM Clock Configuration for OPPNOM in progress... <<<---
CortexA15_0: GEL Output:     Cortex A15 DPLL OPP 0 clock config is in progress...
CortexA15_0: GEL Output:     Cortex A15 DPLL is already locked, now unlocking...  
CortexA15_0: GEL Output:     Cortex A15 DPLL OPP 0 is DONE!
CortexA15_0: GEL Output:     IVA DPLL OPP 0 clock config is in progress...
CortexA15_0: GEL Output:     IVA DPLL OPP 0 is DONE!
CortexA15_0: GEL Output:     PER DPLL OPP 0 clock config in progress...
CortexA15_0: GEL Output:     PER DPLL already locked, now unlocking  
CortexA15_0: GEL Output:     PER DPLL OPP 0 is DONE!
CortexA15_0: GEL Output:     CORE DPLL OPP 0 clock config is in progress...
CortexA15_0: GEL Output:     CORE DPLL OPP  already locked, now unlocking....  
CortexA15_0: GEL Output:     CORE DPLL OPP 0 is DONE!
CortexA15_0: GEL Output:     ABE DPLL OPP 0 clock config in progress...
CortexA15_0: GEL Output:     ABE DPLL OPP 0 is DONE!
CortexA15_0: GEL Output:     GMAC DPLL OPP 0 clock config is in progress...
CortexA15_0: GEL Output:     GMAC DPLL already locked, now unlocking....
CortexA15_0: GEL Output:     GMAC DPLL OPP 0 is DONE!
CortexA15_0: GEL Output:     GPU DPLL OPP 0 clock config is in progress...
CortexA15_0: GEL Output:     GPU DPLL OPP 0 is DONE!
CortexA15_0: GEL Output:     DSP DPLL OPP 0 clock config is in progress...
CortexA15_0: GEL Output:     DSP DPLL OPP 0 is DONE!
CortexA15_0: GEL Output:     PCIE_REF DPLL OPP 0 clock config is in progress...
CortexA15_0: GEL Output:     PCIE_REF DPLL OPP 0 is DONE!
CortexA15_0: GEL Output: --->>> PRCM Clock Configuration for OPP 0 is DONE! <<<---
CortexA15_0: GEL Output: --->>> PRCM Configuration for all modules in progress... <<<---
CortexA15_0: GEL Output: --->>> PRCM Configuration for all modules is DONE! <<<---
CortexA15_0: GEL Output: --->>> DDR3 Initialization is in progress ... <<<---
CortexA15_0: GEL Output:     DDR DPLL clock config for 532MHz is in progress...
CortexA15_0: GEL Output:     DDR DPLL already locked, now unlocking....
CortexA15_0: GEL Output:     DDR DPLL clock config for 532MHz is in DONE!
CortexA15_0: GEL Output: DEBUG: Overall DDR configuration
CortexA15_0: GEL Output: DEBUG: EMIF1 and EMIF1 DDR IOs config (CTRL_MODULE_CORE_PAD module)
CortexA15_0: GEL Output: DEBUG: DDR PHY config (CTRL_MODULE_WKUP module)
CortexA15_0: GEL Output: DEBUG: EMIF1 ctrl + associated DDR PHYs initial config (EMIF1 module)
CortexA15_0: GEL Output: DEBUG: EMIF1 channel - Launch full levelling
CortexA15_0: GEL Output: DEBUG: EMIF2 ctrl + associated DDR PHYs initial config (EMIF2 module)
CortexA15_0: GEL Output: DEBUG: EMIF1 channel - Launch full levelling
CortexA15_0: GEL: Error while executing OnTargetConnect(): Target failed to read 0x4D000318
    at (*((unsigned int *) (base_addr+0x00000318))|0x00000100) [AM572x_ddr_config.gel:13]
    at EMIF_Config(0x4D000000) [AM572x_ddr_config.gel:456]
    at AM572x_DDR3_532MHz_Config() [AM572x_startup_common.gel:66]
    at OnTargetConnect()

In our board we are using micron DDR with 2GB.

Can anyone please let me know do i need to do any modification before test the board in CCS.

Thanks,

Shekar

  • Have you modified the GEL files in any way?

  • I have edited my previous post. Made an error there, sorry.
  • How is your DDR3 memory connected to the processor?
  • We are using the connection same as like in beagle x15 board, only change is DDR make(we are using micron).

    All gel files used as it is given for board/device "GPEVM_572X_SiRevA" in configuration.
  • Hi Sekhar,
    Please check for the following questions and provide your answer to understand this error better:
    - Do you have the PMIC shutdown feature enabled? When you get this error whether the board is still on or off?
    - Do you have a SD card present which has a valid linux boot? In that case remove the SD and then power on and try the CCS connect.

    Please share your DDR3 gel file here.

    Thanks ,
    Benjamin
  • Thanks Benjamin,

    Do you have the PMIC shutdown feature enabled? When you get this error whether the board is still on or off?
    -- Board is still ON, from PMIC we are getting the voltages.

    Do you have a SD card present which has a valid linux boot? In that case remove the SD and then power on and try the CCS connect.
    -- I tried to connect the board, just followed the instruction in the below link given.
    processors.wiki.ti.com/.../AM572x_GP_EVM_Hardware_Setup.

    I have attached the gel files used.

    About GEL Files:

    #1. In the "AM572x_ddr_config.gel" we have disabled HW_LEVELLING since there was an error during connect. (#define HW_LEVELING_ENABLED     (0))

    #2: Should we modify the DDR config since we have 512MB *4 similar to Beagle-X15, part# MT41K256M16HA-125)

    #3: Any other bioard GEL file to be modified

    We have followed the below steps on CCS (version 6.1):

    1. Create new target configurations --> Select  "GPEVM_AM5728_SiRevA".

    2. Launch the created .ccxml file.

    3. Connect to CortexA15_0.


    In the CCS console window we see the below messages:

    ----------------------------------------------------------------------------------

    CortexA15_0: GEL Output: --->>> DDR3 Initialization is DONE! <<<---
    CortexA15_0: GEL Output: --->>> AM572x Target Connect Sequence DONE !!!!!  <<<---

    ----------------------------------------------------------------------------------

    We have created an U-Boot Project (u-boot-d61c192) and Kernel Project (linux-4-1-13)

    After the connect, can you please give us the steps:

    #1. Should we load U-Boot?

    #2: Or should we try to load the Kenel.

    #3: Any specific steps to check the target and load status.

    #4: What should be the initial system register values (PC, LR, SP etc.)

    #5: Please share any application note on x15/AM5728 EVM to debug u-boot and kernel.

    Thanks,

    Shekar

     

    gel.zip

  • Hi,

    Any update on these please.

    Thanks,

    Shekar

  • Hi Shekar,

    After disabling HW Leveling whether the DDR3 accesses are successful? Try accessing the memory window to write and read from the memory location between 0x80000000 - 0xFFFFFFFF.

    There are no change required in Gel files if your hardware is similar to the GP EVM for the DDR3.

    Update the CCS to have the Sitara device support 1.2.8 or manually update to the latest gel files and try testing the HW Leveling: 

    software-dl.ti.com/.../sitara_device_support_1.2.8.zip

    Thanks,

    Benjamin