Hi,
This is a very common error during building Nios systems. Just double check the following things in your system.
1. When you generate files from SOPC, make sure that these files are the ones that are used for compilation in Quartus. Usually, the SOPC system generates a .qip file which includes all verilog/vhd files generated by SOPC system. This file must be included in the Quartus project. (you can double check in quartus project.qsf file).
Just make sure that you are infact compiling the files that are generated by SOPC
2. Always, always, after adding a new component in SOPC system, make sure you auto-assign all base addresses.
3. Double check clocks and resets.
4. If you are using Eclipse, pay attention to the warning that System ID and timestamp didnt match. This probably means that either the Nios was not able to communicate to the sysid using the system configuration in the sof. -> which means, you either have a wrong sof or the system was compiled using the wrong files( different from the ones that the SOPC generated).
I ran into this error many times. In my case, I was able to solve this by adding the correct SOPC generated qip file to the quartus qsf project file.
Thanks
Deepak