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

NRF51822 Infinty loop on sample code

Hello, I'm using the nRF51822_QFAA chip on a pca20006 board.
I downloaded sample code from the offical site.
Installed sample code nRF51822_beacon_firmware_1.1.1.msi.
I use ST-Link/V2 as a programmer.


I use IDE is Keil uVision5 (5.25.2.0) ARM Edition.
I think example project using 7.1.0 SDK.

I opened the example project named ble_app_beacon_s110_pca20006.
(C:\Nordic Semiconductor\nRF51822 Beacon v1.1.1\Source Code\nrf51_beacon\ble_app_beacon\pca20006\s110\arm)

The project was not compiled when I first started. (core_cm0.h not found.)
I added this path.
C:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\Include
The problem is resolved.

This time the application is not loaded device.
I made the programmer settings.
The problem is resolved.

This time the application is not debug device.
I changed the device model.
The problem is resolved.

I changed the device XTAL 12Mhz to 16MHz.

Now the application is in an infinity loop on sd_softdevice_enable(clock_source, softdevice_assertion_handler);.

I replaced the crystal source with the following;
NRF_CLOCK_LFCLKSRC_XTAL_20_PPM
NRF_CLOCK_LFCLKSRC_RC_250_PPM_8000MS_CALIBRATION
NRF_CLOCK_LFCLKSRC_RC_250_PPM_TEMP_8000MS_CALIBRATION

But the result has not changed.

Thanks for your help.

Parents Reply
  • I just want to program full empty chip on pca20006.

    I using ST-Link/V2 tool, program and debug is success.

    Demostration card on led blink not problem.

    I using flash algorithm for external connection.
    ->C:\Keil\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.16.0\Flash\nrf51xxx_ecb.flm

    Available 31.768khz crystal on pca20006 board.

    I try external and internal clock source but not changed.

    Problem only Bt Adversing nrf51822 chip. ble_stack_init method inside sd_softdevice_enable

    Can I do without using sd_softdevice_enable function?

    I only need to one way broadcast a 30 byte beacon data in 1 second.

    UUID and MAJOR and MINOR definations on hard code will be.

Children
Related