Cannot run and debug Simulink model on some LAUNCHXL-F28379D boards
7 views (last 30 days)
Show older comments
Hi,
I'm facing some issue on a few of the LAUNCHXL-F28379D boards I have while trying to deploy and run my Simulink model on it.
It seems that the code is flashed on the board, but it cannot "run" so I cannot change values and dynamically do my observations.
The below error is thrown by Simulink when trying to connect to the board.
C28xx_CPU2: If erase/program (E/P) operation is being done on one core, the other core should not execute from shared-RAM (SR) as they are used for the E/P code. Also, CPU1 will be halted to determine SR ownership for the CPU which will run the Flash Plugin code, after which CPU1 will be set to run its application. User code execution from SR could commence after both flash banks are programmed.
*** Debug Session Name: Texas Instruments XDS100v2 USB Debug Probe_0/C28xx_CPU1
*** Board Name: Texas Instruments XDS100v2 USB Debug Probe_0
*** CPU Name: C28xx_CPU1
*** Connecting to target...
*** Loading the program to the target...
*** Program is running.
*** Disconnecting from target...
*** Terminating debug session...
*** LOAD & RUN DONE.
### Successful completion of build procedure for: Aero_SBS_rev_PF
### Simulink cache artifacts for 'Aero_SBS_rev_PF' were created in 'C:\Users\shrey\Documents\General_Repo\Test\Aero_SBS_rev_PF.slxc'.
Build process completed successfully
Build Summary
Top model targets built:
Model Action Rebuild Reason
===============================================================================
Aero_SBS_rev_PF Code generated and compiled Generated code was out of date.
1 of 1 models built (0 models already up to date)
Build duration: 0h 1m 10.353s
action: EXT_INIT
Creating Target Handler (XCP on Serial)...
Build directory: C:\Users\shrey\Documents\General_Repo\Test\Aero_SBS_rev_PF_ert_rtw
Serial Port Name: COM5
Baud Rate: 5000000
action: EXT_CONNECT
Connecting to the target...
External Mode Open Protocol Connect command failed
Caused by: Could not connect to target application: XCP serial port error: open: The system cannot find the file specified
Component:Simulink | Category:Block diagram error
Unable to connect to the 'TI Delfino F28379D LaunchPad' target for 'Aero_SBS_rev_PF'.
Component:Simulink | Category:Model error
The revision of the launchpad is Ver: 2.0, MATLAB version is R2022a Update 5 (9.12.0.2039608), CCS version is 12.0.0.
The board is powered using the USB port.
The part that is confusing me is that the same Simulink model works on a few of the same launchpad boards I have while it does not work with some.
I tried looking for the "System cannot find the file specified" error, however I was unable to find a thread associated with such an error.
I would appreciate any leads/guidance/redirection/suggestion anyone has!
Thanks :)
0 Comments
Answers (1)
Anush
on 22 Jun 2023
Hello Shreyas,
The above issue may be because of several reasons including port access permissions and physical connection issues.
One of the most common reason for this is the COM port issue where the serial port name mentioned here, i.e COM5 may be different from the one in device manager. You can use the following Matlab answers link to follow the steps to check the seial port name and change it if required:
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!