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

Can't view (RISC-V) registers in Debug view #95

Open
NeilBaner opened this issue Sep 28, 2024 · 2 comments
Open

Can't view (RISC-V) registers in Debug view #95

NeilBaner opened this issue Sep 28, 2024 · 2 comments
Labels
known issue Issues that are known but are on hold.

Comments

@NeilBaner
Copy link

I'm not sure if I'm just looking in the wrong place, but I can't find anywhere where I can see the state of the RISC-V CPU registers of my Pi Pico 2 in the VS Code Debug panel. I can read them with the gdb command info registers, but it would be nice to have them in the GUI as well.

I am running the blink example program in RISC-V mode, modified with an external function implemented in RV assembly. The program runs and behaves as expected. I am debugging with a Raspberry Pi Debug Probe connected to a Raspberry Pi Pico 2. The debugger works as expected after following the instructions in the "Getting Started with Raspberry Pi Pico" guide.

I was looking for something like the "Registers" panel in Keil MDK: https://www.keil.com/support/man/docs/uv4cl/uv4cl_db_dbg_cpuregs.htm. It's also available in other IDEs like the STM32Cube IDE.

@will-v-pi
Copy link
Collaborator

Yes, the current Cortex Debug extension used for debugging is only designed for Arm Cortex processors, so searches for Arm register names when generating the registers view, not RISC-V. It works fine for everything in RISC-V other than the registers view, which you can still view with info r

I’ll leave this open for anyone else who discovers this, so they can see the workaround (to use info r manually), but I don’t think we’re planning to fix this as a priority. As far as I’m aware, the Keil MDK and STM32Cube IDEs both only work with Arm processors too, and have no support for RISC-V.

@will-v-pi will-v-pi added the known issue Issues that are known but are on hold. label Sep 28, 2024
@NeilBaner
Copy link
Author

I see, thanks for the information. I didn't realize the extension uses cortex-debug, but it makes sense that it would take quite a bit of effort to add this feature, then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
known issue Issues that are known but are on hold.
Projects
None yet
Development

No branches or pull requests

2 participants