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.

PCIE example on EVMK2H doesn't print anything

Other Parts Discussed in Thread: TMDXEVMPCI

Hi,

I am trying to test pcie example on EVMK2H . But when I load .out file on c66x dsp 0 using CCS and run it I see no output on console. Similar is the case for other examples too. What might cause taht issue. Is there a certain settings for UART interface for CCS. I tested both of serial interface using putty and tera term

Regards 

Shehzad ahmed

  • Hi,

    Have you testing below MCSDK PCIe example code on EVMK2H?
    MCSDK Path: \ti\pdk_keystone2_3_01_03_06\packages\exampleProjects\PCIE_K2HC66BiosExampleProject

    The serial port configuration is not implemented on this project. You can see the debug logs in CCS console window. For more information refer "\ti\pdk_keystone2_3_01_03_06\packages\ti\drv\pcie\example\sample\Readme.txt" file for EP and RC mode configuration.

    In the MCSDK PCIe sample example, two DSP EVMs are used to test the PCIe driver. DSP 1 is configured as a Root Complex and DSP 2 is configured as End Point. Once the PCIe link is established, the following sequence of actions will happen:

    1. DSP 1 sends data to DSP 2 - DSP 2 waits to receive all the data
    2. DSP 2 sends the data back to DSP 1
    3. DSP 1 waits to receive all the data
    4. DSP 1 verifies if the received data matches the sent data and declares test pass or fail.

    Thanks,
  • Hi,
    I don't see any printing even in CCS debug console. What should I do?
    Regards
  • Hi,

    Try to debug the example code step by step. I have tested the example on EVMK2H, it is properly printing the debug log in CCS console window. See my below screen shot:

    Have you set the EVM boot mode as No-Boot mode? Refer below wiki to check the EVM boot mode

    Thanks,

  • Thanks now I am able to see printing in debug console for PCIe example. But printing stops at "Starting link training...". When I observe ltssm state. it shows state 0x02 which is POLL_ACTIVE. state is not changing what ca cause that

    Regards
  • Hi,

    It means the DSP does not detect PCIe connection. Have you connect another K2HEVM on other end of Break out card? See my below picture for PCIe example test setup:

    Thanks,

  • But documentation indicated that DETECT_QUIET and DETECT_ACT will determine whether a connection is present or not . No I have connected them using TMDXEVMPCI adapter cards through PCIe cable. But I searched through the forum and found that TMDXEVMPCI adapter cards are not compatible with EVMK2H as per this post .
    e2e.ti.com/.../427739

    As TMDXEVMPCI is compatible with keystone I, so I tried to test pcie with keystone I using TMDXEVMPCI card. But again PICE_exampleProject for keystone I is stuck at state POLL_ACTIVE. What should I do?

    Regards
  • Hi,

    MCSDK PCIe example used for validate the PCIe connection between two DSP's and PCIe driver. It is not directly support to interface with host PC or FPGA.

    In the MCSDK PCIe sample example, two DSP EVMs are used to test the PCIe driver. DSP 1 is configured as a Root Complex and DSP 2 is configured as End Point. Once the PCIe link is established, the following sequence of actions will happen:
    1. DSP 1 sends data to DSP 2 - DSP 2 waits to receive all the data
    2. DSP 2 sends the data back to DSP 1
    3. DSP 1 waits to receive all the data
    4. DSP 1 verifies if the received data matches the sent data and declares test pass or fail.

    Refer section "10 Test Setup and Results" on below document, it help you Keystone I pcie boot.
    MCSDK Path: "\ti\mcsdk_2_01_02_06\tools\boot_loader\examples\pcie\docs\README.txt"

    Thanks,