Altera_Forum
Honored Contributor
19 years agoCannot seem to run code through the debugger
Hello,
I was handed a project to work on am pretty much on my own to get a few changes incorporated and have the system tested. I was shown where to find the source code and have installed the Nios II IDE on my XP machine. Having said that, I cannot seem to get to execute (step through) any code in the debugger. When I attempt to open the debugger, the download will take place and I will get the following line in the debug window: <terminated, exit value:0> Nios II Download output (1/9/07, 9:00 AM) It will then display that Thread[0] is running. If I attempt to halt it, the PC's CPU hits 100% and after 30 seconds or so, the program comes back with the following line: Thread[0] (Suspended) <Stack is not available: Target is not responding (timed out).> I have a breakpoint set right at the beginning of main, which is never hit. Also, inside the configuration options (under the debugger tab), I have selected to break at main(). However, if I select to break at program entry, it will open up the disassembly window and will stop immediately after the program begins to execute. It seems to go off in the weeds between program start and main(). I have searched through the project options trying to see if a particular option could be causing this, but I have been unsuccessful in locating one to this point. If there are any suggestions, please let me know. I should also mention that running it appears to work great, however debugging it seems to cause it some problems. Are there any major differences between debugging it and outright running it on the processor? Any help would be greatly appreciated and thanks in advance, Tom