custom nrf board turning off in between dfu ota update partition swap

hey i am using a custom nrf52840 board and i keep my device on by setting a gpio pin high and device turns off as soon as it sets to low .

during ota update when the bootloader switches the partition device resets hence the pin is pulled low and the ota fails on verification stage

please tell me a method such that either i can keep this pin high during swap or swap the partition during next reboot stage.

Parents Reply
  • yes you got it right gpio is enabling the power supply

    but the problem is that we cant change anything in the hardware since its already up for production

    hence kindly tell me a way so that either i can set the gpio high even during partition switching or can switch the partition during the device reboot that is when device turned off mannually by the user 

Children
Related