-
Notifications
You must be signed in to change notification settings - Fork 721
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
Improve robustness of OpenOCD connection in SRAM execution tests #15174
Comments
@alphan FYI |
@dmcardle / @alphan for your usecase and testing, would it be easier to just have |
Yeah, I should have mentioned that actually. Disabling execution prevents the ROM from boot-looping and prevents it from setting up the watchdog timer. We could disable execution in a special OTP image and splice it into the CW310 bitstreams, but OTP splicing needs a little work first (#15162). |
ah sounds good. Yeah it would just be good to confirm that having |
I kind of simulated |
ah sounds good...at least there's no other hidden issue hehe. |
Yeah, both #14484 and #14486 say:
@dmcardle I think you can close this once you can confirm that everything is stable. We can either
It's good to know that we can attach even when the ROM is running but the plan is to enable execution only after we are confident. |
Now that execution is disabled, OpenOCD connection should not be flaky anymore! This should fix lowRISC#15174. Signed-off-by: Dan McArdle <dmcardle@google.com>
Now that execution is disabled, OpenOCD connection should not be flaky anymore! This should fix lowRISC#15174. Signed-off-by: Dan McArdle <dmcardle@google.com>
Now that execution is disabled, OpenOCD connection should not be flaky anymore! This should fix lowRISC#15174. Signed-off-by: Dan McArdle <dmcardle@google.com>
Now that execution is disabled, OpenOCD connection should not be flaky anymore! This should fix lowRISC#15174. Signed-off-by: Dan McArdle <dmcardle@google.com>
Now that execution is disabled, OpenOCD connection should not be flaky anymore! This should fix lowRISC#15174. Signed-off-by: Dan McArdle <dmcardle@google.com>
Now that execution is disabled, OpenOCD connection should not be flaky anymore! This should fix lowRISC#15174. Signed-off-by: Dan McArdle <dmcardle@google.com>
Now that execution is disabled, OpenOCD connection should not be flaky anymore! This should fix lowRISC#15174. Signed-off-by: Dan McArdle <dmcardle@google.com>
Now that execution is disabled, OpenOCD connection should not be flaky anymore! This should fix lowRISC#15174. Signed-off-by: Dan McArdle <dmcardle@google.com>
Now that execution is disabled, OpenOCD connection should not be flaky anymore! This should fix lowRISC#15174. Signed-off-by: Dan McArdle <dmcardle@google.com>
Now that execution is disabled, OpenOCD connection should not be flaky anymore! This should fix lowRISC#15174. Signed-off-by: Dan McArdle <dmcardle@google.com>
Now that execution is disabled, OpenOCD connection should not be flaky anymore! This should fix #15174. Signed-off-by: Dan McArdle <dmcardle@google.com>
Switching from Test ROM to ROM in #15024 caused our tower of GDB/OpenOCD/JTAG/FPGA to become flaky.
I summarized my thoughts in the commit message for 473261d, which I'll copy here.
I think it might be possible to eliminate the flakiness by repeating the OpenOCD connection step until it succeeds. This is a little trickier than it sounds because I believe OpenOCD will hang rather than give up with a meaningful exit code. We may have to make an OpenOCD wrapper that runs the command and watches stdout/stderr to decide whether to wait or retry.
The text was updated successfully, but these errors were encountered: