The adrv9002 official routine compilation error

duoqingduoyi 注册会员
2023-02-27 12:19

the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ < br / > look the compiler can't find the no - OS/xil gpio. H this header file, probably because they are not properly configured include paths. Try the following solutions:

  1. Verify that the header path is correct. You can search #include "no-os/xil_gpio.h" in your source code and check to see if the path is correct.

  2. Verify that the header file is in the correct path. You can go to the corresponding folder to see if the file exists.

  3. If you confirm that the header path is correct but the compiler still can't find it, you need to add the header path to the compiler's compilation options. In Vitis, you can add C/C++ Build-> to the project properties. Settings -> SDS++ Compiler -> Adds the header file path to Includes.

scy10101 注册会员
2023-02-27 12:19

hope to adopt,
look at the picture there are three errors, the first is a guide packet error
the second is adrv9002 error, you can see the official document
Note that this program is based on ADrv9001, so in no-os, you need to make the corresponding changes to ensure that the compiled files fit the ADrv9002
The controller, drive, and configuration files need to be changed. If you still have a compiler error, the fix is successful, you can recompile to look at

lovedjj07590 注册会员
2023-02-27 12:19

The little witch referred to bing and GPT :
The compilation error may be caused by incompatibility between the official ADrv9002 routine and the official ADrv9001 routine. So first make sure you are using the correct official routine. If the correct official routine is used, the makefile may have been incorrectly configured, so try modifying the makefile file to replace ADRV9001_NO_OS_DIR and ADRV9002_NO_OS_DIR with the official routine path for ADrv9002, respectively.

Also, try adding the ADrv9002 SDK to Vitis and then regenerate the project to see if you can fix the problem.

ifeq ($(ADRV9002_NO_OS_DIR),)
$(error ADRV9002_NO_OS_DIR is not set)

The answer is not easy, so take it.

csu123 注册会员
2023-02-27 12:19

The error message is that the "xil_gpio.h" header is not found, which is the header file of the GPIO driver library provided by Xilinx.

Make sure you have the Xilinx SDK and Vitis tools installed and set the path and environment variables correctly. When creating a project in Vitis, you need to select the correct Board and Settings, select the correct board in the "Platform" Settings, and then select the correct version of the GPIO driver library in the "Board Support Package Settings".

If you have ensured that the above steps are configured correctly and still cannot resolve the problem, you can either manually add the "xil_gpio.h" header path to the project's Include path, or try to reinstall the GPIO driver library.