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

I am working on nRF51822 QFAB custom Board. I loaded nRF51822 Beacon v1.1.1 Precompiled hex file in custom board. But the nRF51822 board crystal and bluetooth is enabled. Please suggest me

Working on nRF51822 QFAB custom board.

I loaded nRF51822 Beacon v1.1.1 Precompiled hex file in custom board.

Keil 5 Uvision iDE 

Windows 7

But I loaded examples programs ble_app_beacon codes. But Crystal and Bluetooth is not enabled.

Please suggest is it hardware issue or software issue.

Parents
  • Hi,

    The precompiled beacon kit firmware is configured to use the optional 32 kHz crystal oscillator. If this is not present in HW, the device will wait indefinitely for the clock to start, which is why you do not see any activity. You need to change the 32 kHz clock source by adjusting the call to SOFTDEVICE_HANDLER_INIT() in ble_stack_init() in <nRF51822 Beacon v1.1.1>\Source Code\nrf51_beacon\ble_app_beacon\main.c to for instance the following:

    SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, true);

Reply
  • Hi,

    The precompiled beacon kit firmware is configured to use the optional 32 kHz crystal oscillator. If this is not present in HW, the device will wait indefinitely for the clock to start, which is why you do not see any activity. You need to change the 32 kHz clock source by adjusting the call to SOFTDEVICE_HANDLER_INIT() in ble_stack_init() in <nRF51822 Beacon v1.1.1>\Source Code\nrf51_beacon\ble_app_beacon\main.c to for instance the following:

    SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, true);

Children
Related