Forum Discussion
nsuggula
New Contributor
2 years agoC 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 ma...
tehjingy_Altera
Regular Contributor
2 years agoHi nsuggula
For using of the SPI device in the linux environment you do not need to compile the driver into your c code.
You could just add the device into the device tree and select the correct linux driver and it will appear in the linux /dev directory.
If you are happening to be developing in baremetal you could follow the guide here to setup the cross compiler.
https://www.rocketboards.org/foswiki/Documentation/HWLib
Regards
Jingyang, Teh