-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unreliable gdb-server load-run need manual reset-after-load #291
Comments
Is this not due to CPU directly running after reset and not properly halted. Verify if you see this with latest |
Have you tested against |
First test of updated git version:
How is this useful? No hardware, no chip, but serving GDB connections? (I don't understand how the 4242 bind can work, but the kernel returns "success" on the bind call). P.S. Still working on testing the reset issue. Have to find a compiling source first. |
Your last reported error is totaly unrelated which you reported jan 15, 2015. But you are right this is not very good. Please provide more details about your setup and if you have tested with
|
You're right. It's a different issue, but we both know about that, and you asked me to check the current solution where I had "hacked" a different solution for the "unable to claim" error. Are you misunderstanding me? st-util is entirely correct when it says it cannot claim the USB interface. "probably already in use?" is 100% correct.
st-info reports exactly the same when run as normal user than when run as root. No difference there. P.S. Still working on testing the reset issue. Have to find a compiling source first. |
I probably have misunderstand your actual problem. Currently the usb probe code (and error handling) is not as nice as it should be and needs a major refactoring. Your We need to refactor the code more and have way better error handling, which also needs a better log facility. Long story short, it needs some love here and there :+). And a simple hack will not resolve this problem. |
Ok. a bare reset-load-continue seems to work now. (in my limited testing). As to the probe-issue..... I'm using an original stm32F3 discovery board as the stlink. |
Likely closed by #430 where an additional JTAG reset has been added prior to the call of |
to get the "load-run" to be reliable, I have a macro in gdb that does "reset - load - continue ".
When I use that on the ChibiOS stm32f072 demo app, it crashes "Unhandled exception". This seems to happen BEFORE main is being called: I can set a breakpoint at "main" but it stops in the unhandled exception before hitting the breakpoint.
The workaround seems to be to call "reset" after the load. My macro now does: "reset load reset continue". This works.
The text was updated successfully, but these errors were encountered: