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

program stuck at sd_softdevice_enable

I am using Softdevice 140 with SDK v15.2 on Segger studio to develope a ble application. when Debugging, the program gets stuck as shown in the attached video. However, the code gets flashed and runs normally on the nrf52840 when I don't debug. please note that this problem started suddenly I haven't changed anything in my code. How to fix fix this?

Parents Reply
  • hello, 

    I found what caused my problem. I used the ble_peripheral_template example to develop my application. I was testing some stuff and messed up my main.c file. I then copied and pasted an older working version main.c file into the example directory. This is what caused my issue. To fix this, I started another ble_peripheral_template example and copied only the CONTENT of my older main.c file into the template main.c file, rather than coping and pasting the whole file in the directory. It works fine now.

Children
Related