EDIT: MOVED TO INTEGRA Forum Per Poster Request - C.Courtney
I am attempting a PCIe loopback test similar to the PCIe example project in the PDK. I have a TMDXEVM6678L running a slightly modified version of the EP example. I also have an Integra C6 on our own CPE module running the RC side using code created by using the RC portion of the PCIe example project provided in the PDK for the DSP. There is a PEX 8617 PCIe switch between them (I believe I have this configured correctly). I am able to send the data from the RC to the EP and verify it through the code composer memory view and also can do a memory dump from the Wind River work bench tool and read the data in the DSP. At this point I have not yet written the data back to the RC. After writing the data back to the RC I see that the Activity status register in the RC indicates ”Inbound buffers are not empty”. I also have seen a master abort error set on the EP side, but not every time.
I attempt to read the DSP memory again and I cannot. Data abort error is indicated by the VxWorks shell. SIG_SYS_ERROR is indicated in the STATUS_Command register on the DSP (EP).
I CAN HOWEVER read the switch configuration via it’s BAR 0 address.
I then attempt the data back from the DSP side and get very peculiar results loaded into the dstBuf (0x62800000 is the address of the PCIe space I am attempting to read:
[0] unsigned int 0x94CD0C6E (Hex) 0x00818500
[1] unsigned int 0xEE908000 (Hex) 0x00818504
[2] unsigned int 0x94CD0C6E (Hex) 0x00818508
[3] unsigned int 0xEE908000 (Hex) 0x0081850C
[4] unsigned int 0x94CD0C6E (Hex) 0x00818510
[5] unsigned int 0xEE908000 (Hex) 0x00818514
[6] unsigned int 0x94CD0C6E (Hex) 0x00818518
[7] unsigned int 0xE8800000 (Hex) 0x0081851C
<- single stepped above this
<- run to completion returns results with every other word correct
[8] unsigned int 0x62800000 (Hex) 0x00818520
[9] unsigned int 0x00000008 (Hex) 0x00818524
[10] unsigned int 0x62800000 (Hex) 0x00818528
[11] unsigned int 0x0000000A (Hex) 0x0081852C
[12] unsigned int 0x62800000 (Hex) 0x00818530
[13] unsigned int 0x0000000C (Hex) 0x00818534
[14] unsigned int 0x62800000 (Hex) 0x00818538