Forum Discussion

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

Nios2 + Vic + Ifi_gmacii

Hi ppl.

After trying to migrate from internal (default) NIOS2 interrupt controller to VIC I'd encountered a small problem...

There's no way I can generate BSP, adapt BSP from other project, etc. as I get following error:

--- Quote Start ---

Failed to execute: ./create-this-bsp --cpu-name cpu_0 --no-make

SEVERE: The Nios II CPU has its external interrupt port enabled, but not all drivers support the enhanced interrupt API: "ifi_gmacii_driver"

SEVERE: java.lang.RuntimeException: The Nios II CPU has its external interrupt port enabled, but not all drivers support the enhanced interrupt API: "ifi_gmacii_driver"

SEVERE: nios2-bsp-create-settings failed.

nios2-bsp: nios2-bsp-create-settings failed

--- Quote End ---

After 2 days of looking into internals of both VIC and IFI_GMACII the only thing I'd found is that VIC have some strange prioritizing mechanism... everything else seem to match perfectly. As for software part VIC simply overloads interrupt API and nothing really changes anyway...

So here's the question:

What's going on? Where can I find ANY info regarding compatibility of 3rd party cores with VIC? How can I make IFI_GMACII compatible with VIC? How can I make my own core compatible with VIC (it's not working. same error)?

Best regards.

2 Replies

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

    "IFI_GMACII" is which component's driver? Altera's component or a component that you create?

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

    Look to Altera's cores, which _are_ VIC compatible for your answers. Look for "ALT_ENHANCED_INTERRUPT_API_PRESENT" ifdefs and you'll immediately see the different API. There's an adequate description of this in the documentation and in AN-595.

    Regards,

    --slacker