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

sd_power_system_off()

Hi all,

I am using PCA10004 with s110_6.0.0-5.beta and sdk_v5_0_0_34603. I noticed that executing the command "sd_power_system_off()" does not switch-off currently active LEDs. Is it normal behavior of the nrf51822? Мy expectations were that all active peripherals will be automatically shut-down. Do I need to manually disable the use peripherals (timers, gpios ...) before system shut-down?

Best Regards, Petеr

Parents
  • Hi,

    When you're in SYSTEMOFF, the GPIO states will be retained. If they were not, you would have seen random behavior, such as the chip waking up due to floating IOs on your wake-up pins.

    This means that all your inputs and outputs will be in the same state as it was just before you went to sleep. When you wake up again, they will be reset (as systemoff causes a MCU reset when awoken) and you will have to reconfigure them.

    Best regards Håkon

Reply
  • Hi,

    When you're in SYSTEMOFF, the GPIO states will be retained. If they were not, you would have seen random behavior, such as the chip waking up due to floating IOs on your wake-up pins.

    This means that all your inputs and outputs will be in the same state as it was just before you went to sleep. When you wake up again, they will be reset (as systemoff causes a MCU reset when awoken) and you will have to reconfigure them.

    Best regards Håkon

Children
Related