External Mode sample rate limitations on Zynq platform
Show older comments
I have deployed an interface model to the ARM CPU on my Xilinx Zynq Ultrascale+ ZCU102 Evaluation Kit. I am running the application in external mode to tune some parameters.
However, I noticed external mode is not stable when running at a sample time of 10e-9. Very often I get error messages such as:
Error occurred while executing External Mode MEX-file 'ext_comm':
ExtTargetPktPending() call failed while checking for target pkt
Error occurred while executing External Mode MEX-file 'ext_comm':
ExtSetTargetPkt() call failed on CLOSE.
Ensure target is still running.
External mode is terminating because Simulink received an unexpected incoming packet from target.
I also get the following error very soon after startup:
Error returned by XCP master: XCP Master TCP/IP error: socket receive error
After decreasing the sample rate to 10e-5, the application is now more stable. I have the following questions regarding this:
1) What is the scheduling policy in the application?
2) Why do I have to decrease the sample rate? If I leave it at 10e-9, shouldn't it just read as fast as possible?
3) Why am I seeing the above error messages?
4) Is there a sample time limit for External Mode?
Accepted Answer
More Answers (0)
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!