-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Fix for debugging when trying to load to ram. #87423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -150,7 +150,10 @@ def do_run(self, command, **kwargs): | |
| ['-ex', f'target remote {self.gdb_host}:{self.gdb_port}']) | ||
|
|
||
| if command == 'debug': | ||
| gdb_cmd += [ '-ex', 'load', '-ex', 'monitor reset'] | ||
| # If the flash node points to ram, linkserver treats | ||
| # the ram as inaccessible and does not flash. | ||
| gdb_cmd += ['-ex', 'set mem inaccessible-by-default off'] | ||
| gdb_cmd += ['-ex', 'monitor reset', '-ex', 'load'] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is the order of load, reset being reversed to reset, load?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we are going to reset, we would want it to be before a load.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But I do see a typo I will fix in the next push if I don't get further comments
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, I see that is what you are doing, you are restating what it is that I said that am observing, my question was why. You should explain in the commit message also why you are reversing this order. I don't know why.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have updated the commit message, let me know if that helps! |
||
|
|
||
| if command == 'attach': | ||
| linkserver_cmd += ['--attach'] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.