Why does the gpio pin not retain the previously set state when the system is in shutdown mode (PM_STATE_SOFT_OFF)?


Hi!

Specifically when I set pinLdo low before entering system shutdown mode, but in fact pinLdo pulled up after entering that mode. When the chip has not entered the system shutdown state (PM_STATE_SOFT_OFF), I can still set the high or low level of that gpio.

Is there a way to keep gpio's state when the system shuts down without changing gpio state?

Parents Reply Children
  • Thank you for your early response
    I am using manage sdks v2.4.2, manage toolchains v2.4.2. It doesn't seem to have sys_poweroff(), I tried it and it didn't work.
    This is my code when I try to make gpio ldo at a low level before entering the system off state (PM_STATE_SOFT_OFF), but when entering the system off state (PM_STATE_SOFT_OFF), gpio ldo is at a high level, not as expected. early setup.
    Can you give me some suggestions?ring.zip

Related