Serial communication problems about PCIe on TX2

Hello, I am confused about the PCI-E x4 on the Jetson TX2, I have already read the document “JetsonTX2_OEM_Product_DesignGuide” but I could not find anything introduced details about PCI-E x4. What I really want to know is the method about code of reading files from PCI-E interface(serial communication). But the document just introduce circuit about PCI. Can anyone help me? Thanks a lot!

Hi Sea_Otter,

I am not sure about your request. Do you want a script or a tool that can read/write PCIe device?

Thank you for your reply. I want some C/C++ code or documents about how to write the code, which can help me read the file from PCIe on TX2 (imagine TX2 is connecting with other device by PCIe x4 and I want to use some code to read the file arrived).

This looks not a tegra specific issue. You can find such script over the net.

Here is one from other’s github:

https://github.com/andre-richter/easy-pci-mmap

OK, thank you very much! Give you a big hug ^_^