How can I solve the error in External Mode of "Could not connect to target application: XCP internal error: timeout expired, in response to XCP CONNECT command"?
32 次查看(过去 30 天)
显示 更早的评论
I was doing a simple simulation where a pulse generator in Simulink is sent to two digital outputs of the F280xx, in this case when clicking on "Build, Deploy and Start" in Simulink I observed that the communication with the control card was perfect because one digital output is the "LD2" led (I use a JTAG communication with an XDS200 Debug Probe to the interface card with the Plecs RT box), in the same way when clicking on "Build" the part of the Plecs block shows that there is communication between the control card and the RT box.
The problem is that I cannot see if there is any kind of communication from the digital output of the Plecs block to the F280xx control card because I must use the external mode and when I press the "Monitor and Tune" of Simulink it shows me the error that I will leave in the image below and said "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".
In other forums there was talk about the solution by changing the "COM" port or adjusting the frequency of the oscillator clock; however, none of the above worked for me.
I leave the images of each point and the hardware implementation used, I hope there may be a solution.
0 个评论
回答(1 个)
Kautuk Raj
2024-10-22,9:53
It seems like you are encountering an issue with the "External Mode" connection between Simulink and your F280xx control card. The error message you are observing often indicates a problem with the communication setup. Here are some steps you can follow to troubleshoot and potentially resolve the issue:
(1) Check the COM Port Configuration:
Ensure that the COM port used for communication with the control card is correctly set in Simulink. If you are currently using an auxiliary port (e.g., COM3), try switching to a UART port (e.g., COM4).
Verify that the COM port matches the COM port of your serial interface.
(2) Verify Software Installations:
Confirm that MATLAB Coder, Simulink Coder, and Embedded Coder are installed correctly on your system.
Ensure that the relevant support packages, such as the Embedded Coder Support Package for Texas Instruments C2000 Processor, are installed, along with any necessary third-party software.
(3) Update Support Packages:
Perform any pending updates on your installed support packages to ensure you have the latest features and bug fixes.
(4) Model Compatibility:
Double-check that your Simulink model does not include blocks that are unsupported for code generation or deployment on the target hardware.
By following these steps, you should be able to resolve the communication issue and successfully use the "Monitor and Tune" feature in Simulink.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!