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++
12600 Discussions

What can stop the debugger getting control of the NIOS II?

Altera_Forum
Honored Contributor II
1,012 Views

Hi, 

 

I'm using the NIOS II 9.1sp2 SBT environment. Occasionally during debugging I get an error from the debugger when I try to pause the program - "Processor failed to go into debug mode". 

 

Does anybody know what target conditions can stop the debugger from gaining control of the NIOS II target? 

 

Thanks, 

Darren.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
261 Views

When I have seen this, it has been because my code had memory write errors or I misprogrammed DMA and either case hit memory used by the jtag debugger part of system. Sometimes when you blow away memory the debugger disconnects immediately. I think in your case it's already dead and it doesn't know it until you tell it to pause execution. 

 

If the program is too simple and you're sure it cannot be this, then it could be your DRAM controller is not set up right or you have DRAM that is misbehaving. 

 

Bill
0 Kudos
Altera_Forum
Honored Contributor II
261 Views

Thanks Bill. In my case it was a hardware issue that stopped a H/W register read access from completing - locking up the bus. 

 

Can't blame the NIOS for that one...
0 Kudos
Reply