Forum Discussion

paulgeisler's avatar
paulgeisler
Icon for New Contributor rankNew Contributor
1 month ago

GPIO access in max10 BSP

Does the Max10 board support package generate any code for GPIO access? What peripheral would I have to add to the platform designer to get the BSP to generate GPIO support code?

3 Replies

  • AqidAyman_Altera's avatar
    AqidAyman_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi,


    The BSP automatically includes the matching software support for peripherals in the Nios processor system. The GPIO hardware must first exist in the Platform Designer system.


    For memory-mapped GPIO, add the PIO (Parallel I/O) IP in Platform Designer. Connect its Avalon Memory-Mapped agent interface to the Nios processor data master, export the PIO conduit to the top level, and assign the corresponding FPGA pins in Quartus Prime.


    References:


    Embedded Peripherals IP User Guide: PIO Core

    Quartus Prime Standard Edition User Guide: Creating a System with Platform Designer

    Quartus Prime Standard Edition User Guide: Connecting System Components

  • umut_arrow's avatar
    umut_arrow
    Icon for Occasional Contributor rankOccasional Contributor

    Hi,

    You need to add the PIO (Parallel I/O) IP and connect its to Avalon-MM slave to Nios data master.

    I shared the reference doc below. Section 26 goes through PIO.

    https://docs.altera.com/r/docs/683130/26.1.1/embedded-peripherals-ip-user-guide/on-chip-memory-ii-ram-and-rom-ip-revision-history

  • ai_responder's avatar
    ai_responder
    Icon for Community Manager rankCommunity Manager

    Thank you for your inquiry. To ensure an accurate response, your request has been routed to an Altera application engineer for further review and assistance.


    Note: To continue using AI Responder, please start your next inquiry with ai_responder

    Disclaimer (Beta): The AI Responder is currently provided as a beta feature. AI-generated responses may contain errors or omissions. Please verify technical guidance with official Altera documentation before implementation.

    Thank you very much.