-
Notifications
You must be signed in to change notification settings - Fork 330
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
I get an error when calling the dm_write befor init #1180
Comments
@Alan-19950616, to access Debug Module Interface one needs to know it's version first ( |
@en-sc The CORE that is currently being debugged needs to be configured with the soc component using sysbus before it can be halted. how should this be handled at the moment? |
|
@aap-sc I was using dm_write to implement this function, after updating the code I realized that it doesn't work like that anymore, if you can confirm that all subsequent openocd will be modified in this direction, I will change to irscan/drscan to implement it! By the way, in that case do commands like dm_write no longer apply “.mode = COMMAND_ANY” |
Hm... For now we'd better to stick with irscan/drscan. Currently, reply by @en-sc provides a reason for that: #1180 (comment) That being said I'd like to get some additional clarification from @en-sc first. @en-sc I have a theoretical question, though. Do we really require to perform an invasive examine on a targets to figure out DM properties and relevant topology? I mean can we implement some command to figure out only DM properties without halting/resuming the target (we could mark targets as
yep. Currently this looks like a bug. |
No. Examining the DM can be done without affecting harts.
Yes, this is achievable, but I'd first prefer to better expose Debug Module. To be able to configure anything related to the DM we need to first be able to configure at least the Debug Transport Module's version. I'd prefer if there were an explicit DM configuration and target-DM assignment, similar to how it's done for ARM DAPs. |
Right now - yes. Looks like (according to answer from @en-sc) access to DM could be implemented in future - but this requires additional changes and may take some time |
openocd.cfg
The error log
The text was updated successfully, but these errors were encountered: