I am getting the error: make command return an error of 2, while trying to implement a software interface model of OFDM Transmit and Receive Using Analog Devices AD9361/AD9364

37 vues (au cours des 30 derniers jours)
Please help me with this error: make command return an error 2, while i am implementing the Software interface model of OFDM Transmit and Receive Using Analog Devices AD9361/AD9364 in Monitor and Tune Mode, provided by matlab. Another error is fatal error: ad9361.h: No such file or directory which might resolve on reinstalling the embedded coder support for xilinx radio. I am using ZC706 and FMCOMMS5. I am able to complete all steps of HDL Workflow advisor. Kindly guide me the cause and solution to the above errors.
Thankyou, for helping out!

Réponse acceptée

Harshit Gupta
Harshit Gupta le 21 Déc 2022
As per my understanding, you are getting the following two errors-
  1. The make command returned an error of 2.
  2. Fatal error: ad9361.h: No such file or directory.
For the first error-
For the second error-
  • To resolve this error, restart MATLAB as administrator (sudo on Linux). Then, re-run the set up for "Embedded Coder Support Package" for your particular board(s). You can do this by clicking on Add-Ons > Manage Add-Ons and then clicking the Gear icon next to the support package.
  • Running the support package setup will register the "sysroot" folder with the toolchain and also regenerate the correct Linux image needed to boot the Xilinx board.
  • If re-running the setup alone does not resolve the issue, please re-install the support package as an administrator. Then, perform the setup steps with the fresh installation.

Plus de réponses (1)

Bhanu Medasani
Bhanu Medasani le 14 Nov 2025 à 12:59
The code generation for the SW Interface model for targeting on hardware requires third party libraries, tools chain for compilation and systroot for the respective boards to be installed in MATLAB. For this example you need to set up the "Embedded Coder® Support Package for AMD SoC Devices" hardware support package.
Please check the following link for a detailed steps on how to install the support package Install Support for AMD SoC Boards - MATLAB & Simulink.
Once the support package is installed, run the hardware setup for your board which can be one of the following.
  1. ADI RF SOM
  2. ZC706 and FMCOMMS2/3/4/5
  3. ZCU102 and FMCOMMS2/3/4
The hardware setup will enable you to create the SD Card with required Linux Image and register the required sysroot to build the software interface model. Once the setup is done you should be able to build and deploy the model successfully.

Community Treasure Hunt

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

Start Hunting!

Translated by