<?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>NRF52833 BUTTONLESS DFU Problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114438/nrf52833-buttonless-dfu-problem</link><description>Hello, I am working on developing a special &amp;quot;serial recovery&amp;quot; mode dfu function of nrf52833 with ncs SDK V2.3.0. Now I encount a problem when adding the following code in my personal project for buttonless DFU, but it cannot stay in bootloader. Can anyone</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Sep 2024 01:23:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114438/nrf52833-buttonless-dfu-problem" /><item><title>RE: NRF52833 BUTTONLESS DFU Problem</title><link>https://devzone.nordicsemi.com/thread/501439?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2024 01:23:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:512b3ea0-a74d-4fdf-aa23-803486519038</guid><dc:creator>Ben_M</dc:creator><description>&lt;p&gt;It works！&lt;br /&gt;&lt;span&gt;Thank you very much for your timely assistance with the DFU issue.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Best Regards,&lt;br /&gt;Ben&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52833 BUTTONLESS DFU Problem</title><link>https://devzone.nordicsemi.com/thread/501176?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 13:23:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca44bc24-3f09-40a6-93a5-f53978c950c4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ben,&lt;/p&gt;
&lt;p&gt;The files I linked to are on a newer version which includes several other changes which are not trivial to backport to your current version.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;p&gt;If you want to stay on SDK version 2.3.0, I recommend you add this mechanism yourself by adding a function that reads the GPREGRET register and returns &amp;#39;true&amp;#39; if the DFU flag has been set.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;if (&amp;lt;gpregret flag is set&amp;gt; &amp;amp;&amp;amp; 
    !boot_skip_serial_recovery()) {
        ifdef CONFIG_MCUBOOT_INDICATION_LED
        gpio_pin_set_dt(&amp;amp;led0, 1);
#endif

        mcuboot_status_change(MCUBOOT_STATUS_SERIAL_DFU_ENTERED);

        BOOT_LOG_INF(&amp;quot;Enter the serial recovery mode&amp;quot;);
        ...&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52833 BUTTONLESS DFU Problem</title><link>https://devzone.nordicsemi.com/thread/501060?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 04:33:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d132f43c-c2fa-48f8-b207-93aaa920d733</guid><dc:creator>Ben_M</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your answer!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I just replace the two files in bootloader folder(&amp;quot;&lt;span&gt;bootloader/mcuboot/boot/zephyr&amp;quot;&lt;/span&gt;) by the files you added, BUT&amp;nbsp;It build error as follow when I replaced. Should I need add any other config parameter in &amp;quot;mcuboot.conf&amp;quot; ?&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt;ncs/v2.3.0/bootloader/mcuboot/boot/zephyr/main.c:477:17:&amp;nbsp;&lt;/span&gt;warning: implicit declaration of function &amp;#39;FIH_DECLARE&amp;#39;; did you mean &amp;#39;Z_ISR_DECLARE&amp;#39;? [-Wimplicit-function-declaration]&lt;/code&gt;&lt;br /&gt;&lt;code&gt; 477 | FIH_DECLARE(fih_rc, FIH_FAILURE);&lt;/code&gt;&lt;br /&gt;&lt;code&gt; | ^~~~~~~~~~~&lt;/code&gt;&lt;br /&gt;&lt;code&gt; | Z_ISR_DECLARE&lt;br /&gt;ncs/v2.3.0/bootloader/mcuboot/boot/zephyr/main.c:477:17: error: &amp;#39;fih_rc&amp;#39; undeclared (first use in this function); did you mean &amp;#39;fih_eq&amp;#39;?&lt;br /&gt; 477 | FIH_DECLARE(fih_rc, FIH_FAILURE);&lt;br /&gt; | ^~~~~~&lt;br /&gt; | fih_eq&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;I would be grateful if you could give me any hints!&lt;br /&gt;&lt;br /&gt;Best Regards!&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52833 BUTTONLESS DFU Problem</title><link>https://devzone.nordicsemi.com/thread/500956?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 11:39:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60f9f7b8-d47d-417b-82d8-8a3cf5d9b680</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The bootloader in SDK v2.3.0 does not implement support for this entrance mechanism. I.e. it does not read the GPREGRET register on startup. Support for this was added by this commit:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/commit/b3e3ce39f3e1abd95ff4010263b3613edf59dd54"&gt;https://github.com/nrfconnect/sdk-mcuboot/commit/b3e3ce39f3e1abd95ff4010263b3613edf59dd54&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The easiest solution is to either upgrade to a newer SDK version, or&amp;nbsp;modify&amp;nbsp;your&amp;nbsp;&lt;span&gt;bootloader/mcuboot/boot/zephyr/main.c file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>