Forum Discussion
Hi,
Is your Hardware and Software build okay? Hardware = Quartus compilation, Software from BSP > .elf/.hex generation.
If there are any error can you share the screenshots of them?
For debug I do the following:
Then would just check the main.c and set the breakpoints, or observe the memory, dissembly etc.
- PTrig2 years ago
New Contributor
Hi,
Thanks for your response !
The HW is built and the BSP generation is correct, since this setup has existed for some time now in existing solutions.
I have followed the steps that you shared and the debug stops before main() as is illustrated.
However, no further breakpoints are added and I am not able to use the "run to line" feature either (with similar errors as in original post).Again, the memory that has the code is external OFF chip RAM (as defined in linker memory regions).
This is below the reset/exceptions address in the address space for the Nios II.
Attached are some console/ disassembly (trying to select stepping mode for the suspended thread (at main()).
Another screenshot has the current break at main() marked in RED.
So the question is, how to add breakpoint to off chip code, with no hardware support. Is a SW breakpoint possible?
Thanks !