I have a board where I loaded my code into QSPI for loaded by the HPS at boot time. This works. But when I connect with the debugger, and load my symbols for that code, I cannot set/hit breakpoints, step code properly, etc.
What I do is, using DS5, "connect-only" with the debugger, pause the processor, use file/symbol-file to load my symbols, and then set a breakpoint in my code that will absolutely be hit (it prints a message and I can make that message print).
file "path/to/my/file.axf" 0
is what I do (and loadfile with the same binary will load my program and run it just fine).
Am I missing something?
Yes, the .axf file has debugging symbols in it. Remember, that's the same file I can "loadfile" and works. But now my code was running out of QSPI so I can't do that, again.
This is, essentially, what I'm doing. It simply doesn't work. The symbols are loaded but setting a break point in a piece of code I know is getting executed (as it has output to the serial port and I see that output) will never get hit: software or hardware breakpoint. I'll beat on ARM. Maybe they will help? I think this is a DS-5 issue, after all.