필터 지우기
필터 지우기

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

조회 수: 32 (최근 30일)
Arslan Amjad
Arslan Amjad 2023년 11월 1일
댓글: Nithin 2023년 11월 28일
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
Nguyen Minh
Nguyen Minh 2023년 11월 18일
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 2023년 11월 28일
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

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by