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

[nRF52832][S132 v3.0.0] Program hangs on sd_softdevice_enable function

Hello I have a problem with my code implementing BLE NUS peripheral. Program hangs in the function sd_softdevice_enable. I have tried with external oscillator and with internal RC, the same behaviour. I can tell that everything works ok with compiled hex file by nordic of BLE beacon profile. So I am sure that the problem is in my code. The hardware is ok. Please can someone help me to solve this problem. Greetings jb

The rest of the source code is included without any changes from sdk12. bluetooth.c main.cpp gcc_startup_nrf52.S nrf5x_common.ld nrf52_xxaa.ld Makefile sdk_config.h

Parents
  • At first thank You for Your quick responses. When I upload prepared hex file by Nordic to my nrf52 I can see the beacon on my smartphone so I think that hardware is OK. Yes, I am sure that using SDK 12. It isn't PCA10040, it is a module with NRF52832 from China. But as You see upper it works. I have used very similar code to work with NRF51822 and there was everything allright. I wouldn't say that this code is so different. I omitted only the bsp part (LEDs and Buttons configuration, I don't have them). The rest is the same. Maybe do You have any other suggestions?

    nrf52_blink_led.hex

  • Sorry, I won't load your HEX to any of my HW. Question is: do nRF5 SDk examples which are using Nordic stack (Soft Device) work on your board? Or have you only tried examples without BLE functionality (which might be less sensitive to LF/HF clock source failures)?

Reply Children
No Data
Related