-
Notifications
You must be signed in to change notification settings - Fork 35
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
OpenOCD and GDB keep failing randomly during debug sessions #84
Comments
Workaround:
I also updated the bootloader, but I did not notice any influence. |
I think there's an option for this (reset upon connection) on OpenOCD but the RST (?) line of the microcontroller has to be connected to the hardware debugger. From the linked blog post:
It might be possible to do this in .gdbinit (using monitor commands to make OpenOCD do the register manipulation) though I'm not sure how portable DBGMCU is. |
It would be very useful to find a suitable way to set the DBGMCU register. My above workaround only works when you compile the binary in debug mode. Seeing that the binaries compiled in debug mode are 10-20 times bigger my method is limited to very simple programs. |
I discovered that some people experience the same issue with the blue-pill board: |
No description provided. |
Temporarly disabled sleep (Low Power Mode), because something similar to this issues is occurring: japaric/f3#84 http://www.jsykora.info/2014/10/error-jtag-status-contains-invalid-mode-value-communication-failure-solved/ Signed-off-by: Aurelio Colosimo <[email protected]>
After running the "concurrency" example, the STLink communication gets unstable. The only way to connect is keeping the reset button hold while starting
openocd
. As soon as I release reset the connection breaks down:A similar symptom and its solution is described here:
Error: jtag status contains invalid mode value – communication failure = SOLVED! – Jara's Spare Time Electronics
The text was updated successfully, but these errors were encountered: