Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

Invalid instruction exception?

Altera_Forum
Honored Contributor II
1,024 Views

We are running some code on a NIOS2/CycloneII platform. 

 

Somehow the code is telling the processor to execute some instructions that is outside the code segment. Not sure yet if this is a hardware or software issue. 

 

I can break into the debugger and examine registers, but the ra register (return address?) is 0xFFFFFFFF. 

 

Is there anyway to set a breakpoint if the pc is outside a certain range?  

 

Is there a way to break into the debugger when an invalid instruction is executed?
0 Kudos
0 Replies
Reply