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.

CCS/CODECOMPOSER: How to capture console log to .txt file using .js command

Part Number: CODECOMPOSER

Tool/software: Code Composer Studio

Hi,

I'm using CCS v8 and I'm implementing .js file for CCS automation. In this process I got stuck while capturing console log into .txt file.

I don't have any idea how to capture. Can you please post command which is used in .js to capture console log.

Thanks in advance.

Thanks & Regards,

Pavan Kumar

  • Hi Pavan,

    Pavan Penikalapati said:
    I don't have any idea how to capture. Can you please post command which is used in .js to capture console log.

    What kind of information are you trying to capture? Many of the debug messages are already captured and can be exposed in a DSS log.

    Thanks

    ki

  • Note: I accidentally pressed the button to propose an answer. Feel free to "reject" my proposed answer above to make it clear to others. 

  • Hi Ki,

    Thanks for replay. 

    My test application prints data on CCS console. So I want to capture that log into .txt file once test is done. Currently i'm developing .js script to do remaining  operations. So here I need .js command to capture CCS console log.

  • Pavan Penikalapati said:
    My test application prints data on CCS console. So I want to capture that log into .txt file once test is done. Currently i'm developing .js script to do remaining  operations. So here I need .js command to capture CCS console log.

    Assuming you are using DSS for your automation, you can use the below DSS APIs to steam your C I/O output to a text file:

    void beginCIOLogging(java.lang.String sFileName)
    Captures all output and error from target program that is printed to console (ie; printf) to the specified file as well
    void endCIOLogging()
    End capturing CIO output to file.

    This should be what you need

    Thanks

    ki