Hi, I am using nrf51822 pca10004 with SDK110 v8 , I got a problem that the code hangs in sd_softdevice_enable and stuck in SVC_Handler.
Thanks, Nagaraj
Hi, I am using nrf51822 pca10004 with SDK110 v8 , I got a problem that the code hangs in sd_softdevice_enable and stuck in SVC_Handler.
Thanks, Nagaraj
we tried with different SDK i.e v7,v8,v9,v11 with custom board nrf51822 ic revision 3(QFAAH00),board has internal 16Mhz and external clock source 32khz,we used clock source as "NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION" still code hangs in SVC_HANDLER after ble_stack_init function.
Thanks, Nagaraj
Did you remember to flash the SoftDevice, before flashing the application code ?
Try the ble_app_uart example in SDK 11, and then use SoftDevice S130 v.2.0.0, located in folder SDK_11\components\softdevice\s130\hex
Yes we are flashing soft Device before application code, Tried as you suggested above,in debug mode the program cannot run into the main(),only In disassembly program running from main(),even uart also not working.
Thanks, Nagaraj
The QFAAH00 variant only have 16 kB RAM. Did you change the RAM linker settings to reflect this ?
You could get stuck in ble_stack_init if you have a bad low frequency crystal, since the macro is trying to start the LFCLK and then waits until the clock is started (possibly forever if the clock source is malfunctioning.)
Can you try to use internal RC, with SDK 11, in ble_stack_init():
Snippet:
nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;
clock_lf_cfg.source = NRF_CLOCK_LF_SRC_RC;
clock_lf_cfg.rc_ctiv = 16;
clock_lf_cfg.rc_temp_ctiv = 2;
// Initialize SoftDevice.
SOFTDEVICE_HANDLER_INIT(&clock_lf_cfg, NULL);
I am also stuck in the same state as Nagaraj. I am trying to run example ble_periheral/experimental_ble_app_blinky in my custom board. The control goes to undefined PC locations after calling sd_softdevice_enable()
Using 12.3.0 SDK
using nRF51822QFAA H0
GCC/Eclipsce with memory map contained in .ld file is MEMORY { FLASH (rx) : ORIGIN = 0x0001B000, LENGTH = 0x25000 RAM (rwx) : ORIGIN = 0x200013c8, LENGTH = 0x2c38 }
No external 32Khz XTAL, just using internal RC osc with following config before calling SOFTDEVICE_HANDLER_INIT
nrf_clock_lf_cfg_t clock_lf_cfg =
{.source = NRF_CLOCK_LF_SRC_RC,
.rc_ctiv = 4,
.rc_temp_ctiv = 1 } ;