LAUNCHXL-F280049C: External mode for debugging

15 visualizaciones (últimos 30 días)
Arnaud
Arnaud el 16 de En. de 2025
Respondida: Sumukh el 21 de En. de 2025
I can build and deploy any program on the board (LAUNCHXL-F280049C). It works correctly.
For debugging purpose, I wanted to connect the board with my computer with the external mode. I have this error bellow.
I have try differents things:
  • In configuration parameter/hardware implementation/target hardware resources/external mode => try both COM port (UART and dataport)
  • Different switchs settings tried
  • S6 : 0 & S8 : 0
  • S3.1 : 1 & S4 : 1 & S8 : 1
__________________________________________________________________________________________
External Mode Open Protocol Connect command failed Caused by:
  • Could not connect to target application: XCP internal error: timeout expired, in response to XCP CONNECT command
  2 comentarios
Sumukh
Sumukh el 21 de En. de 2025
Could you please share the Simulink model here to try to reproduce the issue?
Please note that if there is any antivirus software or firewall in the system, this might block the UDP traffic necessary for "XCP on Serial" mode. The software must be configured to allow traffic from a specific IP port number.
Arnaud
Arnaud el 21 de En. de 2025
I transfere you the main files => mainRegulation .m and .slx
How to check if the traffic is allow on a specific IP port number ?

Iniciar sesión para comentar.

Respuestas (1)

Sumukh
Sumukh el 21 de En. de 2025
I am able to reproduce the issue in MATLAB R2023b with the given model and data. When "Monitor & Tune" is clicked, the following XCP timeout error occurs:
Error:External Mode Open Protocol Connect command failed
Caused by:
Could not connect to target application: XCP internal error: timeout expired, in response to XCP CONNECT command
Kindly refer to the following thread where the same error has been discussed and resolved for a similar C28x board (TI F28035):
You can also refer to the following thread where XCP timeout issue for STMicroelectronics Nucleo Boards has been discussed and few comprehensive steps have been provided to diagnose and resolve the error:
Based on the discussions in the above thread, it is possible that there are out-of-memory issues with the model that needs to be resolved. It is also possible that a host-model approach may resolve this error: a host model to send and receive data with the target model deployed on the board. This involves using Serial communication blocks in the host and target models; you can refer to the examples in the following documentation to know more:
I hope this helps with resolving the error.
  1 comentario
Arnaud
Arnaud el 4 de Feb. de 2025
Thank you to give me interesting topics to follow.
I have made a step forward and now the code is correctly downloaded on the hardware.
I have this error below that I can not understand.
It is strange, I can upload a program on the hardware. I can run it correctly but it seems to work when it's for the external monitoring mode.
____________________________________________________________________________________________________
Initiating the executable load sequence on the target hardware using TI Code Composer Studio. SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. *** User inputs: Target Configuration: C:\PROGRA~1\MATLAB\R2023b\toolbox\c2b\tic2000/CCS_CO~1/F28004~1.CCX Program Name: C:\Users\Arnaud\AppData\Local\Temp\TIC200~1\F28004~1.OUT Board Name: * CPU Name: unspecified (connect to first CPU) *** Starting debug session... *** Debug Session Name: Texas Instruments XDS110 USB Debug Probe_0/C28xx_CPU1 *** Board Name: Texas Instruments XDS110 USB Debug Probe_0 *** CPU Name: C28xx_CPU1 *** Connecting to target... C28xx_CPU1: GEL Output: Memory Map Initialization Complete C28xx_CPU1: GEL Output: ... DCSM Initialization Start ... C28xx_CPU1: GEL Output: ... DCSM Initialization Done ... C28xx_CPU1: GEL Output: ... DCSM Initialization Start ... C28xx_CPU1: GEL Output: ... DCSM Initialization Done ... *** Loading the program to the target... C28xx_CPU1: GEL Output: ... DCSM Initialization Start ... C28xx_CPU1: GEL Output: ... DCSM Initialization Done ... C28xx_CPU1: GEL Output: ... DCSM Initialization Start ... C28xx_CPU1: GEL Output: ... DCSM Initialization Done ... *** Program is running. *** Disconnecting from target... *** Terminating debug session... *** LOAD & RUN DONE.
Server upload failed.Cannot create a communication link with the remote server. Please check the COM Port and make sure the server is running.

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by