Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12745 Discussions

Create a device driver for a composed component

SimonT
Beginner
384 Views

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

e.g. one altera_avalon_spi and 2 altera_avalon_pio instances.

Bildschirmfoto vom 2025-09-04 16-25-13.png

 

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.

Bildschirmfoto vom 2025-09-04 16-28-54.png

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.

Bildschirmfoto vom 2025-09-04 14-27-57.png

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

0 Kudos
4 Replies
Archer_Altera
Employee
304 Views

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

0 Kudos
SimonT
Beginner
133 Views

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

0 Kudos
Archer_Altera
Employee
84 Views

Hi Simon,

 

Unfortunately, this is not supported by the toolchain.

 

Regards,

Archer

0 Kudos
SimonT
Beginner
16 Views

Ok thanks, thats all I wanted to know.

0 Kudos
Reply