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

Unable to Advertise in SDK 12

Hi,

I have just started a new project in uVision, using the ble-app-template from the peripheral examples. its running on a custom PCB, with no 32Khz XTAL, and i have changed the softdevice handler options to

    nrf_clock_lf_cfg_t clock_lf_cfg = {
															 .source        = NRF_CLOCK_LF_SRC_RC,            \
                             .rc_ctiv       = 4,                                \
                             .rc_temp_ctiv  = 1,                                \
																
	};

after running this, it crashes when it tries to start advertising, more specifically, it crashes when i use BLE_ADV_MODE_FAST, whereas with BLE_ADV_MODE_SLOW it does not crash, it just never advertises.

The error is thrown in on_adv_evt(ble_adv_evt_t ble_adv_evt) and is :ERROR:From File error 20001fe8 : ......\Watch_BLE\BLE-Main.c:332

The 20001fe8 is the error number and does not correspond to any errors, but is defined as this in the project, and also happens to be the RAM start address. APP_RAM_BASE_CENTRAL_LINKS_0_PERIPH_LINKS_1_SEC_COUNT_0_VS_UUID_COUNT_1_MID_BW

I have removed a lot of the BSP code and simply moved the BLE code from main to my own file which you can see in the error.

Related