Borrar filtros
Borrar filtros

I am getting 'Could not connect to target application: XCP internal error: timeout expired, in response to XCP CONNECT command' using monitor and tune using stm32f411re

137 visualizaciones (últimos 30 días)
Hello,
I am trying to read data from a potentiometer from stm32f411re using simple analog input block and display with the Simulink Coder Support Package for STMicroelectronics Nucleo Boards. I can use the controller with build, start &deploy but I cannot use monitor and tune I get this error. I already checked com port from the device manager and use the same com port. I need help please
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
Component:Simulink | Category:Model error

Respuestas (1)

Rangesh
Rangesh el 30 de Oct. de 2023
Editada: Rangesh el 30 de Oct. de 2023
Hi Mustafa,
I understand that you are trying to troubleshoot the issue by checking the COM port, but it appears that the ".ioc" file specific to this board has not been created for Simulink. To create the file, please follow the steps provided below:
  • Change the Hardware board to “STM32F4XX Based” in the Hardware settings.
  • Navigate to Create > Build options > Target hardware resources.
  • In the resulting window, create a new ".ioc" file and select the hardware as “NUCLEO-F411RE”.
  • After creating the file, proceedto configure the COM port and USART in the Connectivity > Target hardware resources section.
I hope that following these steps will help you resolve the issue you are facing.
Thanks,
Rangesh.
  2 comentarios
Mustafa Emre Zeybek
Mustafa Emre Zeybek el 1 de Nov. de 2023
Hello Rangesh,
Thank you for your answer. I also tried to use embedded coder too and created an .ioc file from cube mx but I still got the same xcp error

Iniciar sesión para comentar.

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by