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

How can software reboot nrf9160?

I found a function, sys_reboot() that apparently reboots the nRF9160.   In order to use this function, what must be configured and what are the correct .h files?

Thanks

  • Hi.

    misc/reboot.h has been moved to power/reboot.h, and is empty except for a message informing about the move, and including power/reboot. So they are the same, except for misc/reboot.h being deprecated.

    After changing prj.conf, it should be enough to select File -> Open nRF Connect SDK Project, select the project in question and check the "Clean Build Directory" checkbox.

    While simpler than your procedure, I agree that it is still too complicated.

    An alternative approach is to use Project -> Configure nRF Connect SDK Project. One detail to be aware of with this approach is that the changes are stored inside the build directory, so if you were to delete the build directory the changes would be lost.

    A third option is to use west on the command line. west will detect changes in prj.conf and re-configure the project automatically.

Related