Jump to content
  • 0

Zmod demo Linux project build problem


Zynq

Question

Hi, when trying to build the Zmod demo Linux project there are errors:

Vitis/2020.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/x86_64-petalinux-linux/usr/bin/arm-xilinx-linux-gnueabi/arm-xilinx-linux-gnueabi-ld.real: ./src/zmodlib/Zmod/zmod.o: in function `ZMOD::receiveCommands(unsigned int*) [clone .part.0]':
zmod.cpp:(.text+0x18): undefined reference to `fnReadReg(unsigned int, unsigned char)'

Also other function definition including fnWriteReg, fnAllocBuffer, fnFreeBuffer, fnOneWay, fnIsDMA, fnWriteFlash, fnReadFlash couldn't be found. Any suggestions?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @Zynq

It seems the linux platform dependencies are missing. The zmodlib sources appear to be in your workspace, since receiveCommands is there. However, the Linux-specific function implementations which are located in C sources down in zmodlib's linux folder aren't being found.

If you haven't yet, I'd recommend running through the project settings described in the Linux Environment Project Setup section of the base library user guide to make sure that the project settings are correct: https://digilent.com/reference/zmod/zmodbaselibraryuserguide#linux_environment_project_setup1

Thanks,

Arthur

Link to comment
Share on other sites

  • 0

Hi Arthur, thanks for the information. The project was set up according to the tutorial. The following error was reported:

 

Description    Resource    Path    Location    Type
'XPLAT_VERSAL' undeclared (first use in this function)    design_1_wrapper_platform_0_1        line 71    C/C++ Problem

 

The ZmodADC Linux demo couldn't run on the Eclypse Z7 board.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...