Simulink Support Package for Arduino Error: External Mode Open Protocol CheckData Command Failed

52 visualizaciones (últimos 30 días)
Hello,
I am currently using the Simulink Support Package for Arduino Hardware. After running the following model in external mode for about 10 seconds, I encounter an error stating 'external mode open protocol checkdata command failed', and the operation stops.
The Arduino board I am using is the MKR WiFi 1010.
Could you please help me understand what might be causing this error?
I look forward to your response.
Thank you!

Respuesta aceptada

Meet
Meet el 21 de Nov. de 2024 a las 6:38
Hi,
I encountered a similar error with my STM32 board. One possible cause is exceeding the available bandwidth of the XCP connection. Here are some steps that helped me resolve the issue, which you might find useful to try:
Decrease the number of signals you are logging at the same time. Increase the clock speed and baud rate of the hardware board. Note that you may also need to reconfigure scalars and timer constants. Split the model into two parts. Use one model to perform any heavy computation work, and deploy this using code generation. Use a second Simulink model running in external mode to log the signals produced by the first model.
I hope this solution works for you as well!
  1 comentario
순호 권
순호 권 el 22 de Nov. de 2024 a las 4:51
Thank you for reply!
This is very helpful to me.
How can I split the model in one board?
At my current level of knowledge, I do not yet understand how to do it.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by