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);

  • Thank s Einar Thorsrud,

    I changed above instruction. but Crystal and Bluetooth is not enabled.

    i compiled program. it is showing Zero errors and zero warnings.

    But in nrf_delay.c  it is showing. delay also not working 

    suggest me

    i am sending IDE settings Please suggest me.

  • Hi,

    You should not get any errors if you use an unmodified beacon kit reference firmware (with the only change being using the clock configuration in the call to SOFTDEVICE_HANDLER_INIT). What other changes have you done? Can you upload the output from the build process? (you have to do a full rebuild to see warnings as files with warnings are not compiled again otherwise).

    Have you done any debugging to see what happens on the target? Are any error checks hit? Is there a function which does not return, or similar?

    The screenshot you have added does not match with anything I can find in the nRF51822 Beacon v1.1.1 source code. Please clarify exactly which SDK or reference design etc. you are using.

Reply
  • Hi,

    You should not get any errors if you use an unmodified beacon kit reference firmware (with the only change being using the clock configuration in the call to SOFTDEVICE_HANDLER_INIT). What other changes have you done? Can you upload the output from the build process? (you have to do a full rebuild to see warnings as files with warnings are not compiled again otherwise).

    Have you done any debugging to see what happens on the target? Are any error checks hit? Is there a function which does not return, or similar?

    The screenshot you have added does not match with anything I can find in the nRF51822 Beacon v1.1.1 source code. Please clarify exactly which SDK or reference design etc. you are using.

Children
Related