Forum Discussion

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

HAL-Driver not included in BSP

Hallo!

I'm currently trying to include a driver into the auto-generated HAL in a BSP. I followed the steps in the "Nios II Software Developers Handbook" from May 2011 (p. 7-20ff).

So I currently have a folder named "ip" in the projects root directory (where the qpf-Project file is) with:

ip

- inc

-- sample_regs.h

- HAL

-- inc

--- sample.h

-- src

--- sample.c

- sample_sw.tcl

I set the "set_sw_property hw_class_name" to the "set_module_property NAME" from the sample_hw.tcl.

But when I create a new BSP for the Nios .sopcinfo-File the files from this driver are not included.

Do you have an idea where I missed something?

Regards,

Markus

Used Versions:

Quartus 12.1

NIOS EDS 12.1

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I found my mistake: It was in the sample_sw.tcl file.

    The copied line

    "set_sw_property min_compatible_hw_version 7.1"

    from an altera sample IP did not match the version 1.0 from my hardware.

    So the change to

    "set_sw_property min_compatible_hw_version 1.0"

    solved it.

    Now the source files are in the BSP.