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.

CToolsLib Examples fopen() problem.



 

HI, 

I'm working on the Embedded Trace Buffers of the C6678 ( I use the EVM6678-Board with mezzanine).

I try to run the example project exTIETB-EDMA_C6678 from (https://gforge.ti.com/gf/project/ctoolslib/frs    Examples_5.9.zip) .

It run well, but fopen() not work (file descriptor = 0) , although printf on console is working and ,I think so , the CIO is proper.

What can be my problem?

Thank on advance,

Leon.

  • Hi Leon,

    I've notified the design team. Their feedback will be posted here.

    Best Regards,
    Yordan
  • Hi, Yordan.

    Thanks for reply, but problem is solved, but not in the TI example. It works in my application.

    Now I have another question.

    I understand, that CIO (fopen(),fwrite() etc.) work only with CCS, when launched Target Configuration.ccxml and target connected.

    My reason to use the CToolsLib is to get the trace info from customer. He has only JTAG connection without CCS.
    Which way I can do it, if at all possible.

    Thank on advance,

    Leon.

  • Leon

    You of course understand that the tracing is highly compressed data. For example, a simple message (no data) will have an ID and the translation between the message ID and what is printed on the screen is done by decompression function that runs inside the CCS.

    That said, since the CCS has Java plugins it may be conceivable to extract the decompression routine and run it on a PC outside of CCS.  I am not sure about the legal issues (if any) that are associated with something like this and I do not recommend doing it. 

    Why the customer does not want to work with CCS? It is a standard IDE (as I said, Eclipse based) and lots of resources how to use it

    Ran

  • Hi, Ran.
    Thanks for answer.

    I'm sorry, but apparently the way I formulated the issue, introduced you astray.

    Of course, all analysis of tracing data I do via CCS.
    All I'm looking for, this is the way to transport the ETB data (binary file) via standard JTAG connector without CCS.

    Leon.

  • Let's see if I understand your question. You want to:
    1. Build in your program sending STM messages using CTOOLLIB
    2. Direct the tracing to the JTAG using
    3. Build an executable and load the DSP with the program, start the program
    4. Collect the trace stream into a PC
    5. decompress the stream and display the STM messages outside of CCS

    Did I describe the steps correctly? if not, correct me. If I described it correctly, please tell me which step (or steps) you need help

    Best Regards

    Ran
  • There is concept of my request:
    1. Running stand alone image with the DSP Trace ETB on my target (using AET).
    2. Moving the ETB data binary file via CIO to Host (PC) on some triggering.
    3. Convert it to tdf format and put the tdf file via CCS on target for analyze.

    My issue is to do Target Configuration and Target Connect outside the CCS.
    Best regards,
    Leon.