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.

printf statement using JTAG Terminal for TMS570LS3137 and 28335 processors

Other Parts Discussed in Thread: TMS320F28335, TMS570LS3137

Hi,

I have to print the Hitmaps ( LDRA Coverage -Probes data) into the console or to a external file for Coverage matrix(Level A program for Avionics).

We are using the TMS570LS3137 and TMS320F28335, the only option I have is 2 separate JATAGs connections to the external world.

But I need to collect the Data through Printf statements via JTAG connection.

Could you please help how do we route the printf statement through JTAG and How do we collect he data at host.

By the way I am using the CCS V6.0.0.

If any example code is available it would be great help for me.

Thanks and Regards,

Anil

  • Hello,
    Standard printf messages should be sent over JTAG to the CCS console by default. However, there are some considerations that you need to keep in mind. Please see the below article for more details:
    processors.wiki.ti.com/.../Tips_for_using_printf

    Thanks
    ki
  • Anil,

    CCSv6 supports multiple JTAG connections to multiple devices, and printf() over JTAG is the default behaviour if you are using the TI Compiler. In this case, each printf() statement will be shown in a similar fashion as in a multicore device - something similar to what is mentioned in the thread below:

    e2e.ti.com/.../155955

    That said, keep in mind that printf() itself is hungry for resources. Check the thread below for details:

    e2e.ti.com/.../334923

    Hope this helps,
    Rafael
  • Hi Ki,

    Thanks for your help; it is working fine for me with CCS.

    Do you have any other solution that i can use the file operation without CCS or DSS CIO server commands?

    My problem is as follows:
    I am working on system test, TI processors 2 of the components of my system along with other components. Which has free running software without CCS on those targets, I have to collect the hit maps of the code ( For structural coverage for LDRA) to examine the code execution on Black box level. I have JTAG is connected my Host PC but we don’t have CCS is installed in the host. Even if it is instal CCS we will not have the control of target disconnect due to Power on and OFF our system.
    Is it possible to do file operation or sending the hit maps to Host PC with CIO operations without CCS or DSS CIO Server commands?

    Or is it possible dump the target memory periodically to host PC without DSS memory API or CCS?.

    It would be great helpful if you provide solutions for above problem for me or to the project.

    Thanks and Regards,
    Anil
  • Hi,

    Thanks for your help; it is working fine for me with CCS.

    Do you have any other solution that i can use the file operation without CCS or DSS CIO server commands?

    My problem is as follows:
    I am working on system test, TI processors 2 of the components of my system along with other components. Which has free running software without CCS on those targets, I have to collect the hit maps of the code ( For structural coverage for LDRA) to examine the code execution on Black box level. I have JTAG is connected my Host PC but we don’t have CCS is installed in the host. Even if it is instal CCS we will not have the control of target disconnect due to Power on and OFF our system.
    Is it possible to do file operation or sending the hit maps to Host PC with CIO operations without CCS or DSS CIO Server commands?

    Or is it possible dump the target memory periodically to host PC without DSS memory API or CCS?.

    It would be great helpful if you provide solutions for above problem for me or to the project.

    Thanks and Regards,
    Anil
  • Can you output all the data via UART instead of JTAG? The "Tips for using printf" wiki page has a section near the end titled, "Using printf() to output to a user-defined device" that covers this scenario.
  • Hi Brad,

    Thanks for your answer, actually we have only JTAG, We don’t have any other means of the connection to Host PC from Target.

    Thanks and Regards,
    Anil