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

openOCD issue : failed to read misa #1145

Open
abhiram-padikkat opened this issue Oct 9, 2024 · 9 comments
Open

openOCD issue : failed to read misa #1145

abhiram-padikkat opened this issue Oct 9, 2024 · 9 comments

Comments

@abhiram-padikkat
Copy link

abhiram-padikkat commented Oct 9, 2024

While debugging a SoC with a 64-bit RISC-V processor and a Debug Module (Spec 1.00), we're encountering connectivity issues with OpenOCD. The error indicates a failure to read the MISA register, suggesting the target hasn't been examined yet. Upon reviewing the OpenOCD source code, we suspect that failure in accessing the progbuffer might be the underlying issue. However, we're uncertain about the progbuffer's location - is it within the Debug Master Module or the Debug Slave attached to the AXI bus? Could the integration of these components or any other peripheral in bus be the root cause of the issue, or are there other potential reasons for this failure?

@abhiram-padikkat abhiram-padikkat changed the title openOCD issue : failed to read mis openOCD issue : failed to read misa Oct 9, 2024
@TommyMurphyTM1234
Copy link
Collaborator

As always, the first step is to collect and upload a verbose openocd -d3 log which might shed some light on the behaviour.

@abhiram-padikkat
Copy link
Author

As always, the first step is to collect and upload a verbose openocd -d3 log which might shed some light on the behaviour.

output.log
this is our log report got by setting debug level as 4 in cfg file. i cant understant the exact issue from this

@TommyMurphyTM1234
Copy link
Collaborator

You're using a very old version of OpenOCD:

Open On-Chip Debugger 0.10.0+dev-01252-g675259382 (2020-09-22-12:07)

You should probably try a build of the latest sources.

@abhiram-padikkat
Copy link
Author

You're using a very old version of OpenOCD:

Open On-Chip Debugger 0.10.0+dev-01252-g675259382 (2020-09-22-12:07)

You should probably try a build of the latest sources.

but we have successfully debugged our reference soc system with same version. and when we try to make new soc , by mimicing the integration and adding new peripheral, this issue comes

@TommyMurphyTM1234
Copy link
Collaborator

I would still recommend using a build of the latest OpenOCD as there have been so many changes to the RISC-V (and general) OpenOCD support since the version that you're using. In any case it's going to be difficult to find people prepared to investigate issues with such an old version.

@abhiram-padikkat
Copy link
Author

sure. defnitely do that

@abhiram-padikkat
Copy link
Author

btw are you familiar with debug module struction. in the latest spec, there is a debug slave which we attach on system bus,what is its purpose? and where is exactly the program buffer,in dm master or dm slave?

@TommyMurphyTM1234
Copy link
Collaborator

btw are you familiar with debug module struction. in the latest spec, there is a debug slave which we attach on system bus,what is its purpose? and where is exactly the program buffer,in dm master or dm slave?

Sorry - I'm not really up to date on the latest specs.
You might get better info on the spec and implementation issues on the debug spec repo or mailing list?

@abhiram-padikkat
Copy link
Author

abhiram-padikkat commented Oct 9, 2024

okey. thank you so much!!

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