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

Eclipse CDT, GDB debugging with nRF51822: breaks on every line.

I have Eclipse CDT set up for debugging the ble_app_proximity sample code on a Mac. I can start the GDB server on the console and connect to it. Flashing the code seems to work. I've already flashed the softdevice from a Windows machine. Disconnecting GDB and powering up without debugging, I can connect to the device from the Master Control Panel on a Windows machine. So the device is working without debugging.

But when I try to debug from Eclipse, the debugger is stopping on every line within timers_init(). See thread screenshot attached. I would expect clicking the Resume (play) button to take me to my next breakpoint, or resume fully if I have no breakpoints. But no progress is made out of NVIC_SetPendingIRQ().

screenshot_nordic_gdb.png

Parents
  • hi, What eclipse/gcc toolchain version are you using? What Segger jlink module/firmware version are you using? What Segger jlink software version are you using?

    I have some very strange behavior using eclipse luna (latest version) and I am in the process to downgrade and use eclipse Kepler 4.3 SR2. According to GNU ARM Eclipse is the most stable option. They recommend to use gcc-arm-none-eabi-4_8-2014q2 (I am using this ver already). I am using the latest Segger version.

    My next step is use Kepler and if I do not see any change I will use the toolchain/jlink recommended/included in the SDK.

    Feel free to post your combinations and we may narrow down this issue.

Reply
  • hi, What eclipse/gcc toolchain version are you using? What Segger jlink module/firmware version are you using? What Segger jlink software version are you using?

    I have some very strange behavior using eclipse luna (latest version) and I am in the process to downgrade and use eclipse Kepler 4.3 SR2. According to GNU ARM Eclipse is the most stable option. They recommend to use gcc-arm-none-eabi-4_8-2014q2 (I am using this ver already). I am using the latest Segger version.

    My next step is use Kepler and if I do not see any change I will use the toolchain/jlink recommended/included in the SDK.

    Feel free to post your combinations and we may narrow down this issue.

Children
Related