Could not connect to XCP slave: XCP Master internal error: Busy(0) or no timeout(2) for 255
43 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I've used the S-Function Builder to use an Arduino library in Simulink. Specifically, I am trying to use the AccelStepper() library using an Arduino Due. I followed the steps showed here: https://www.youtube.com/watch?v=_OLctOFjjYQ
After hitting Monitor & Tune, the model looks like it successfully builds but then I get prompted with this error:
=== Simulation (Elapsed: 47 sec) ===
### Starting build procedure for: cfc_sim_test
ARM Memory Usage
----------------------
device - ARM Cortex-M3
Program: 38732 bytes (7.4% Full)
(.text)
Data: 36708 bytes (37.3% Full)
(.data + .bss)
### Deployed code to target successfully
### Successful completion of build procedure for: cfc_sim_test
Build process completed successfully
Error:External Mode Open Protocol Connect command failed
Error:Unable to connect to the 'Arduino Due' target for 'cfc_sim_test'.
I also get a window prompt:
Executing the 'Connect' command produced the following error: Could not connect to XCP slave: XCP Master internal error: Busy(0) or no timeout(2) for 255.
Its important to note that this only occurs when the S-Function is present in the model. If the S-Function is commented out, the model can compile and run. When I switch to an Arduino Mega, the S-Function can compile and run. Something with Due + S-Function is causing this error.
Respuestas (4)
Wongsatorn Phongphaetsart
el 25 de Dic. de 2020
Do you fixed it?
I have same problem and need your help.
Thankyou.
0 comentarios
liangmaokun liangmaokun
el 28 de Dic. de 2020
I still have same problem and need your help.
0 comentarios
Cihan YURTSEVER
el 20 de En. de 2021
Im having the same problem for Arduino Due. Could someone please help us?
0 comentarios
Nils Böhringer
el 26 de En. de 2021
I got the same error while running a bigger External Mode Programm (without an S-function) on the Due.
I solved it by decreasing the Fixed-step size in the Solver or setting it to "auto".
My guess is this error ocurrs because the server which is set of while running the external Mode wants an update form the variables and the Due isnt finhished calculating the latest step. Then a timeout Problem ocurrs and the connection breaks off.
The Due has so much computing power that it shouldnt be a Problem but ....
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!