- Open the Device Manager on your PC. You can do this by right-clicking on the Start button and selecting "Device Manager" from the menu.
- In the Device Manager window, look for the "Ports (COM & LPT)" category and expand it by clicking on the arrow next to it.
- By following these steps, you will be able to find the COM port number associated with "STMircroelectronics STLink Virtual COM port.
- Now, Open the “.ioc” file created for the STM32F446RE hardware, go to Connectivity > Pinout & Configuration.
- Check which USART is enabled in the Connectivity.
- Now, in your Simulink model, navigate to Connectivity > Target hardware resources > Hardware Implementation > Hardware setting.
- Adjust the USART and Serial port in the connectivity to match the label found in steps (3) & (5).
PID Autotuner - XCP timout
조회 수: 1 (최근 30일)
이전 댓글 표시
I am trying to tune my PID-controller with my hardware (dc-motor). I have followed the MATLAB video and my system looks like this:
De countval is my encoder in this instant and the PWM_block is the motor.
When i try to run it on the STM-Nucleo-F446RE i get an error everytime.
Everytime it's in the last step of compiling.
Does somebody know how i can still run it on this board?
댓글 수: 0
답변 (1개)
Rangesh
2023년 10월 30일
Hi Charlotte,
It seems that you are encountering an "XCP internal error" while compiling, which is due to the external mode requiring an active COM port between the target and the host PC. To resolve this issue, please follow the steps below to ensure the port configurations are correct:
I hope this resolves your query on “XCP external error”.
Thanks,
Rangesh.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Gain Scheduling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!