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 failure error.
I followed the three links given below in order to resolve this issue, but it didn't work:
- https://www.mathworks.com/help/rtw/nucleo/ug/signal-monitoring-parameter-tune-xcp-on-serial-nucleo.html
- https://www.mathworks.com/help/rtw/ug/external-mode-simulation-with-xcp-communication.html
- https://www.mathworks.com/help/ecoder/stmicroelectronicsstm32f4discovery/ug/External-mode-PIL.html
Also, the communication of F767ZI board with STM32 Motor Control Workbench also disconnects after starting the motor from Workbench GUI.
The full error text is below:
Please help in this regard what should I do in order to solve this problem and implement FOC controller using Simulink.
Thank you.