Skip to content
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

Ability to change RAM values displayed via the MEMORY view? #40

Open
IansMusical opened this issue Mar 23, 2021 · 3 comments
Open

Ability to change RAM values displayed via the MEMORY view? #40

IansMusical opened this issue Mar 23, 2021 · 3 comments

Comments

@IansMusical
Copy link

@maxgerhardt I've been speaking with Georg who recently informed me of this project. Thank you for the work you are doing it looks great so far!

In the MEMORY view of PlatformIO it is possible to display in a new window the STM8x RAM values. However, I've not found a way to change a RAM value. Could this feature be added please?

@maxgerhardt
Copy link
Contributor

maxgerhardt commented Mar 23, 2021

Hey @IansMusical, I think this is feature that must be generally added in the debugger view, I think that code lives in https://github.com/platformio/platformio-vscode-ide/.

For now it should be possibly however with direct GDB commands, as e.g.

set {int}0x0004 = 4

writes 4 as an integer-value (I think 2 bytes here?) at address 0x0004.

@valeros this issue should be transfered I think?

PS: It also looks like we're shortly before release of all these new debugging, board features and tool(chain) updates :)

@IansMusical
Copy link
Author

@maxgerhardt Thank you for your reply. I have successfully been able to use GDB directly as per your instructions to set a global variable, which updated in the VARIABLES view. I was also able to update core registers, e.g. a, xl and view them in GDB but the REGISTERS view did not automatically update even if I closed and opened the view again.

Will you be the person to connect these GDB commands to the GUI (somehow) or is it in the core?

@maxgerhardt
Copy link
Contributor

Will you be the person to connect these GDB commands to the GUI (somehow) or is it in the core?

Per #42 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants