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.

XDS110 debug probe not working with MATLAB embedded coder package



Hello, 

I am using F280049PMS as the micro controller on my board and I want to work with MATLAB embedded coder package. Previously I was working with Code Composer and I was able to monitor and tune parameters in debug mode using  XDS110 debug probe and with cJTAG connection. 

The problem started when I wanted to use MATLAB instead of code composer. I am not able to make the serial connection work. The hardware connections are as bellow:

pins which are necessary for cJTAG are connected and I don't have any problem with flashing the micro. 

GPIO 35 is connected to UARTRX from AUX output of debug probe

GPIO 37 is connected to UARTTX from AUX output of debug probe

TGTVDD is connected to PCB VDD.

Software: In the MATLAB all these pins are set in SCI configurations. 

I have to mention that before working on my PCB I was working with F280049C Launchpad and I didn't have this problem meaning that I was able to monitor and tune parameters in MATLAB. 

Please let me know what you think and how I can resolve this problem.

  • Parisa,

    Thanks for reaching out to the E2E forums.  From your description of the connection it looks like all the switches and jumpers are in the right configuration since the UART comms worked with both CCS as well as with MW just for comms.

    I think what may be happening is that the JTAG connection for the MATLAB is set to normal cJTAG(4 pin) vs cJTAG advanced mode(2 pin).  The LaunchPad needs to be in advanced mode(2pin) since TDI/TDO are not connected from the XDS110 to the F280049C.

    I'll see if I can find where this setting is held in the MW tools, but I don't know offhand.

    Best,
    Matthew

  • Hi Matthew, 

    Thanks for your reply. 

    I am able to program and flash the micro using cJTAG and for monitoring MATLAB is using serial communication. So I am not sure that the problem is normal JTAG or cJTAG. apparently, they are using JTAG connection only for flashing the microcontroller. 

  • Parisa,

    Just to confirm the issue is when you try to program the device only with MATLAB, correct?

    Best,
    Matthew