Introduction
The PCIe benchmark (EP) example benchmarks the buffer transfer speed between RC and EP device.
The RC device sends a 4MB buffer to the EP device. The EP device waits for the buffer to receive and acknowledges the reception of buffer by sending a legacy IRQ to the RC device. This is repeated multiple times using CPU transfer and UDMA and benchmarking is done from RC device.
Supported Combinations
Parameter | Value |
CPU + OS | r5fss0-0_freertos |
Toolchain | ti-arm-clang |
Board | am243x-evm |
Example folder | examples/drivers/pcie/pcie_benchmark/pcie_benchmark_ep |
Steps to Run the Example
Build the example
- When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
- When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
HW Setup
- Note
- Make sure you have setup the EVM with cable connections as shown here, EVM Setup. In addition do below steps.
AM243-EVM
- For connecting two board in RC and EP mode a specialized cable as below is required
- This cable can be obtained from Adex Electronics (https://www.adexelec.com).
- Modify the cable to remove resistors in CK+ and CK- in order to avoid ground loops (power) and smoking clock drivers (clk+/-).
- The ends of the modified cable should look like below:
A side
PCIe cable A side end 1
|
PCIe cable A side end 2
|
B side
PCIe cable B side end 1
|
PCIe cable B side end 2
|
Run the example
- Launch a CCS debug session and run the example executable, see CCS Launch, Load and Run
- Run the PCIE Benchmark RC example on the other connected board
- You will see logs in the UART terminal as shown in the next section.
See Also
PCIE
Sample output