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

Unable to read peripheral memory with GDB #1867

Open
kossnikita opened this issue Nov 8, 2023 · 1 comment
Open

Unable to read peripheral memory with GDB #1867

kossnikita opened this issue Nov 8, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@kossnikita
Copy link
Contributor

Describe the bug
Peripheral reading does not work with gdb server probe-rs. While the rest of the debug generally works fine.

To Reproduce
Steps to reproduce the behavior:

  1. run server probe-rs gdb
  2. connect with gdb
  3. run -data-read-memory-bytes <any peripheral>

Expected behavior
Reading peripherals returns correct status data.

Desktop

  • Windows 10

Additional context
See issue on cortex-debug

@kossnikita kossnikita added the bug Something isn't working label Nov 8, 2023
@Yatekii
Copy link
Member

Yatekii commented Nov 8, 2023

GDB is a piece of work wrt memory sections because of soft/hard breakpoint management. So we only map out RAM and Flash, but no peripherals, which then prompts GDB to say "hey, that memory does not exist". There is no good way to solve this, but I am happy to accept any solutions :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants