-
Notifications
You must be signed in to change notification settings - Fork 241
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
Adds some missing PEMicro GDB server functionality #989
base: master
Are you sure you want to change the base?
Conversation
KGU-SRE
commented
Feb 27, 2024
- fixes pemicro loading of multiple files - current release [1.12.1] erases whole flash for each object/binary file this fixes it so erase only happens once
- adds pemicro preserving of memory ranges
- adds pemicro catching of exceptions
* adds pemicro preserving of memory ranges * adds pemicro catching of exceptions
@KGU-SRE Many thanks for this! It's exactly what I need. Hopefully, this PR gets merged soon. |
@KGU-SRE I have your 1.12.2-pre installed in my VS Code. I've attempted to define a preserved range as follows, but it doesn't seem to be working. Is my configuration correct? Do you have a working launch.json (successfully preserves a flash range) that you could share?
|
here is a sample "pemicro" configuration snippet:
If you use intellisense (ctrl+space) it will also give you the correct syntax |
I just confirmed with the pre-release that the ability to define preserved memory ranges works as expected. |
Can we separate this into two PRs. One for loading/preserving and one for exceptions. Other questions
Finally, are you willing to support the pemicro server interface support in the future? |
@haneefdm Regarding your question about why it's needed -- For those transitioning from NXP's S32 Design Studio, these are features we're used to having available. |
I still think "Why preserve0/1/2 instead of an array of preserves?" is valid. NXP may have done it that way for GUI convenience but doesn't an array make more sense? Waiting on @KGU-SRE to respond. Also, why can't this be done with existing launch.json properties? The changes we make should make sense for the longer term and be coherent with how we support other gdb servers. |
@haneefdm If these PE specific properties did not exist, how would PE users know these capabilities exist and how to use them? |
@haneefdm this structure mirrors the syntax of the raw commands being passed to the GDB server. I like it because it explicitly defines the the whole interface (3 separate named ranges that can be enabled/disabled) in a way that is discover-able via intellisense suggestions. |