Forum Discussion

SimonT's avatar
SimonT
Icon for New Contributor rankNew Contributor
3 months ago

Create a device driver for a composed component

I have created a composed component that includes multiple avalon components.

e.g. one altera_avalon_spi and 2 altera_avalon_pio instances.

With platform designer I have exported the system as _hw.tcl file. Additionaly I have created a _sw.tcl file to define a device driver for the composed component.

The composed component is included in a parent NiosV QSYS system.

Now I want to create the BSP for this system.
My goal is to have a single driver for the composed component. From that single driver I want to control the SPI and PIO instances whithin that composed component and their interaction.
The problem is, that within the BSP editor the component instances that are defined in the composed component are still completly independent. Also the sw driver defined in the _sw.tcl is not available in the BSP Editor.

How can I create a single driver for a composed component?

5 Replies

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

    Hi @SimonT

    Platform Designer supports hierarchical systems that include one or more Platform Designer subsystems within another Platform Designer system. It is convenient for design work in fact. The component created by exporting a subsystem will be analyzed by tool chain to know the real components inner subsystem. That is why BSP editor tool still list pio and one spi module.

    Regards,

    Archer

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

      Hi Archer,

      thank you.


      Is it possible to create a driver to combine them all? I would like to have a single SW driver that can be used in various applications.

      Simon

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

        Hi Simon,

        Unfortunately, this is not supported by the toolchain.

        Regards,

        Archer

  • Hi @SimonT,


    Good to know that it is working now, with no further clarification on this thread, it will be transitioned to community support for further help on doubts in this thread.

    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.

    Thank you for the questions and as always pleasure having you here.


    Best Wishes

    BB