<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How can software reboot nrf9160?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53388/how-can-software-reboot-nrf9160</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Oct 2019 13:04:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53388/how-can-software-reboot-nrf9160" /><item><title>RE: How can software reboot nrf9160?</title><link>https://devzone.nordicsemi.com/thread/217338?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 13:04:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d2324a8-ff57-4a98-b723-10527223032f</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;After changing prj.conf, it should be enough to select File -&amp;gt; Open nRF Connect SDK Project, select the project in question and check the &amp;quot;Clean Build Directory&amp;quot; checkbox.&lt;/p&gt;
&lt;p&gt;While simpler than your procedure, I agree that it is still too complicated.&lt;/p&gt;
&lt;p&gt;An alternative approach is to use Project -&amp;gt; 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.&lt;/p&gt;
&lt;p&gt;A third option is to use west on the command line. west will detect changes in prj.conf and re-configure the project automatically.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can software reboot nrf9160?</title><link>https://devzone.nordicsemi.com/thread/217191?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 17:44:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d57f483e-fc89-417d-8da2-2aee0696d0d4</guid><dc:creator>CWallach</dc:creator><description>&lt;p&gt;I added the line&lt;/p&gt;
&lt;p&gt;#include &amp;lt;power/reboot.h&amp;gt;&lt;/p&gt;
&lt;p&gt;What is the difference between power/reboot.h and misc/reboot.h?&lt;/p&gt;
&lt;p&gt;Note that after changing proj,conf, in order for changes to to take affect one must:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; Close the project and exit SEGGER&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp; Delete the build directory&amp;nbsp;build_nrf9160_pca10090ns&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp; Restart SEGGER&lt;/p&gt;
&lt;p&gt;4.&amp;nbsp; Select File --&amp;gt; Open nRF Connect SDK project&lt;/p&gt;
&lt;p&gt;&amp;nbsp; and select the project&amp;nbsp; in question&lt;/p&gt;
&lt;p&gt;5.&amp;nbsp; Do Build --&amp;gt; Clean&lt;/p&gt;
&lt;p&gt;&amp;nbsp;then Build --&amp;gt; Build Solution.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This procedure should not be necessary.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can software reboot nrf9160?</title><link>https://devzone.nordicsemi.com/thread/217186?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 17:16:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3edfa841-6346-42c6-a316-96e303be22d4</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;No, you should only have to add CONFIG_REBOOT=y to prj.conf and:&lt;/p&gt;
&lt;p&gt;#include &amp;lt;misc/reboot.h&amp;gt;&lt;/p&gt;
&lt;p&gt;in any file that calls sys_reboot(0);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can software reboot nrf9160?</title><link>https://devzone.nordicsemi.com/thread/217184?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 17:15:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76ffa2ee-f1e9-4306-9949-e5d00fa22324</guid><dc:creator>dtquang89</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;I found it is also needed to include this line:&lt;/p&gt;
&lt;pre&gt;#include &amp;lt;misc/reboot.h&amp;gt;&lt;/pre&gt;
&lt;div id="ConnectiveDocSignExtentionInstalled"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can software reboot nrf9160?</title><link>https://devzone.nordicsemi.com/thread/217183?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 17:06:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bced196f-4398-40ca-9379-f797554be3f2</guid><dc:creator>dtquang89</dc:creator><description>&lt;p&gt;Does it it to include&amp;nbsp;any other file? The build failed due to error:&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;implicit declaration of function &amp;#39;sys_reboot&amp;#39;&lt;/pre&gt;
&lt;div id="ConnectiveDocSignExtentionInstalled"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can software reboot nrf9160?</title><link>https://devzone.nordicsemi.com/thread/215639?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2019 07:12:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83dee898-22e3-4200-8d2a-691d6c74676e</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;You should get what you need by setting CONFIG_REBOOT=y in your prj.conf&lt;br /&gt;&lt;br /&gt;The function is declared in include/power/reboot.h&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>