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.

C6638 K2_STK_DSP_v1.1.zip pcie 外部自环



TI工程师你们好:

        确认个东西,最近在研究官网提供的 K2_STK_DSP_v1.1.zip 中的PCIE代码,

默认配置为PCIE_PHY_LOOPBACK,core0作为RC处理自发自收MSI中断,验证代码和功能没有问题。

但是

//PCIE_Loopback_Mode loop_mode= PCIE_PHY_LOOPBACK;
PCIE_Loopback_Mode loop_mode= PCIE_LOOPBACK_DISABLE;

将其修改为PCIE_LOOPBACK_DISABLE,代码的原理是CORE1作为EP,CORE0作为RC,core0和core1都卡在如下代码初始化过不去,

/*Insure link training completion and success by observing LTSSM_STATE field in
DEBUG0 register change to 0x11.*/
while(LTSSM_STAT_L0 != ((PCIE_CAP_implement_regs->DEBUG0
&CSL_PCIE_CFG_SPACE_ENDPOINT_DEBUG0_LTSSM_STATE_MASK)
>>CSL_PCIE_CFG_SPACE_ENDPOINT_DEBUG0_LTSSM_STATE_SHIFT));

测试板子为EVM C6638 K2K板卡,我怀疑是否需要将pcie0和pcie1直连后才可以进行CORE0作为RC,CORE1作为EP的测试,此时可否理解为PCIE0接口在CORE0上,PCIE1接口在CORE1上,需要硬件工程师将对接的线路直连。