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 Option in CCStudio

Other Parts Discussed in Thread: CCSTUDIO

Hello everyone,

 

I am trying to use the FILE I/O function of CCStudio. I tried the modem tutorial as instructed. It worked very well. However, the .dat files are already there before I ran the project!! How are they created??? I am trying to do the same in my code. I created an empty file called Data.dat but as soon as I press the animate button, it says end of file reached!!!

 

Can anyone please help. I would really appreciate some guidance here.

  • Bendous,

    The files are text-editable, so it should be possible to edit one of the files from the modem tutorial and change the data to match what you'd like to use.  There should be information in CCS help on the meaning of the header if you wanted to change the address/length etc.

    Alternatively, you could generate the .dat file with another target program by hooking up a breakpoint to write data generated by that program to a file, and then later using that file to read from for the other program.

    Darian