-
Notifications
You must be signed in to change notification settings - Fork 4
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
Modify and export registers data from peripheral view #28
Comments
Yes that should be possible.
Do you have a proposal for providing such API? While I think this idea would be ok, I think you will need to provide the appropriate PRs for it. As a first step you can provide some details to what your new API would look like so it can be reviewed by the primary maintainers of this project (such as @thegecko) |
Hi @jonahgraham , My proposal involves adding a new |
OK, so this isn't an API, rather an additional button? You should be able to trivially use the existing Out of interest, is the existing Other things to consider:
|
I intend to export the data in XML format. An example output would be:
The export functionality will handle entire modules by default, with an option to export selected subtrees if needed. This approach leverages the existing data tracker without re-reading memory, ensuring efficiency. The generated XML will comprehensively represent module structures, including registers and bitfields. |
Hmm, any XML library will need to be pure JavaScript to ensure the extension remains portable. What size increase would this have? I'm thinking a PR would be the best next step. |
I’ve tested the feature with a Renesas device (RH850-U2A) and the resulting XML file is approximately 50MB. I’ll ensure that any XML library used is lightweight and compatible with the extension’s requirements. I appreciate your feedback and plan to start a PR soon for a detailed review. Thank you! |
Type: Feature Request
I am currently working with vscode-peripheral-inspector, and it has been extremely useful in managing peripheral registers through the peripheral view.
As part of my project, I would like to implement additional functionality, specifically the ability to modify and export the registers data from the peripheral view programmatically. While the current API allows for loading and reading the data, I have not found an exposed method to modify or export the registers's value.
Would it be possible to extend the current API to include such functionality?
I am implementing the peripheral view for the hardware device, it requests to send a couple of gdb commands to read-write the IO registers:
-data-write-memory-bytes --thread-group i1 0x10020028 01000000
-data-read-memory-bytes --thread-group i1 0x10020028 4
These gdb commands should be sent from the adapter layer, could it be possible to provide the API to do it?
The text was updated successfully, but these errors were encountered: