• detect brownout on reset

    I would like to detect if a reset happened due to a brownout or an actual power off. I tired so far using the GPREGRET and RESETREAS registers. They are useful to detect soft resets and distinguish between their causes, but since they are cleared on…
  • Setting GPREGRET from pynrfjprog

    Hi, We have an application that can run in two modes. The mode is selected by setting the GPREGRET to 1 or 0 and restarting. Currently we are running this procedure directly via jlink commander, but we want to convert it to python commands. Using the…
  • DFU OTA does not work from application

    I followed the instructions from here developer.nordicsemi.com/.../a00081.html to make my application support DFU OTA. Despite of some errors in the instructions I managed to finish the task, and got my application running. After connecting from a phone…
  • Is GPREGRET preserved across toggle of nRESET?

    I'm trying to use gpreg for state across toggles of nRESET. I thought it was working, but when I tested it on hardware without jtag connected it seemed that gpreg was getting reset as well. Before I go down the path of trying something else, should…
  • Setting gpregret in on_write callback?

    Hello, When i try to set value of the gpregret using sd_power_gpregret_set and clear functions in on_write callback function, cpu gets stuck (i check it in debug mode). Can't we set it on callbacks can we? Or simply, where should we set it to send a…
  • HardFault when setting RAM rentention

    Hi All, I have this strange problem with setting the RAM rentention. This code used to work fine on my old PCB but I have made a new PCB which is almost identical to the last one. Aslo writing the NRF_POWER->GPREGRET register creates a HardFauld what…