- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to set a breakpoint in FLASH memory. When I do, execution pauses at PC, and the following error appears on the log:
<div class='quotetop'>QUOTE </div> --- Quote Start --- Cannot insert breakpoint 8. Error accessing memory address 0x1033e4: (undocumented errno -1).[/b] --- Quote End --- Are memory writes needed for setting breakpoints? Breakpoints for internal ROM work OK, so it doesn't make apparent sense.Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks like I have a workaround - insert a break instruction into the code:
asm ("break"); This also gets around the "set breakpoint at arbitrary address" problem as well http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The internal ROM isn't really readonly, so it allows you to set a breakpoint. The best way to do what you want is to turn on the hardware breakpoints. You will get a limited number of hardware breakpoints, but it will allow you to change them without reflashing the code.
Regards,
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page