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.

Invailid starting address for file IO

Hi!

I am trying to read floating point data from a .dat file by setting a probe point. When I am done connecting the probe point and the file I got this error message: "Please enter valid starting address for file ..."

In the .dat file I use these numbers in the header line:

1651 4 0 0 0

 

 

 I can' t figure out what's wrong with this. Any idea?

Thanks!

Li

  • Hi Li,

    Where did you get the .dat file? Was it created by CCS or did you try to create it yourself?

    Chunjian Li said:
    In the .dat file I use these numbers in the header line:

    1651 4 0 0 0

    The header for the .dat files is for:

    MagicNumber  Format StartingAddress PageNum Length

    The MagicNumber is always 1651.

    The Format being 4 means it is floating format

    Your start address is 0x0

    PageNum is the for memory page 0

    Length is number of samples per block. It is 0 in your case.

    The starting address and length being '0' looks incorrect to me.

     

  • Hi Ki-Soo

    I generated the file myself. I don't really understand the StartingAddress, PageNum and Length parameter, what do they refer to?

    I looked therefor into the CCS tutorial example "sinewave", and found that one of the example dat file "sine.dat" have this header: 1651 1 0 0 0

    I just changed the second parameter to 4 because I am reading floats. Can anyone explain the last three parameters in the header line?

  • My apologies, you are right. The last three fields are not necessary since you can enter that information when you set up your file IO.

    What are you entering for the Start Adress for your Probe Point properties? Is it a symbol name?