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.

Linux Desktop SDK : Host Mapping does not work, Data transfer is non consistent

Hi, 

I am porting the Linux Desktop to work on an ARM connected to a 6657 DSP EVM. 

So far I could run the demo application in memcpy mode (using run_memcpytest.sh) without any problem (This uses DSP Region Mapped to BAR Regions). Which means that I can reset the DSP remotely, send the init code and the demo code and perform a file loopback test and the file result matched the one I sent.  But it was not getting a very fast throughput. 

Then I tried to run the DMA demo and I got many bus error so I gave up. 

Finally I tried the test that uses the Host Mapping (using run_dspmaptest.sh) and it seemed to be successful since the test completed and it was a lot faster than the memcpy test but the resulting/output file was not matching the source. So I decided to troubleshoot it and went on the Emulator of Code Composer and started reading the PCIeData memory region to see what was wrong. I created a simple app on the Linux side that used the pciedrv API to create a Mapping. The  problem is that sometimes the data is transfered sometimes it is not and even worst, sometimes the data appear in the emulator a few minutes after the fact.

Do you have any suggestion to make for me to fix this ?

Thank you

 

  • The Linux desktop SDK was tested on C6678/DSPC-8681/8682 and use Linux PC as PCIE host. http://processors.wiki.ti.com/index.php/Desktop-linux-sdk_01.00.00_Getting_Started_Guide

    Do you have 6678 EVM for the test?

    Regards, Eric

  • I know all that.  If I would have used the 6678+linux_x86, I would not have post a question because I know it works. 

    This Post is about asking TI experts if they know anything that I should look at in order to make my setup work. I use the Linux Desktop code because it is convenient and the code is good to be used in my application. It was very easy to port it to the 6657. But I just have this problem with the Outbound mapping that does not seem to work. If you could provide me with any hints I would really appreciate. 

    Thank you

  • Did you try DMA demos on 6657+x86 setup. Desktop demos are released for C6678+x86 only. I am not sure if anybody has tested Desktop demos on C6657 platform.


    Why do you doubt outbound mapping? If memcpy demo works fine then I assume, everything is fine on PCIe front.


    BTW, I had ported Desktop demos on DM816x device (Arm Host) sometime back and all of them worked. I will re-check if anything had to be changed and come back to you.