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

Switching between power modes and soft reset (nRF51822)

Hi,

Is it possible to wakeup nrf51822 without using the GPIO peripheral's (i.e configuring a gpio button as a sense enabled)?

how to do soft reset?

Actually my requirement is, i need to put the controller in off mode for some minutes, then i need to wake it up without pressing any button's. Some sample codes will help me a lot.

Regards, Balaji

Parents Reply
  • Thanks for your reply. Actually i tried it in heart rate monitor source code as follows case BLE_GAP_EVT_TIMEOUT: if (p_ble_evt->evt.gap_evt.params.timeout.src == BLE_GAP_TIMEOUT_SRC_ADVERTISEMENT) { led_stop(); GPIO_WAKEUP_BUTTON_CONFIG(HR_INC_BUTTON_PIN_NO); GPIO_WAKEUP_BUTTON_CONFIG(HR_DEC_BUTTON_PIN_NO); sd_nvic_SystemReset();

    //NVIC_SystemReset();  
    //system_off_mode_enter();
            }
            break;
    

    but it is not working. i am not sure what is happening here.

    if you have any sample codes for switch off and switch on through application(when soft device is enabled) it will be very helpful for me.

Children
No Data
Related