Error:External Mode Open Protocol Connect command failed
Afficher commentaires plus anciens
Hi, I'm currently working with a NUCLEO-H7A3ZI and Matlab Simulink. I have installed the "Embedded Coder Support Package for STMicroelectronics STM32 Processors" and alredy created a small test model. When I click "Build Deploy & Start", everything works fine, but i can't use the "Monitor & Tune" Mode :
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 also tried to "Build, Deploy & Start" and then clicking the connect button in the step by step commands section of "Monitor & Tune". This time i got :
Error:External Mode Open Protocol Connect command failed
Caused by:
DWARF Parser internal error: Parser::describeSymbol xcpDummyDoubleVariable is not a global variable
I verified the com port in Connectivity Under Hardware Settings. The one i used correspond to STMicroelectronics STLink Virtual Com Port in my device manager (I also check the baudrate to be equal beetwin com port and cubemx .ioc's file).
For information, I'm using MATLAB R2024b, STM32CubeMX 6.4.0
1 commentaire
Raag
le 26 Juin 2026 à 4:54
Hi,
It is my understanding that you are able to successfully build and deploy your model, but encounter an error when connecting in 'Monitor & Tune' mode, including messages related to XCP communication and symbol parsing.
This type of error may occur if no signals are configured for logging in the model during External Mode operation. 'Monitor & Tune' relies on signal logging for data exchange between the host and target.
You may try enabling logging for at least one signal in your model (for example, by marking a signal for logging or enabling signal streaming) and then attempt to connect again.
If the issue persists, it may help to verify the External Mode configuration.
Réponses (0)
Catégories
En savoir plus sur ARM Cortex-M Processors dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!