Unable to use Monitor and Tune in Simulink for TI F28379D Launchpad (C2000)

5 views (last 30 days)
Hi,
I am trying to monitor my Launchpad App but the fact is that I don't get any entry in the Hardware Settings->Tareget Hardware Resources->External Mode->Serial Port in Matlab preferences: the dropdown list shows No serial port detected.
The fact is that I can flash the model and the changes I introduce are sent to the launchpad and executed (I have tried, for example, blinking alternatively or concurrently both on-board leds).
Debugging works seamlessly inside CCS where I can change and read variables data.
Any help will be welcome, as I have tried anything I have been able to find to solve this problem (e.g. flashing the XDS, which I didn't because the present configuration read by MPROG3.5 was the right one: RS232UART & Virtual COM Port).

Answers (1)

Harsh
Harsh on 11 Jun 2025
Edited: Harsh on 11 Jun 2025
From what I can tell, MATLAB is unable to detect the LaunchPad's serial port for External Mode, even though flashing and CCS debugging are working correctly. This typically indicates a driver or configuration issue related to how MATLAB recognizes the virtual COM port.
To troubleshoot this issue, follow these steps:
  • Verify COM Port in Device Manager, check Windows Device Manager under "Ports (COM & LPT)". Look for "USB Serial Port (COMX)" or "XDS110 Class Application/User UART". If you don't see it, the driver isn't installed or enabled. If you do, note the COM number. For more details, refer to the following link: https://www.mathworks.com/help/instrument/troubleshooting-serial-port-interface.html
  • In MATLAB's preferences (Hardware Settings > Target Hardware Resources > External Mode > Serial Port), click the "Refresh" button to force a re-scan. You can also try setting the port programmatically in the MATLAB Command Window:
% Change the hardware board name and COM[number] accordingly.
codertarget.tic2000.setSerialPortPreferences('TI F28379D LaunchPad', 'COM3')
For more details, refer to the following documentations:
  1. https://www.mathworks.com/help/ti-c2000/ref/sect-hw-imp-pane-external-mode.html
  2. https://www.mathworks.com/help/ti-c2000/ref/sect-hw-imp-pane-external-mode.html
Since CCS works, your basic drivers are likely fine for debugging. The issue is likely specific to how MATLAB detects the "virtual COM" port that the XDS110 provides for communication.
I hope this helps, thanks!

Products


Release

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!