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.

How to perform Host PC's DMA to access C6670's BAR1 memory through PCIE?

Expert 2985 points

Hi all,

I had used the WinDriver to create one PCIE demo project on Windows Host PC.

And the DSP project is using  C:\ti\pdk_C6670_1_1_2_6\packages\ti\drv\exampleProjects\PCIE_exampleProject.

And now the Host PC PCIE demo project can read/write the DSP BAR1 memory space correctly.

Then I want to implement the Host PCIE DMA to access the DSP BAR1 memory space.

Do I need to modify something based on the project C:\ti\pdk_C6670_1_1_2_6\packages\ti\drv\exampleProjects\PCIE_exampleProject?

For simplicity, I do not use DSP's EDMA to access PC's memory through PCIE.

So I think I do not modify the C:\ti\pdk_C6670_1_1_2_6\packages\ti\drv\exampleProjects\PCIE_exampleProject to accommodate the Host PC. Am I right?

From the WinDriver view, its PCIE DMA demo codes need to write the device's registers like following picture.

Can anyone give some hints about this above?

Regards,

Feng

  • Dear Feng,

    So I think I do not modify the C:\ti\pdk_C6670_1_1_2_6\packages\ti\drv\exampleProjects\PCIE_exampleProject to accommodate the Host PC. Am I right?

    Yes, you don't want to change anything in our PCIe example for EDMA access in RC PCIe device (PC).

    We also have ready made DMA write/read support in PCIe example in latest processor SDK package. So you can also use EDMA at EP side (DSP) too.
    www.ti.com/.../PROCESSOR-SDK-C667x
  • Hi Titusrathinaraj,

    Thanks!

    I had a little confuse about the PCIE DMA. I think there are two kind of PCIE DMA, one is PC as the DMA master to read/write the DSP's BAR1 memory space and the other one is DSP as DMA master to read/write PC's memory space. Am I right?

    For simplicity, I do not change my current DSP project and just need to modify PC WinDriver codes to perform DMA.

    Could you give me some hints to use DMA under WinDriver which I mean is PC as DMA master? Maybe you have some experience about this.

    Regards,

    Feng