Effacer les filtres
Effacer les filtres

ExtTargetPktPending() call failed while checking for target pkt

6 vues (au cours des 30 derniers jours)
Abdul K
Abdul K le 2 Août 2020
Commenté : Aaeron 张 le 8 Déc 2022
I am using a Matlab 2017a Simulink mode external mode and an Arduino Mega 2560 to get some data from a Pixy2 Camera. The model can be built and upload into arduino, however I get this error (attached: Error occurred while executing External Mode MEX-file 'ext_comm':ExtTargetPktPending() call failed while checking for target pkt) when I try to run the model. What that this error means and how can I solve, your ideas are welcome. Thank you

Réponse acceptée

Arun Kumar
Arun Kumar le 6 Août 2020
Modifié(e) : Arun Kumar le 6 Août 2020
Hi Abdul,
The error is seen when Simulink doesn't get acknowledgement from the target. One very common reason for this is target crashing/ going to bad state.
In your case, since you've added custom code(as asked in your previous question) there's a high chance that the code is causing the target to crash and hence the target is not responding. One possible way of verifying this is to deploy the code using "Deploy" option and see if the target still works(try putting digital output with pulse generator to blink LED).
If it is due to your code, then you need to check your code to see if there are any illegal operations.
If you still face the same issue after trying the above, please reach out to MathWorks Technical support.
Hope this helps.
Thanks,
Arun
  1 commentaire
Aaeron 张
Aaeron 张 le 8 Déc 2022
Hi Arun
Thanks for your advice. It do work. The problem is my custom code. I comment out them and it works.

Connectez-vous pour commenter.

Plus de réponses (1)

Abdul K
Abdul K le 8 Août 2020
Thanks for your reply. I fixed the issue.
  1 commentaire
Ash Seebooa
Ash Seebooa le 19 Oct 2020
Hello Abdul. How did you fix it please?
Many thanks
Ash

Connectez-vous pour commenter.

Produits


Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by