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/TMS570LS3137: Is there a way to open two debug sessions simultaneously on two Hercules ports

Part Number: TMS570LS3137

Tool/software: Code Composer Studio

We are running our code and third party code simultaneously, The Third-party code (a Javascript with a target connection) has control of the USB port (Texas Instruments XDS100v2 USB Debug Probe/CortexR4) on the Hercules. When it runs it encounters bugs.

If we had the Code Composer Studio debugger connected simultaneously on a different port (JTAG for example) we could debug the third party execution on the Hercules as it executes its script.

We are currently stuck with a bug we have no visibility into.

Has anyone ever tried something like this?

  • Hello Robert,

    XDS100V2 is an emulator which provides JTAG access to our MCU JTAG interface, and it also support SCI or UART communication with terminal on PC side. XDS100V2 doesn't use the USB port on TMS570LS31x device.

    Is the 3rd-party code used to transmit and receive the SCI message to/from the terminal?
  • QJ,

     

    The third-party software runs a Javascript out of a Batch file. It connects via this line of Javascript:

        debugSession.target.connect();

    It communicates with third-party code on the Hercules over the USB Debug port XDS100v2.

    It downloads the combined code OUT file with this line –

        debugSession.memory.loadProgram(exe);

    It runs our code gathering metrics, then uploads the metrics over the same port.

     

    During this process, corruption occurs which can be seen on the DOS window during the upload of the metrics:

              for (var addr=addr_message; addr<(addr_message+bytes); addr++) {

                var data = debugSession.memory.readData(0, addr, 8);

                java.lang.System.out.print(String.fromCharCode(data));

                /* Save the characters into a big string */

                fileContents += String.fromCharCode(data);

              }

     

    I need to debug on a different port using the same OUT file so I can see symbols and source code etc.

     

    I have learned that the emulator you mentioned XDS100V2 does not work over the JTAG interface.

    Over this JTAG interface, we only have luck with the Blackhawk USB100V2 JTAG EMULATOR - BH-USB-100V2-ARM.

     

    Thanks for your prompt reply,

    Robert C Shaw

  • I now have one debug port on the micro USB interface (built-in XDS100v2) and I have acquired a Blackhawk USB100V2 JTAG EMULATOR - BH-USB-100V2-ARM with a 20-pin JTAG adapter connected to the 20-pin JTAG port. I can run either app with either port, but not simultaneously. If there is one debug connection, then the connection attempt on the second interface fails. All help is appreciated. I am trying to find the UART connection in CCS7 to try to connect one probe to the PC on a different type of port (Serial) with a different driver and maybe I can succeed.
  • When an external emulator is plugged in (ARM 20-pin connector), the on-board XDS100V2 is disabled. But the SCI on the micro USB interface should not be affected. On PC side, the terminal (for example, TeraTerm) can find the XDS100V2 UART port.