-
Notifications
You must be signed in to change notification settings - Fork 332
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
How to read memory to get some information before target create? #1172
Comments
What exactly do you mean by "cluster" here?
What does "partial-good situation" mean?
As far as I know the OpenOCD memory access commands require that the target has been created before they can be used. Maybe you can use raw/low level JTAG commands to do what you need? |
general note: this tracker is probably not the best place to ask these questions, since it looks like a general OpenOCD question, not RISC-V specific one. Probably if you ask in OpenOCD mailing list you can get a more detailed answers. back to your question: if you mean that some targets require additional initialization before the can be accessed/examined, then OpenOCD supports "deferred examine". See "-defer-examine" argument to Additionally we already had questions related to "how to read memory before init". Here is an example of a discussion: #1038 . If this is something that you want, you could take a look there (though, there are no detailed instructions there, only general guidance). |
Thanks, my question was answered. |
@TommyMurphyTM1234 @aap-sc I can not use irscan/drscan commands to read memory before target create, because irscan/drscan commands must be used after init and target create command must be used before init. |
@lz-bro you can. Just create taps and don't create targets |
@lz-bro it depends on what you need to do. You have several options.
|
@aap-sc Thanks for reply. For the second option, it is possible that some targets are not needed in the end base on the information. |
No, I don't think so. AFAIK OpenOCD does not allow you to dynamically modify your target list. In your case I would recommend you to go with option 1. |
Do note, however, that .tcl itself supports this kind of scripting. So in theory you could invoke openocd from the configuration file itself. So in theory it may be possible to write this in a manner that is transparent to the user |
How can I invoke openocd from the configuration file itself,Use |
Could you provide more context? I don't understand the question. |
Is it means that I can invoke openocd from the .tcl, but I did not succeed, could you help me? like,
|
here is an example that works for me (file
I run it as:
this produces the following output :
If you need something more complex -you can try to build on top of this example... You can also try to provide more context on the nature of the failure (I still don't quite get what do you mean by "did not succeed"). |
@aap-sc
I run it as:
|
I assume that it does not work. Right? This more like a question about .tcl... I suspect that you are using
|
Yes, this is confusing...
...
|
For multi-cluster RISC-V core debugging, all clusters belong to the same tap. Actually, not all clusters may be used because there is partial-good situation. So how to read memory to get partial-good information before
target create
.The text was updated successfully, but these errors were encountered: