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

Debugger will not stay connected

We've been having an issue in the firmware for our project. The firmware will build, program, and run just fine, but if we try to run from the debugger, the debugger will disconnect after about half a second and give the message "Target connections been lost". It used to work fine without disconnecting, so I'm assuming I broke something (sometimes it'll still work for a while before disconnecting if I do a hard erase beforehand). It'll consistently run up till "ble_advertising_start()", but'll disconnect what seems like randomly after that. 

Already tried replacing the module in case of damage, disabling sleep (sd_power_system_off), attaching to it while running, and disabling i2c, capsense, pwm, etc...

Our board records several sensor inputs, flashes leds, and then connects and talks to an app with a custom service (nothing too complex), and we started with the ble_app_template_ses example

Using a commercial nrf51822 module on a custom board, Segger v3.52 IDE on macOS 10.14, SDK 12.3.0, softdevice s130

I'm an intermediate c user, but a beginner with the nordic sdk

Parents Reply Children
No Data
Related