Part Number: AM5726
Other Parts Discussed in Thread: AM5726
Tool/software: TI-RTOS
Hi,
This is a follow-up question to this thread: 
Now, I have hit another problem.
As suggested in the above thread, I have re-map the PCIe configuration space on the M4 from 0x2000_0000 to 0xA000_0000. Now, if I use the memory browser, I can see the remote device and vendor id at address 0xA400_4000. Now, I tried to used the PCIe LLD to read these registers. I used the following code:
pcieRegisters_t myRegs = {0};
pcieVndDevIdReg_t myRemoteCfgDevAndVendorID = {0};
myRegs.vndDevId = &myRemoteCfgDevAndVendorID;
if ((retVal = Pciev1_readRegs (handle, pcie_LOCATION_REMOTE, &myRegs)) != pcie_RET_OK)
{
Log_print1(Diags_ERROR, "Read REMOTE DEVICE AND VENDOR ID register failed! retVal=%d\n", retVal);
}
else
{
Log_print2(Diags_INFO, "Local Vendor ID: %x, Device ID: %x\n", myRemoteCfgDevAndVendorID.vndId, myRemoteCfgDevAndVendorID.devId);
}
My first problem is that I am always getting 0xFFFF for both ID.
The second problem I have is that when I try to force a read at address 0xA400_4000, the M4 crashes and I get the following outputted in the Linux console:
[ 45.094907] omap_l3_noc 44000000.ocp: L3 application error: target 5 mod:1 (unclearable) [ 45.094920] omap_l3_noc 44000000.ocp: L3 debug error: target 5 mod:1 (unclearable)
Why can I read it in the memory browser but I can't read the value in the code?
Best regards,
- David