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

After 3 minutes, the micro reset

Hi, i'm working with NRF51822, and i saw on reference manual that micro enter in the SYSTEM OFF mode. The problem is i dont want the micro enter on this mode. 

I make de load of the firmware and make a teste. After 3 minutes, the micro reset, and the register RESETREAS show me the OFF value in 1. How i make my micro dont enter on this mode?

I'm using the ble_template and SDK 12.3.

Parents
  • Hi,

    By default, the BLE examples have set the advertising duration to 180 seconds. When the advertising becomes idle, the chip will enter SYSTEM OFF mode.

    This can be controlled in the application:

    1. Set APP_ADV_DURATION to 0 to disable timeout and advertise forever.
    2. Remove call to sleep_mode_enter() in case BLE_ADV_EVT_IDLE in function on_adv_evt(). This will prevent the chip from going to System OFF sleep mode, but advertising will end after 3 minutes.

    Best regards,
    Jørgen

  • The chip should only reset if it enters SYSTEM OFF during debugging (it will run "Emulated System OFF mode" as described in reference manual), as this will generate an error which will reset the chip, or if the chip is waken from System OFF by one of the wakeup sources.

    Adding a while(1) after entering System OFF in sleep_mode_enter() (before APP_ERROR_CHECK) should prevent the chip from resetting due to an error code.

Reply Children
Related