Error: Could not connect to target application: XCP internal error: timeout expired, in response to XCP CONNECT command

9 views (last 30 days)
I am using F28388 with 2023a version of MATLAB. While using the 'Monitor and Tune' option, I am able to flash the code but still seeing this 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
I have referred to a lot of solutions here but of no help.
Attached are the hardware settings. I have checked the COM port which is selected as the Application / User UART,Frequency. Tried with the Data port as well, but didn't help.
Thanks,
Chloe

Answers (1)

Kautuk Raj
Kautuk Raj on 7 May 2025
The issue you are encountering may be caused by the situation that external mode does not work directly with Arm M4 of F28338D ControlCard, since the UART Tx and Rx pins are not enabled for serial communication. It is possible to use external FTDI to establish the serial communication with the host PC. To do so, the following connections need to be done between the TI Docking Station and the FTDI Chip:
1) FTDI Tx Pin --> UART Rx pin (GPIO85 in configuration parameters); pin 152 (on Docking Station)
2) FTDI Rx Pin --> UART Tx pin (GPIO84 in configuration parameters); pin 151 (on Docking Station)
3) FTDI VCC --> 3.3V on (on Docking Station)
4) FTDI GND --> GND on (on Docking Station)
Please note that if you are using different UART Tx and Rx pins other than the default pins in the configuration parameters, you should refer to the pin layout of the 180-pin Docking Station and connect the appropriate pins on the Docking Station.
Once these connections are done and the target board is powered on, a new COM port will be displayed in the Device Manager, which establishes the serial communication between the ARM M4 core and the host PC. This COM port needs to be used for External Mode in the configuration parameters of ARM M4 core model.

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!