Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

spi_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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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