This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Attaching gdb to running nRF51822

I have an nRF51822 board that is running fine for a while. At some point, it runs into an error and calls ble_debug_assert_handler() and goes into an infinite loop. At that point, I would like to hook it up to a JLink and start gdb to find what the error is and where it occurs. My question: Would someone help showing how I can attach gdb to a running nRF51822 please?

Note: I do not want to attach the JLink to the board and running gdb from the start (before an error occurs), because I need to have the board unattached to move it around to generate the errors.

Thanks!

Parents
  • Hi,

    I am using the Eclipse GDB Segger J-Link Debugging Plugin which allows me to check the "Connect to running target" option in the Debugger-Tab. Unfortunately, the accompanying info tip tells me, that this is currently not supported by SEGGER. I hope that this is just my setup and I could get this to run because it would be helpful for errors that only occur on a random basis.

Reply
  • Hi,

    I am using the Eclipse GDB Segger J-Link Debugging Plugin which allows me to check the "Connect to running target" option in the Debugger-Tab. Unfortunately, the accompanying info tip tells me, that this is currently not supported by SEGGER. I hope that this is just my setup and I could get this to run because it would be helpful for errors that only occur on a random basis.

Children
No Data
Related