Was this issue ever fixed? I have the same problem, but cannot figure out how to implement a solution. I created a simple I2C slave device in HDL and plugged it into the nioss via qsys. Everything looks normal like the above situations, but when I do Nios II -> generate BSP in eclipse I get the -1 value in my system.h for IRQ and IRQ_INTERRUPT_CONTROLLER_ID.
I'm using Qsys 13.1 Build 162 and Quartus 13.1.0 Build 162 web edition.
Also, to fix this, where do I find associedAddressablePoint setting?
Solved:
--------
So the problem I had wasn't this bug, but sounded just like it. I had two custom avalon MM slave peripherals and each had a MM slave interface. If you go into the interfaces tab of the custom peripheral in Qsys (the ones that you made) you will see an interface for avalon_mm_slave or something like that. Here is a screenshot of one of mine.
https://www.alteraforum.com/forum/attachment.php?attachmentid=9071 It turned out that both of these peripherals had the exact same name for this interface. This one (from screenshot) was the second one I built and when I generated my bsp/sopc file the component_name_hw.tcl file for this second peripheral did not get built correctly because of this leading to my system.h file in eclipse not having the correct interrupt and interrupt controller information. Instead of 5 and 0 (which was the interrupt number and int. controller number I was supposed to have) it just had -1, -1 respectively. after changing the interface name to something else on this second peripheral the *_hw.tcl file was built correctly and section of the system.h file in my eclipse C-side is now correct. I haven't tested the interrupt with an ISR yet, but at least it is building the system.h file correctly.
Long story short, heads up on naming convention for this interface regarding custom peripherals. Don't name them the same thing. This is easy to do because Qsys defaults here to avalon_slave_0 as the default name for the interface.
Another note. The component_name_hw.tcl file is in the main quartus directory.
Hopefully this helps someone out.