<?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>ota over serial merging with application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64170/ota-over-serial-merging-with-application</link><description>hai , 
 i my application i need to update ota over serial . i m using nrf52840 and sdk 15.2 
 step 1 : at first flashed uart boot loader code on my board 
 step 2 : updated the application over serial is worked fine 
 but second time after changing to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Jul 2020 06:33:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64170/ota-over-serial-merging-with-application" /><item><title>RE: ota over serial merging with application</title><link>https://devzone.nordicsemi.com/thread/262287?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 06:33:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2aaad9c-e565-4866-8cae-7593dd373e96</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It could be that the update is rejected by the bootloader. In that case, the bootloader will boot the old application again. Are you able to debug the bootloader to see if maybe the pre-validation step is failing (nrf_dfu_validation.c-&amp;gt;nrf_dfu_validation_init_cmd_execute)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ota over serial merging with application</title><link>https://devzone.nordicsemi.com/thread/262245?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 16:06:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e09c6cd-74eb-4710-8f8e-e031d8f4ec99</guid><dc:creator>sowmiya</dc:creator><description>&lt;p&gt;hai,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; at first merged secure uart bootloader.hex code and softdevice.hex together&lt;/p&gt;
&lt;p&gt;and flashed the hex file to the board .&lt;/p&gt;
&lt;p&gt;now my device is in bootloader mode then i send a application file over serial ,&lt;/p&gt;
&lt;p&gt;then device running in application.&lt;/p&gt;
&lt;p&gt;then changed to bootloader mode the code is attached below.it is not entering into with2-3 seconds changing again to application mode&lt;/p&gt;
&lt;p&gt;whats the mistake here ?&lt;/p&gt;
&lt;p&gt;could you please what to do ?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
#define BOOTLOADER_DFU_START 0xB1

void boot_mode()
{
    printf(&amp;quot;ENTER IN BOOTLOADER MODE!!!!!\n&amp;quot;);
         err_code = sd_power_gpregret_clr (0, 0xff);
 APP_ERROR_CHECK(err_code);
err_code = sd_power_gpregret_set(0, BOOTLOADER_DFU_START);
 APP_ERROR_CHECK(err_code);

    //  NRF_POWER-&amp;gt;GPREGRET = BOOTLOADER_DFU_START;

 nrf_delay_ms(100);

              NVIC_SystemReset();
              }&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ota over serial merging with application</title><link>https://devzone.nordicsemi.com/thread/261948?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2020 10:51:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53e37671-1391-4d8d-969d-57d8cae96c89</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]completed with serial. but when i am merging the code&amp;nbsp; its not entering the boot loader mode.[/quote]
&lt;p&gt;Is the Softdevice enabled when you write to NRF_POWER-&amp;gt;GPREGRET register? The Softdevice reserves access to the POWER peripheral so you can only access it through the &lt;span&gt;&lt;a title="sd_power_gpregret_set" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=4_7_3_1_2_7_2_16#ga62737e6515d380aa3eeba6582d061592"&gt;sd_power_gpregret_set&lt;/a&gt;&lt;/span&gt;() function.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>