Forum Discussion
Altera_Forum
Honored Contributor
11 years agospi_command from Linux
Hy guys,
I'm using a CycloneV-SoC. In the FPGA, I have instanciated the Altera-SPI-Master-controller and connected it to the lightweight-H2F-bridge. Linux is running on the HPS. What should I do on the software side to access my SPI devices? There is the altera_avalon_spi.c file that can be used on NIOS. Is there an equivalent file for HPS-ARM? Thanks,5 Replies
- Altera_Forum
Honored Contributor
Hi Charly78,
There is an example in the 14.01 release for SPI: C:\altera\14.0.1\embedded\examples\software\Altera-SoCFPGA-HardwareLib-SPI... That should help you. Also, you can find the HWLib files in the directory as well: C:\altera\14.0.1\embedded\ip\altera\hps\altera_hps\hwlib\src\hwmgr I hope that helps. Sue - Altera_Forum
Honored Contributor
Hi scozart,
Those files are for the hard-coded SPI controllers of the HPS. My SPI controller is in FPGA implemented with the Altera MegaFunction. I would like to get such HWLIB files and example but for SPI controller implemented in FPGA. Thanks, - Altera_Forum
Honored Contributor
Hi Charly78,
This forum is for discussion of the HPS. For the soft IP, you need a different forum. Please post your question on the IP forum. Regards, Sue - Altera_Forum
Honored Contributor
Sue -
Exact same question as Charly78, but I have an Altera 13.1 tree. Found the directory you referenced, but there wasn't any SPI material there. Do I have to download the 14.0 tree, or can I find the example on the Altera site ..? Thanks John - Altera_Forum
Honored Contributor
Hi John,
We add new examples as we go along and we don't go backwards with verification. You can either download 14.0 (or wait a few days for 14.1) or try to retrofit the software your self to 13.1. Regards, Sue