Hi ,
We are using nordic nrf51822 custom board.
In our we are not using any external oscillator.
so here is my configuration for advertisement in ble_proximity
1>system_nrf51.c if (*(uint32_t *)0x10001008 == 0xFFFFFFFF) { NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos; while (NRF_NVMC->READY == NVMC_READY_READY_Busy){} *(uint32_t *)0x10001008 = 0xFFFFFF00; NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos; while (NRF_NVMC->READY == NVMC_READY_READY_Busy){} NVIC_SystemReset(); while (true){} } 2>main.c int main(void) { // Initialize leds_init(); timers_init(); gpiote_init(); buttons_init();
- NRF_CLOCK->TASKS_HFCLKSTOP = 1; // Start RC oscillator
- while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 1){ // Wait for oscillator to start
- }
- NRF_CLOCK->EVENTS_LFCLKSTARTED = 0; // Clean up
static void ble_stack_init(void) {
- BLE_STACK_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_500MS_CALIBRATION, BLE_L2CAP_MTU_DEF, ble_evt_dispatch, false); }
But i am not getting advertisement.
it gets hanged at ble_stack_handler_init()
Kindly tell me. what should i change to get advertisement.
i check my toggling some gpio pin,which is working fine.
Regards Balaji