<?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>firmware update without button press?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/720/firmware-update-without-button-press</link><description>Hi, 
 Can anyone please tell me the exact way to enter into the bootloader mode by writing some characteristics with specific value. 
 I tried setting
NRF_POWER-&amp;gt;GPREGRET register in the sample ble_app_hrs code, whenever the write event with specific</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Nov 2017 21:26:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/720/firmware-update-without-button-press" /><item><title>RE: firmware update without button press?</title><link>https://devzone.nordicsemi.com/thread/3668?ContentTypeID=1</link><pubDate>Wed, 01 Nov 2017 21:26:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fca63ed-c0fb-4811-9066-e6cafd92b464</guid><dc:creator>Gil dePaula</dc:creator><description>&lt;p&gt;Hi Hung, I know this is an old posting, but the SoftDevice is enabled in the bootloader too, so it&amp;#39;s necessary to use sd_* calls.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: firmware update without button press?</title><link>https://devzone.nordicsemi.com/thread/3671?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2014 18:34:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bdc40c8-cccb-4b8e-8ed1-ce0ec009076c</guid><dc:creator>julian</dc:creator><description>&lt;p&gt;what do you mean to use bootloader to upload for first time? is there a bootloader exe?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: firmware update without button press?</title><link>https://devzone.nordicsemi.com/thread/3667?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2014 15:03:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29f5b239-796a-4744-a5d3-4b28edb00f53</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Joe: as long as the softdevice is active, you still need to use the sd_* to access the peripherals that are occupied by the softdevice. If you disable softdevice, you can use them directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: firmware update without button press?</title><link>https://devzone.nordicsemi.com/thread/3675?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2014 19:42:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daa544fa-9807-4ba4-8947-16b86637f065</guid><dc:creator>Joe Merten</dc:creator><description>&lt;p&gt;As long as I use the bootloader with DFU, the SoftDevice is also active within the bootloader. Therefore I have to use sd_power_gpregret_get() and sd_power_gpregret_set() even in the bootloader!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: firmware update without button press?</title><link>https://devzone.nordicsemi.com/thread/3673?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2013 13:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63683615-2350-4e27-af39-7df883d82880</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;Thanks for your reply, now it is working fine for me, i dont know what is the exact cause of that problem, but what i recognized is, that problem is because of both dongle and the evaluation boards are connected in same pc. And now, i can also able to enter into the dfu mode by writing a particular characteristics.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: firmware update without button press?</title><link>https://devzone.nordicsemi.com/thread/3674?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2013 13:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42daf63f-ba75-4646-8578-c44c152b811d</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;Thanks for your reply, now it is working fine for me, i dont know what is the exact cause of that problem, but what i recognized is, that problem is because of both dongle and the evaluation boards are connected in same pc. And now, i can also able to enter into the dfu mode by writing a particular characteristics.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: firmware update without button press?</title><link>https://devzone.nordicsemi.com/thread/3672?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2013 12:52:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5776b70-de44-4b2d-a55a-bd5db8999b58</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Balaji:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Note that the bootloader was made for the Development kit, so you need to modify the button GPIO pin to match with the button on the PCA10001.&lt;/li&gt;
&lt;li&gt;From the error in your screenshot, I suspect that the firmware on the dongle was not up to date. Please install the newest Master Control Panel with APIs (v3.5) and flash the PCA10000 dongle with MEFW_nRF51822_0.8.0_firmware.hex file.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If the issue remains, please upload your bootloader and the application code you use.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: firmware update without button press?</title><link>https://devzone.nordicsemi.com/thread/3670?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2013 16:18:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8a30ff6-df6e-4d7f-871f-053cb0154286</guid><dc:creator>balaji</dc:creator><description>&lt;p&gt;I attached the screen shot with the error i am facing, please give your valuable suggestion to overcome this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: firmware update without button press?</title><link>https://devzone.nordicsemi.com/thread/3669?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2013 14:34:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:612b5ee1-7d66-4fb7-a05b-065dec95dc0c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Balaji: How did you flash the application code? It will not work if you flash the application directly using Keil or nrfjprog. You need to use the bootloader to update (write if it is the first time) the application code.
The reason for that is that the bootloader always check for 1 byte on the flash (at BOOTLOADER_SETTINGS_ADDRESS)  to make sure that the application code is valid. Please refer to bootloader_app_is_valid() function.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t want to use bootloader to program the chip for the first time, you can manually write 0x01 to that address using nrfjprog.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: firmware update without button press?</title><link>https://devzone.nordicsemi.com/thread/3666?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2013 06:23:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bab0671d-07f7-42f4-8902-f8da7e68bf56</guid><dc:creator>balaji</dc:creator><description>&lt;p&gt;Thanks for your reply,
Now the problem i am facing is my device is always in dfu mode, i am not sure whether it is because of sd_power_gpregret_set or not. Now i am not able to enter into the application after i flash the bootloader code into my device. If possible please tell me the reason why it is happening. I did entire chip erase and flashed the fresh sample codes of both heart rate and bootloader, without bootloader my application is working fine, once i flash the bootloader it is always in bootloader mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: firmware update without button press?</title><link>https://devzone.nordicsemi.com/thread/3665?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2013 11:48:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7a9f1e1-ed5d-4f27-b454-963dcc07ab72</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Balaji,&lt;/p&gt;
&lt;p&gt;When softdevice is enabled NRF_POWER is not directly accessible. You need to use sd_power_* api to access.
For NRF_POWER-&amp;gt;GPREGRET, you need to use sd_power_gpregret_get and sd_power_gpregret_set.&lt;/p&gt;
&lt;p&gt;In the bootloader, since the softdevice is not enabled, you can use NRF_POWER-&amp;gt;GPREGRET directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>