Forum Discussion
Altera_Forum
Honored Contributor
11 years agoAs I recall, and I may be hazy here, but I think you need to link in a debugging library and initialize it early in your code. I don't remember the details, but it should be in the Nios software documentation. If I recall correctly, the debug stub needs an exception handler defined that executes when a breakpoint is hit. I think the init routine fills in the breakpoint handler address in the vectors.
Alternately, you could undefine NIOS2_HAS_DEBUG_STUB and it won't call the function that crashes.