Borrar filtros
Borrar filtros

PID Autotuner - XCP timout

3 visualizaciones (últimos 30 días)
Charlotte van Baal
Charlotte van Baal el 25 de Oct. de 2023
Respondida: Rangesh el 30 de Oct. de 2023
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?

Respuestas (1)

Rangesh
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:
  1. 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.
  2. In the Device Manager window, look for the "Ports (COM & LPT)" category and expand it by clicking on the arrow next to it.
  3. By following these steps, you will be able to find the COM port number associated with "STMircroelectronics STLink Virtual COM port.
  4. Now, Open the “.ioc” file created for the STM32F446RE hardware, go to Connectivity > Pinout & Configuration.
  5. Check which USART is enabled in the Connectivity.
  6. Now, in your Simulink model, navigate to Connectivity > Target hardware resources > Hardware Implementation > Hardware setting.
  7. Adjust the USART and Serial port in the connectivity to match the label found in steps (3) & (5).
I hope this resolves your query on “XCP external error”.
Thanks,
Rangesh.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by