- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The solution, it seems, is to set the memory type being loaded. In my case that was something like
add-symbol-file "filename.axf" s:0x0
The "s:" is what's important.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page