C program to control SPI
Hello,
I am using Cyclone V , DE-10 standard SOCFpga
I created a project to implement spi communication so i implemented in two ways
using "spi (4 wire) intel fpga IP." and SPI slave to avalon master.
Please check the image below
Compiled the project and created rbf file and header file. Please help me how to use the spi module available now on FPGA. I wrote the C program to control the SPI (4 wire ) which is also available in attached zip file. I used the header files available in E:\intelFPGA_lite\22.1std\ip\altera\sopc_builder_ip\altera_avalon_spi. but when i compile the the spi_test.c with altera_avalon_spi.c i get the below error message
Please let me know the solution or please point out anything if I am doing wrong.
How can i use SPI slave to avalon master.
I also attacjed full project zip file below.
Thank you