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
  • Dinh Son said:
    I am using the nrf5340 raytak board with zephyr sdk

    So you are not using the nRF Connect SDK? If you are using NCS, what version are you running? I'm not familiar with this board and will need to investigate more. 

    Dinh Son said:
    Do you have any way I can keep gpio state while system is off until it is rebooted

    This should be retained by device itself. Please note that in our latest version of NCS, we have introduced Power Off

    Kind regards,
    Øyvind

  • 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

Reply
  • 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

Children
No Data
Related