-
Notifications
You must be signed in to change notification settings - Fork 545
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
RISC-V debug module support for CV32E40P/41P ? #1947
Comments
Hi there, |
Hi @coolderin, I'm using this one sw/app/openocd_digilent_hs2.cfg from cva6-softcore-contest repo. |
Hi,
I think maybe cpu/ debug module doesn't have any hardware thread (?). Update: We can define debug module in target soc's python module. My problem was i should define the reset pin was 1'b1. Reset works active low. |
Hello @enjoy-digital,
I wanted to utilize the risc-v debug module provided in
core.py
withinlitex/litex/soc/cores/cpu/cv32e40p
https://github.com/enjoy-digital/litex/blob/76a704377fbd2897a5ab7144419fe0733aef3d97/litex/soc/cores/cpu/cv32e40p/core.py#L283C1-L283C32.However, I encountered an issue when running OpenOCD:
Error: [riscv.cpu] Unable to halt. dmcontrol=0x80000001, dmstatus=0x00000c82
Could you please confirm whether I am missing something?
Below are further details regarding the integration of the debug module in core.py, the target file, and the OpenOCD output.
debug module RTL
![rtl](https://private-user-images.githubusercontent.com/62422381/327690247-6b3f7ff9-b903-40e2-bb32-868eeb61086b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMwODc2ODMsIm5iZiI6MTcyMzA4NzM4MywicGF0aCI6Ii82MjQyMjM4MS8zMjc2OTAyNDctNmIzZjdmZjktYjkwMy00MGUyLWJiMzItODY4ZWViNjEwODZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA4VDAzMjMwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI3Nzk5YTdmY2Y2MzEzM2VkMDRiMjBiYzQ5ZWE2M2E5NTE2NDUzMjhhNWYxNDA4MTE3MDg5ZmIwMzRjYTdjNTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.2fblYuaoxTy8zmjurp4E31tEvQW4YOsQtbAxn2qIWWg)
Error from openocd
Do you have any ideas on how to debug this issue?
Many thanks for your assistance 👍
The text was updated successfully, but these errors were encountered: