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.

TMS320C6745 FILE CONCEPT

Other Parts Discussed in Thread: TMS320C6745

Hi, 

     am using TMS320C6745 custom board with XDS100 usb emulator, is it possible with file concept using code composer studio ????  have any sample code to read and write a text file using code composer... 

Many Thanks

Thiyagarajan.S

 

  • Hi,

    Thanks for your post.

    Yes, it is absolutely possible to do file operations on Code composer studio (CCS) and basically CCS is an IDE which has its own code generation compiler tools (CGT) built on it and it is part of CCS installation. It is feasible to compile file operation (fread, fwrite, fopen, fclose, fseek etc) C code on CCS since it has appropriate C/C++ compiler on it.

    We do not have sample code explicitly to read/wirte a text file but there would be examples which they would have used file operations. In order to try specifically to read/write a sample text file on CCS, you could develop an application to do the same.

    Thanks & regards,
    Sivaraj K

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    -------------------------------------------------------------------------------------------------------

  • Sivaraj Kuppuraj, 

     

              if any examples provided by you is more appreciable one please help. i need an example for TMS320C6745 . 

  • If you use #include <stdio.h> in your file, you can use all of the standard ANSI C file operation functions while running with CCS, like fopen.

    I have attached an example main.c that I used for reading and writing files. This was intended for running on a Sitara ARM core, but the file functions will work the same on the DSP in the C6745.

    Regards,
    RandyP