- 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 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Rangesh
el 30 de Oct. de 2023
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 comentarios
Ver también
Categorías
Más información sobre Gain Scheduling en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!