Part Number: AM2434
Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hi Ti Expert,
I am debugging a very simple PCIE project. The following are the code.
These code can run well on CCS Version: 12.4. both reading and writing.
When using CCS Version: 20.2.0, the writing is all right, but crash occurs when I read PCIE.
I also post the sysconfig of the two test, they are almost the same.
please help me with this,
int main(void)
{
uint32_t * test = (uint32_t *)(0x68000000U + 0x01000000U);
uint32_t read_test = 0;
System_init();
Board_init();
Drivers_open();
HAL_PCIE_fpgaInit(gPcieHandle[CONFIG_PCIE0]);
*(test+0) = 0x1f; // writing
*(test+0) = 0x0; // writing
*(test+0) = 0x1; // writing
read_test = *(test+0x140/4); //reading
Board_deinit();
System_deinit();
return 0;
}
This is my init function for fpga-PCIE.
int32_t HAL_PCIE_fpgaInit(Pcie_Handle handle)
{
int32_t status = SystemP_SUCCESS;
pcieHandle = handle; //gPcieHandle[CONFIG_PCIE0]
//Drivers_open(); // if this driver is the only one in this project, need this line
//Board_driversOpen(); // if this driver is the only one in this project, need this line
status = Pcie_getVendorId(pcieHandle, PCIE_LOCATION_REMOTE, &vndId, &devId);
if (SystemP_SUCCESS != status)
{
return status;
}
status = pcieFpgaSetStatusCmd(pcieHandle);
if (SystemP_SUCCESS != status)
{
return status;
}
status = pcieFpgaEpBar1Cfg(pcieHandle);
if (SystemP_SUCCESS != status)
{
return status;
}
status = pcieWriteDevStatCtrlReg(pcieHandle);
if (SystemP_SUCCESS != status)
{
return status;
}
pcie_initialized_indicating = 1;
return status;
}


Thanks
Chunyang

