Altera_Forum
Honored Contributor
15 years agoNIOS SBT IDE Debugger Problems
I've been all over the forums and have yet to see an answer to this problem.
I'm trying to debug some simple code using the debugger in the NIOS IDE. It basically reads/writes to on chip memory and then periodically writes to a PIO that lights up LEDs on a starter board. I know that the code works because when I compile in Quartus and program the board, the LEDs flash in the order I would expect. I thought this would be a good opportunity to learn how to use the debugger. I right click on the project and select debug as -> NIOS II Hardware. It starts up fine, but I get two problems: 1. The debugger ignores my breakpoints. There is a little yellow triangle with an exclamation point and the code on that line is underlined in yellow. If I mouse over it, the message "unresolved breakpoint" appears. 2. If I suspend the debugger it gives me the message "No source available for "main() " ", so I can't even see where the code is suspended. The debugger seems to work otherwise. When I run it the LEDs light up. When I suspend it the LEDs stop flashing and only one stays lit. I've tried playing with the debug configuration settings such as toggling the option "Stop on start up at main()", etc. No luck. Any ideas? Thanks!