Forum Discussion

pmarques's avatar
pmarques
Icon for New Contributor rankNew Contributor
11 months ago

How to access PIO register through a bare-metal application running on Agilex-5 HPS ?

I'm trying to run a simple bare-metal application running on HPS in the Agilex-5 065B Premium DevKit.

So far I've successfully ran this bare-metal example: https://altera-fpga.github.io/rel-24.3.1/baremetal-embedded/agilex-5/e-series/premium/ug-baremetal-agx5e-premium/

Now I'm trying to read/write a PIO register (DIPSW, LEDs) connected to the HPS via Avalon Memory Mapped Pipeline Bridge (same as in the GHRD).

My question is what functions/libraries do I need to use to access these registers ? All the docs and examples that I found are either for the NIOS soft processor or for older platforms (Arria, Cyclone).

Thanks,

PM.

4 Replies

    • pmarques's avatar
      pmarques
      Icon for New Contributor rankNew Contributor

      Hi Tiwari,

      I was assuming that those functions were targeting the direct GPIO pins of the HPS_IO. Can you confirm that they also work with a PIO Intel FPGA IP connected to the HPS via Avalon Memory Mapped Pipeline Bridge ?

      Thanks,

      PM.

  • Jeet14's avatar
    Jeet14
    Icon for Frequent Contributor rankFrequent Contributor

    Hi,


    Separate PIO functions are not yet released yet. I see only HPS side few peripheral APIs.

    Complete Baremetal sources for Agilex-5 are in development phase and will be release soon this year.


    Regards

    Tiwari


  • Jeet14's avatar
    Jeet14
    Icon for Frequent Contributor rankFrequent Contributor

    As we do not receive any response from you on the previous question/reply/answer that we have provided. Please login to ‘https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.