MATLAB: Do I get an error about a missing “thirdpart​​ytools_wi​n​64.xml” file when I try to build the model for Xilinx Zynq platform

Communications Toolboxzedboardzynq-7000

I am deploying a Hardware/Software Co-design example model to my Zynq-based platform (e.g. Zedboard, ZC702, ZC706, ZCU102 MPSoC). I have installed the "Embedded Coder Support Package for Xilinx Zynq Platform" as required. However, I get the following error at the end of the build log:
ERROR: Command "codertarget.zynq.internal.setupTokens();" threw an error:
Code generation cannot proceed because the following file or folder
could not be found: C:\MATLAB\SupportPackages\R2016a\toolbox\target\
supportpackages\zynq\registry\thirdpartytools\thirdpartytools_win64.xml
How do I resolve this error?

Best Answer

The error message indicates that the Embedded Coder Support Package for Xilinx Zynq Platform has not been set up properly. You need to run the hardware setup process for this support package, during which the missing XML file is generated.
You can start the hardware setup by opening Add-On Manager > Manage Add-Ons on the MATLAB Home tab. Start the hardware setup process by clicking the Gear icon (see screenshot below).
The following documentation explains all steps for setting up the Embedded Coder Support Package for Xilinx Zynq Platform in detail: