-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
proposal: dap-server: allow read register value by default #2266
base: master
Are you sure you want to change the base?
Conversation
@burrbull Would you be open to advising on this? I originally took the conservative approach (to compensate for my limited experience in this area), because I was concerned about unintended consequences when reading modifies some registers. What do you recommend? |
I recommend to use |
@burrbull thanks for reply! I have try your suggestion, but probe-rs/probe-rs/src/bin/probe-rs/cmd/dap_server/peripherals/svd_variables.rs Lines 38 to 40 in b6f1f1e
And after the expantion at parsing, the I guess the reason this happend is from the default value of |
P.S. Saying about |
Ah, so you mean "use |
Yes. SVD can keep part of information upper on tree. |
To check if reading register is danger you also should look at each field in register. It also has |
Thank for the hints! I might just keep track on the issue, this suggestion might be a little over my ability. XD |
Yeah, and it has already been checked in original code: probe-rs/probe-rs/src/bin/probe-rs/cmd/dap_server/peripherals/svd_variables.rs Lines 150 to 155 in b6f1f1e
|
@eZioPan I am a bit slammed this week, but will look into this early next week and if you are keen, I can help you with it. |
@noppej Thank you for your kindness! I have no experience on using svd library before, and it might be a long time for me to learn it, and potentially let you wait a lot. I would ask leaving the task for someone more familiar than me. And thanks again! |
fedf286
to
4500dc3
Compare
see
dap-server
default registerrestricted_read
value block viewing register value on STM32H5 #2265for detail