Filter löschen
Filter löschen

XCP internal error: timeout expired' error during 'Monitor and Tune' for STM32F767ZI

32 Ansichten (letzte 30 Tage)
I am using the Embedded Coder Hardware Support Package for STM32 F7xx based development board (Model Settings > Hardware Implementation > Hardware Board: STM32F7xx Based) for my model of implementing Field Oriented Control (FOC).
When I run the model using 'Monitor and Tune', it builds the model but at the end, it gives the error that: 'XCP internal error: timeout expired'.
All the peripherals are configured in both the Simulink file and STM32 CubeMX file but after it builds the model, at runtime it gives this 'XCP' communication faliure error.
I followed the two links given below in order to resolve this issue, but it didn't work:
  1. https://www.mathworks.com/help/rtw/nucleo/ug/signal-monitoring-parameter-tune-xcp-on-serial-nucleo.html
  2. https://www.mathworks.com/help/rtw/ug/external-mode-simulation-with-xcp-communication.html
Please help in this regard what should I do in order to solve this problem and implement FOC controller using Simulink.
The full error text is below:
ThemeCopy
"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
Component:Simulink | Category:Block diagram error
Unable to connect to the 'STM32Fxx Based' target."
  6 Kommentare
Nguyen Minh
Nguyen Minh am 18 Nov. 2023
Hello Arslan and, I have got the same issue with Monitor and Tune like you, could you share for me some solution to handle this error, please?. Thank you so much!!
Nithin
Nithin am 28 Nov. 2023
An issue with the COM port could also lead to the displayed error. Try changing the COM port in device manager (https://www.startech.com/en-eu/faq/change-com-port-number-windows), and in the Simulink hardware settings.
If the problem still persists, contact MathWorks Technical Support: https://in.mathworks.com/support/contact_us.html

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by