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.

Using RTDX to transfer data from target to host

Other Parts Discussed in Thread: TMS320C6416, CCSTUDIO

Hi there,

I am using a TMS320C6416 DSK, I developed an Image processing application on it,  I wanted to send results back to host, so I developed a C++ com client to receive trasferred data. I  used yhe rtdxint.dll , the problem is when sending data, this operation takes too much time (data is a grayscale image).

I did like this

host : 

for (int i = 0 ; i < 90000 ; i++)

rtdx -> ReadI1(&image[i]);

target :

for (i = 0 ; i < 90000; i += 1000)

RTDX_write( &ochan, &image[i],1000);

 

I didn't understand what's happening help me please.

  • How much time is too much time? Keep in mind that RTDX will be very slow unless you are using a higher end emulator, in particular something that is XDS560 class, so loading large amounts of data like images over RTDX will be slow.

  • Hi,

    Thank you for replying, It takes about 5 or 6 seconds, I know it's not too much, but I would like to know if there is a method to optimise this time and reduce it as much as possible, thank you

  • In the Code Composer Studio, we can display data which is stored in the 6416DSK with view -> graph -> image, I was wondering if you know how does it work, because it's pretty faster than RTDX, and can I use this technic in my application, thank you in advance

  • To speed up RTDX itself the only way I know of would be to use a faster emulator, which may or may not be an option as these tend to be expensive.

    Mahdi SAKKA said:
    In the Code Composer Studio, we can display data which is stored in the 6416DSK with view -> graph -> image, I was wondering if you know how does it work, because it's pretty faster than RTDX, and can I use this technic in my application, thank you in advance

    I don't believe this uses RTDX but rather some other proprietary protocol, as far as I know that is inaccessable, the catch with this sort of transfer is that it will be halting the processor to perform the transfer, with RTDX you transfer data while the target is still actively running. There are a couple of other ways of transferring data to the target through the JTAG emulator that you may want to try, there are options under the file -> data menu of ccs to move bulk data to and from the target, these will likely be faster than the RTDX however they also require special formatted data as discussed in the CCS help files so it may not be practical. The other option would be to have the application read in the data using C i/o functionality, in which case you would just use a typical fopen, fread, etc set of calls to access image data located on the PC. I have not done comparisons between these methods and RTDX so I am not sure how much faster they would be if at all, but they may be worth a shot.

  • Hi Mahdi,

    As Bernie mentioned, the Image Graph does not use RTDX to read data off the target. It simply uses standard debugger memory accesses to read data when the target is halted.

    Thanks

    ki

  • Thank you for your interest of my query, I have a little idea, I was wondering if I can use DSP/BIOS modules like PIP et HST module to tranfer data from target to host without using code composer studio, but with a c++ interface. If it could work, did you have any tutorials or documents that show how to do this, thank you in advance, and I would like to say that this forum is pretty good because I receive reponses quickly.

  • Mahdi SAKKA said:
    I was wondering if I can use DSP/BIOS modules like PIP et HST module to tranfer data from target to host without using code composer studio, but with a c++ interface.

    Unfortunately with the DSK the only practical option you have for communication is through the JTAG, and anything that uses the JTAG to communicate will generally require a CCS installation, with other boards you have other options like Ethernet, which you could do with a daughtercard on the DSK but this is not very typical.

  • OK but after installing CCS, can I use that modules to transfer data and we return to the previous question

  • Mahdi SAKKA said:

    Thank you for your interest of my query, I have a little idea, I was wondering if I can use DSP/BIOS modules like PIP et HST module to tranfer data from target to host without using code composer studio, but with a c++ interface. If it could work, did you have any tutorials or documents that show how to do this, thank you in advance, and I would like to say that this forum is pretty good because I receive reponses quickly.

    Check out the hostio example that comes with DSP/BIOS. The default location is: C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\examples\basic\hostio. See chapter 7.1 of SPRU301 for more information (note that some of the paths in the document are a bit out of date)