I've been having difficulty building the no-os software for the AD7768 evaluation board (wuth zedboard). I've tried various branches from the repository (master, 2019_R1 and others) but all seem to fail. I followed the instructions from https://wiki.analog.com/resources/fpga/no-os_make/software_setup and used the 2019.1 Xilinx software (after I realised later software produces and xsa instead of hdf file from the hdl). I'm using make (cygwin under Windows 10) in the no-OS/ad7768-evb/zed directory.
The hdl seemed to build ok but not the no-os. It complains about the gpio.h file. This, and other seemingly necessary header files, is present in the no-OS/include/ directory but as far as I can tell from my limited understanding of the make files that directory never gets used in the build process. The build ends with the message:
Building file: ../src/ad7768.cInvoking: ARM v7 gcc compilerarm-none-eabi-gcc -DXILINX -DZYNQ -DZYNQ_PS7 -Wall -O2 -c -fmessage-length=0 -MT"src/ad7768.o" -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -I../../bsp/ps7_cortexa9_0/include -MMD -MP -MF"src/ad7768.d" -MT"src/ad7768.o" -o "src/ad7768.o" "../src/ad7768.c"In file included from ../src/ad7768.c:45:../src/ad7768.h:46:10: fatal error: gpio.h: No such file or directory #include "gpio.h" ^~~~~~~~compilation terminated.make: *** [src/subdir.mk:35: src/ad7768.o] Error 1make: Leaving directory
I'd be grateful for any help
The project is in process of being updated. Try using this branch for the software and this branch for the HDL.
Thanks very much for your reply. I thought I'd tried every combination of branches but must have missed that one. In fact I still couldn't get No-OS to build automatically using cygwin make (maybe I've got some paths or setup wrong) but creating the SDK project manually and adding the software files seems to work. In some ways that might make it easier to adapt the software for my design. I haven't tried it on the hardware yet but it builds successfully.
Thanks again, Tony.
Glad it was helpful.
You can try this wiki to help you build from the command line. Select the appropriate page in the right according to your operating system.
Thanks, Andrei, I'll try that later. The instructions are different from the ones I used previously. Is that because the project has moved to the .projects folder? Do I still need to use cygwin at all?
I think Cygwin is still required when building the HDL, but not the software.