Other Parts Discussed in Thread: SYSCONFIG, DP83826E
主题中讨论的其他器件:SysConfig、 DP83826E
工具/软件:
尊敬的 TI 专家:
我的 CCS 版本是 CCS 20.2.0、 SDK 为 ind_comms_sdk_am243x_11_00_00_08。
我们的设计是使用 PCIe 进行通信的 AM243x + Altera FPGA。 MCU 为 RC、FPGA 为 EP。
在 SDK 演示后、 pcie_buf_transfer_rc(C:\ti\ind_comms_sdk_am243x_11_00_00_08\mcu_plus_sdk\examples\drivers\pcie_buf_transfer\pcie_buf_transfer_rc\am243x-evm)、我们开发了自己的 PCIe 工程。
在旧版本的 CCS 12.4 和 SDK 9.2 中、我们的工程可在读写两方面正常运行。
但是当我更新到新版本的 CCS 和 SDK 时、我们的工程无法读取、总是卡在这里、

以下是我们项目的主要代码和新旧项目的屏幕截图。
内部 main (void)
{
uint32_t * test =(uint32_t *)(0x68000000U + 0x010000000U);
uint32_t READ_TEST = 0;
system_init();
BOARD_INIT ();
drivers_open();
HAL_PCIe_fpgaInit (gPcieHandle[CONFIG_PCIE0]);
*(TEST+0)= 0x1f; //写入
*(TEST+0)= 0x0; //写入
*(TEST+0)= 0x1; //写入
READ_TEST =*(TEST+0x140/4); //读取、Isse 在此处
BOARD_DEINIT();
system_deinit();
返回 0;
}
//这是我的 FPGA-PCIe 初始化函数。
int32_t HAL_pcie_fpgaInit((Pcie_Handle 句柄)
{
int32_t 状态= SystemP_Success;
pcieHandle =句柄;//gPcieHandle[CONFIG_PCIE0]
//Drivers_open();//如果此驱动程序是此项目中唯一的驱动程序、则需要此行
// Board_drivers Open ();//如果此驱动程序是此项目中唯一的驱动程序、则需要此行
status = pcie_getVendorId (pcieHandle、pcie_location_remote、&vndId、&DevID);
if (SystemP_Success!= status)
{
返回状态;
}
Status = pcieFpgaSetStatusCmd (pcieHandle);
if (SystemP_Success!= status)
{
返回状态;
}
Status = pciefpgaEpBar1Cfg (pcieHandle);
if (SystemP_Success!= status)
{
返回状态;
}
状态= pcieWriteDevStatCtrlReg (pcieHandle);
if (SystemP_Success!= status)
{
返回状态;
}
pcie_initialized_inding = 1;
返回状态;
}

用于旧工程的 SysConfig

用于新工程的 SysConfig
请帮助我解决这个问题、
BR、
春阳
