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/TMDSEVM572X: How to trace AM5728 evm with USB560v2 Sytem Trace using CCS ver7 in windows

Part Number: TMDSEVM572X
Other Parts Discussed in Thread: AM5728

Tool/software: Code Composer Studio

hi,

we have purchased AM5728 evm, USB560v2 System Trace and downloaded CCS v7 as part of development tools for our project.

we started customizing the hardware as per our requirement using AM5728 SOC.

Now, i want to familiarize AM5728 evm with USB560v2 System Trace, so i request you to provide example projects, quick guide and detailed document to debug the AM5728 hardware.

I have few queries regarding AM5728 EVM,

 1. can we debug DDR in AM5728 evm using USB560v2 System Trace.

2. what are gel files, how to use

3. can we load program into flash/mmc/sd card in AM5728 using USB560v2 System Trace.

4. how to load program into flash/mmc/sd card in AM5728

5. For tracing, is it need to be in Linux OS or OS independent.

BR

satya

  • Satya,

    1. You can debug code loaded into DDR using the 560v2 emulator.
    2. Gel files are basically scripts that are used to initialize your hardware. Depending on which device you selected, the gel files may already be configured for your EVM. The GPEVM_AM572X and IDK_AM572X have gel files attached to specific cores. During a debug session, you can access the gel functions from the Scripts menu when a core that has gel files loaded is highlighted.
    3/4. Are you wanting to boot linux from an SD card? If so, see www.ti.com/.../PROCESSOR-SDK-AM57X. If you just want to run bare-metal code you will need to setup a linker command file in a CCS project (processors.wiki.ti.com/.../Linker_Command_File_Primer).
    5. Hardware trace is supported on Windows and Linux.

    Thanks,
    Mark

  • Satya,

    Just adding to Mark's reply, please check the page below for a thorough overview about the Debug Process:
    software-dl.ti.com/.../sdto_ccs_debug-handbook.html

    Regards,
    Rafael
  • Hi Mark,

    2. The gel files are attached and already configured in EVM, if we need to design a board with AM5728 as per our requirement, how we have to load these device specific gel files.

    Debug with Emulator black hawk USBv560 STM: we have created a test project, build and .out file generated, we have connected GPEVM-AM5728 with emulator and loaded the .out in core A15 and outcome is OK. now, i want to test inter processor communication and DDR verification for all this is there worked out examples available means please do share it.

    Thanks,

    satya

  • Satya,

    If you have selected the GPEVM_AM572X as you device, gel files should be attached to the DSPs, A15s, M4s, ARM9s, PRUs, and the CS_DAP_DebugSS. The gels should automatically run the OnTargetConnect() function when connecting to the A15s. To run other gels, you can highlight a core and use the Scripts menu to run specific functions.

    How are you planning on using the AM57? Will it boot linux or are you wanting bare-metal examples? I would recommend following the setup guides here: http://www.ti.com/tool/PROCESSOR-SDK-AM57X.

    Thanks,
    Mark

  • Mark,

    For GPEVM_AM572X gel files are attached and it is working fine, my query is for custom board design with AM5728 how to attach gel files.

    we are planning to use AM57 with linux in future but right now need bare-metal examples.

    Thanks,

    satya

  • Satya,

    >>2. The gel files are attached and already configured in EVM, if we need to design a board with AM5728 as per our requirement, how we have to load these device specific gel files.

    For a custom board we can mostly provide generic suggestions, as we here in the CCS forum are not experts in the hardware itself.

    As you already know, the GPEVM_AM572X shows where each GEL file must be placed in the device configuration.

    Also, as you probably noticed, the GEL file that performs the largest amount of hardware initialization is usually located at the main core of the device - in the case of the AM5728, it is the <AM572x_startup_common.gel> (included by the <gpevm_am572x.gel) that is added to the Cortex_A15_0 core.

    If your hardware is close to the EVM, especially from a PMIC and DRAM point of view, there is a high probability the provided GEL file will work. You can always check the main initialization routine AM57xx_EVM_Initialization() inside the <AM572x_startup_common.gel> file and adjust the PMIC Values, as well as look into the <AM572x_ddr_config.gel> to find how the DRAM is configured - by default it uses the 532MHz with no ECC.

    Given that GEL is a C-style scripting language, you can create a simple loop that exercises the DRAM memory space for errors. One example is the small function DDR_DataTransferCheck() inside the <BeagleBone.gel> file (which is already installed with your CCS).

    Just one additional tip: before modifying the provided files, I would first create a separate copy of the GEL file set.

    Hope this helps,
    Rafael