-
Notifications
You must be signed in to change notification settings - Fork 335
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
Single-core running “target_run_algorithm” in SMP architecture forcibly interrupted by ”riscv_openocd_poll“ #1191
Comments
This PR brought in |
@Alan-19950616 do you have a test to illustrate the issue? |
Of course, I can provide you with the logs. |
@Alan-19950616 logs of OpenOCD are not exactly the reproduction. Could you please provide the full reproduction? Configuration files used, commands passed to gdb, etc. |
Here is the configuration file, GDB only uses the load command. |
It can't be the only GDB command used as it surely has to at least use some commands to connect to the target in the first place? I think what @aap-sc is asking for is complete instructions and artifacts required for a reproducible test case. E.g.
|
@Alan-19950616, AFAIK this should fix the issue you are having: Please, try it out. @tom-van, @Wren6991, please consider creating a PR to https://github.com/riscv-collab/riscv-openocd. Alternatively, I can cherry-pick your commit and create a PR myself but it doesn't feel right :) |
@en-sc Thanks, it does solve my problem. but verify failed.
I read the flash to a file via the “flash read_bank” command and then compared it to the original data passed. |
|
Ok, I'll close the current issues and create another issue to upload the information. |
I'd like to leave this issue open until the fix is merged. |
The run algorithm code segment.
https://github.com/riscv-collab/riscv-openocd/blob/riscv/src/target/riscv/riscv.c#L3482-L3521
The problematic code segment.
https://github.com/riscv-collab/riscv-openocd/blob/riscv/src/target/riscv/riscv.c#L3926-L3929
The text was updated successfully, but these errors were encountered: