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

Softdevice wake-up and ble_app_beacon

Hi.

I got the ble_app_beacon example to enter System On low-power mode (and operate in the 1 to 2 microamp range except when broadcasting). And I also got that example to send out a GAP advertisement every 10.24 seconds. But I don't understand why the application wakes from sleep every 1 to 2 seconds.

Is this the Softdevice signaling an event causing the application to wake? If not; what is it? And is there some sample code to address what is going on?

Thanks,

Mark Cerreta

I'm using the nRF52832 on the Laird DVK-BL652 with: nRF5 SDK v12.0.0, Softdevice S132 v3.0.0, nRF5X Command-line tools v9.7.1, GnuWin32: CoreUtils version 5.3.0, GnuWin32: Make-3.81, GNU Tools for ARM Embedded Processors v4.9 2015q3

  • Scott:

    Thanks for the reply. We had already connected the solder bridges to the external crystal.

    And we had already modified pca10040.h to use the external crystal.

    Previously I just commented out lines in main.c to not use logging. How do I remove logging via sdk_config.h?

    Is it the result of calling:

    bsp_init(BSP_INIT_LED, .. or

    bsp_indication_set(BSP_INDICATE_ADVERTISING);

    As a last resort I'll update to a newer SDK and Softdevice.

    Thanks,

    Mark Cerreta

  • Hi Mark,

    Are you testing with our stock example in the SDK ? which SDK you are using ?

    Have you checked if you have any timer running that wake the CPU up ? You can test by not starting advertising and simply let the CPU to sleep and check if the CPU is waken up or not.

Related