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.

File I/O using Probe Points with CCS 3.0

Hi,

I need to transfer data from a file to the DSP to test the bit exactness of an algorithm. I'm trying to use a probe point to load the values into a buffer. The input file looks like this. 

 1651 1 0 0 0
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
0x0100
0x0200
0x0100
0x0100
0x0000
0x0000
0x0200
0x0000
0xFAFF
0xFDFF
0xFEFF
0xFCFF

...

However it looks like the data is not getting through to the given buffer. I don't see any update of the data at the respective memory address. I also tried different input format with 5-digit numbers as described in the help, but also with no success.

I'm currently running CCS 3.0 with C6414 Simulator in little endian mode.

I'm wondering, what I'm doing wrong, since the file output is working properly.

Example of output file:

1651 1 c9e10 0 c
0x00000004
0x00000E5C
0x000041B6
0xFFFFB801
0xFFFFDFB0
0x00003C32
0x00007FAA
0x0000055C
0x0000287D
0x00004B30
0xFFFFA020
0x00003340

However, I would also like to know, if I can change the format of the data from 32-bit hexadecimal to 16-bit hexadecimal, which would be much more convenient for me.

  • Hi Peter,

    Peter Sterly said:
    However, I would also like to know, if I can change the format of the data from 32-bit hexadecimal to 16-bit hexadecimal, which would be much more convenient for me.

    This may be why your first issue is not working. I believe that format of the data needs to be the same size as the size of a word on the device. When outputting, it will defualt to that. When inputing a *.dat file with entries that are not a size of a word, it may cause the file i/o to fail.

    ki

  • Hello Ki-Soo,

    I changed the input file to match the format of the output file. It is working better now or maybe I got confused by the new problem I just recognized. I try to transfer a size of 160 samples to the memory, now it seems that the first 160 samples are skipped and the transfer is started with the second block of 160 samples, even though I rewind the file on every start of the program and the count of the probe point is set to 1. If this is my only problem left, there will be any easy workaround.

    Thanks for your help,

    Peter