This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM2431:使用 RPi CM4 (PCIe RC) 进行 PCIe 通信测试

Guru**** 2693225 points

Other Parts Discussed in Thread: TMDS243EVM

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1588419/am2431-pcie-communication-test-with-rpi-cm4-pcie-rc

器件型号: AM2431
Thread: TMDS243EVM 中讨论的其他器件

我在 TMDS243EVM 评估板上下载并运行了 enumerate_ep 示例、将 CM4 连接到 PCIe 并进行了引导、并正常输出以下日志。

(可悲的是,CM5 在另一天发生的问题仍然没有解决 https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1569217/am2431-the-raspberry-pi-cm5-pcie-rc-cannot-properly-enumerate-the-am2431-tmds243evm-pcie-ep)

PCIe:EP 已初始化并等待链路
PCIe:检测到链路
PCIe 链路参数:GT 速度为 5.0 Mb/s 的 PCIe 第 2 代、通道数:1.
EP 处于 D0 状态
PCIe:发出 APPL 就绪信号
应用:PCIe 就绪

此外、在 RPi CM4 中输入 lspci -vv 命令将正常输出以下日志。  

image.png

CM4 进入时  

“sudo hexdump /sys/bus/pci/devices/0000:01:0000.0/resource0 命令“

出现以下错误。
hexdump:/sys/bus/pci/devices/0000:01:00.0/resource0:输入/输出 两种方法

在这种情况下、当 EP 发送简单的消息或流式传输数据时、RC 如何读取该数据? 我应该修改示例代码的哪个部分?