- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page