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
Hi, Try using 8.1.0 SDK,change memory map .ld according to SDK V8,initialize the SOFTDEVICE_HANDLER_INIT with NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION
Thank, Nagaraj
Nagaraj,
Thank you for the suggestion.
I am using 8.1.0 SDK, with S130 v1.0 and trying to run ble_app_uart. modified SOFTDEVICE_HANDLER_INIT with NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION
My device is nRF51822QFAAH0 so i changed the gccarm .ld file from default
FLASH (rx) : ORIGIN = 0x1c000, LENGTH = 0x24000 RAM (rwx) : ORIGIN = 0x20002800, LENGTH = 0x5800
to
FLASH (rx) : ORIGIN = 0x1c000, LENGTH = 0x24000 RAM (rwx) : ORIGIN = 0x20002800, LENGTH = 0x1800 */ but giving ./../arm-none-eabi/bin/ld.exe: region RAM overflowed with stack while linking. In fact this is taken from components/softdevice/s130/toolchain/armgcc/armgcc_s130_nrf1822_xxaa.ld within the SDK package but still the Linker is failing
so i modifed to
FLASH (rx) : ORIGIN = 0x1c000, LENGTH = 0x24000 RAM (rwx) : ORIGIN = 0x200022d8, LENGTH = 0x1d28
Allowing minimum APP_RAM_BASE as per infocenter.nordicsemi.com/.../S130_SDS_v1.0.pdf
This is linking but the still stuck with the same sd_softdevice_enable
I am wondering if S130 will not run in nRF51822QFAAH0..
so frustrating.. I tried in 12.3, 12.0, 8.1 and all behave the same way
Thank you
Hi nordic_fan ,
Do you get any error code from softdevice_handler_init()?
Try to debug, and make sure that you are running without compiler optimization, i.e. that you have CFLAGS += -Wall -Werror -O0 -g3
in the makefile. and that you have defined DEBUG, -> CFLAGS += -DDEBUG