<?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>Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/740/device-is-always-in-bootloader-mode</link><description>Hi, 
 My device is always in bootloader mode, even if i flash the sample heart rate application it is not entering into the application. Actually, before it was working fine, i know that, if there is no valid application in the code region 1 the device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 30 Mar 2014 10:56:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/740/device-is-always-in-bootloader-mode" /><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3761?ContentTypeID=1</link><pubDate>Sun, 30 Mar 2014 10:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b018ead9-0844-452b-9df3-d28ef02a6304</guid><dc:creator>Khandker Mahmudur Rahman</dc:creator><description>&lt;p&gt;excellent solution.. worked for me :D&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3760?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2014 10:09:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa9af286-3405-42c8-b62a-70b62b214515</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Hello aa67,
Did you remember to flash the softDevice?
Does the application work fine without the bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3759?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2014 20:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:662d3a4f-486f-4021-8261-98bbb72b44e3</guid><dc:creator>mira67</dc:creator><description>&lt;p&gt;I followed this procedure:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;change the setting for bootloader&lt;/li&gt;
&lt;li&gt;merger bootloader and application&lt;/li&gt;
&lt;li&gt;flash use nRFgo studio&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;But the application is not running, seems the bootloader is not working properly, any ideas? Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3766?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2013 07:53:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51c35459-b9c2-483d-a1b8-db90af93bb7c</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;As already mentioned above: &amp;quot;The SoftDevice, DFU, and the application can be merged into one hex-file.
Remember to preset the &amp;quot;valid application&amp;quot; flag in the bootloader (DFU).&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3765?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2013 02:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4c408be-feb8-4435-9447-d99d24e93eea</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I do as you said and then follow:
1、mergehex.exe -m s110_nrf51822_5.2.1_softdevice.hex bootloader.hex -o app_ota.hex
2、Program app_ota.hex by using nrfjprog
3、Program app_ota.hex by using nrfjprog
This can be done successfully.I wonder whether I can use the mergehex.exe to mergehex the three files(softdevice\ bootloader\application) as one file so that I just need to program only once?&lt;/p&gt;
&lt;p&gt;Could you have any other good idear for make products and improve the efficiency.Thanks.&lt;/p&gt;
&lt;p&gt;Who can give me the advice?Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3764?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2013 08:45:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50bb28f2-6fcf-4b2c-96eb-d9fd0bcc0734</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I do as you said and then follow:
1、mergehex.exe -m s110_nrf51822_5.2.1_softdevice.hex bootloader.hex -o app_ota.hex
2、Program app_ota.hex by using nrfjprog
3、Program app_ota.hex by using nrfjprog
This can be done successfully.I wonder whether I can use the mergehex.exe to mergehex the three files(softdevice\ bootloader\application) as one file so that I just need to program only once?&lt;/p&gt;
&lt;p&gt;Could you have any other good idear for make products and improve the efficiency.Thanks.&lt;/p&gt;
&lt;p&gt;Look forward to your reply.Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3752?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2013 21:21:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1138430-8482-4dda-b415-3db3b5dfe9c0</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;Actually I&amp;#39;m setting it.  How can I save it so the bootloader loads my app&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3754?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2013 21:21:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf1cefdb-7f36-476e-ad6a-3aac927bf618</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;Actually I&amp;#39;m setting it.  How can I save it so the bootloader loads my app&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3753?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2013 21:11:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:162017cb-f425-41d1-b668-b29bb18018ca</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;How do you set and save the valid application flag?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3751?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2013 21:11:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44a25ffd-055b-4e6e-b100-b81d762c53bf</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;How do you set and save the valid application flag?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3750?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2013 15:31:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61a93e67-222d-4f8d-86d3-be6d2f5f42e7</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The SoftDevice, DFU, and the application can be merged into one hex-file.
Remember to preset the &amp;quot;valid application&amp;quot; flag in the bootloader (DFU).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3758?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2013 15:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98d5a165-bbfa-4318-8777-f43c75fe98b3</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Yes, the softdevice can be included in the mergehex.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3757?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2013 11:11:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:047380f1-5212-4474-9472-a3ea3ff75dc0</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;For a production build, should we also include the softdevice in the mergehex?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3763?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2013 11:11:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6e04384-71d9-4c44-81a6-f25ea1f28890</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;For a production build, should we also include the softdevice in the mergehex?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3743?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2013 07:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bd3854e-97dd-4c75-9a1c-b8ec16717c85</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;Hi Kristin
Thanks for your reply ,
I was struggling  on this  issue for several days but still couldn&amp;#39;t understand what the problem really was. Thanks for your post
Regards
Hariprasad&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3745?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2013 07:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36fd2498-c2b2-4082-a986-1f3922dae815</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;Hi Kristin
Thanks for your reply ,
I was struggling  on this  issue for several days but still couldn&amp;#39;t understand what the problem really was. Thanks for your post
Regards
Hariprasad&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3756?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2013 14:20:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70401cce-bc00-438f-8f21-f4688ec018de</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Instead of using nRFgo Studio, you can program the chip using nrfjprog.exe from cmd, using the following command:
nrfjprog.exe --program app_ota.hex --reset&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3762?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2013 14:42:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44483cfc-a51a-4c32-89d7-748fd0e493cc</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;Thanks for the response. Changing the bootloader did solve the problem that a DFU update is required.&lt;/p&gt;
&lt;p&gt;I also tried your points 2 and 3. When i tried to program the merged hex file with nRFgo Studio the following error occurs:
Running application C:/Temp/nrf51Studio/nrfjprog.exe --snr XXXXXXXXX --program myimage.hex --reset
ERROR: Attempted to write to UICR page while programming application..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3767?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2013 14:42:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef362d30-6dce-4590-944f-28e6f8ff6c40</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;Thanks for the response. Changing the bootloader did solve the problem that a DFU update is required.&lt;/p&gt;
&lt;p&gt;I also tried your points 2 and 3. When i tried to program the merged hex file with nRFgo Studio the following error occurs:
Running application C:/Temp/nrf51Studio/nrfjprog.exe --snr XXXXXXXXX --program myimage.hex --reset
ERROR: Attempted to write to UICR page while programming application..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3755?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2013 14:04:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62cd7126-0732-4afe-b061-7abe9bef747a</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It is possible to program both the bootloader and the application at the same time. It can be done by following the procedure below: Note that this is provided as is.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1)&lt;/strong&gt; In the bootloader, the flag for valid application has to be set. By doing so the application will by default start running. In bootloader_util_arm.c change:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint8_t  m_boot_settings[CODE_PAGE_SIZE] __attribute__((at(BOOTLOADER_SETTINGS_ADDRESS))) __attribute__((used)) ;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint8_t  m_boot_settings[CODE_PAGE_SIZE] __attribute__((at(BOOTLOADER_SETTINGS_ADDRESS))) __attribute__((used)) = {BANK_VALID_APP};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;2)&lt;/strong&gt; Merge the bootloader hex-file and the application hex-file into one hex-file using the following command (ble_app_proximity used as an example):
mergehex.exe -m ble_app_proximity.hex bootloader.hex -o app_ota.hex&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3)&lt;/strong&gt; The app_ota.hex (the merged hex-file) can be programmed onto the chip using nRFgo Studio.&lt;/p&gt;
&lt;p&gt;Best regards,
Kristin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3749?ContentTypeID=1</link><pubDate>Sat, 16 Nov 2013 14:58:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:753ecc2a-cce5-4adf-aac4-35648658cd1e</guid><dc:creator>Adrian Eggenberger</dc:creator><description>&lt;p&gt;Hi,
I understand why it&amp;#39;s necessairy to do a update over DFU. This sets the &amp;quot;application valid&amp;quot; token and the bootloader may boot into the application.&lt;/p&gt;
&lt;p&gt;What about production environments? The produced devices will have a bootloader and an application on it. Both sould be programmed over JTAG. How to avoid this behavior in these circumstances?&lt;/p&gt;
&lt;p&gt;Regards Adrian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3748?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2013 13:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71d3bc92-f717-4ecf-9689-1eb2aa10e4a4</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;This is available on the download tab on the kits on our regular web-site, as it has always been. The latest version, that includes DFU support is 3.5.0:
x64: &lt;a target="_blank" href="https://www.nordicsemi.com/eng/content/download/19422/311904/file/mastercontrolpanel.3.5.0.8226.x64.msi" rel="nofollow"&gt;https://www.nordicsemi.com/eng/content/download/19422/311904/file/mastercontrolpanel.3.5.0.8226.x64.msi&lt;/a&gt;
x86: &lt;a target="_blank" href="https://www.nordicsemi.com/eng/content/download/19421/311889/file/mastercontrolpanel.3.5.0.8226.x86.msi" rel="nofollow"&gt;https://www.nordicsemi.com/eng/content/download/19421/311889/file/mastercontrolpanel.3.5.0.8226.x86.msi&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3747?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2013 13:36:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:368d0a4b-0609-447c-a2ba-0178558c2d0f</guid><dc:creator>balaji</dc:creator><description>&lt;p&gt;Thanks for your reply prasad, please provide the link for latest master control panel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3746?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2013 12:29:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30eab6ba-0d1f-4df4-a8d5-37d0e338cbb1</guid><dc:creator>Prasad</dc:creator><description>&lt;p&gt;Hi Balaji&lt;/p&gt;
&lt;p&gt;I also faced the same issue while using command prompt for device firmware update.
So I downloaded latest master control panel with API for DFU so that you can easily update the firmware.&lt;/p&gt;
&lt;p&gt;Regards
Prasad&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is always in bootloader mode</title><link>https://devzone.nordicsemi.com/thread/3742?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2013 12:19:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae0d427d-d713-41be-b0ea-c4b4a7d43d77</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When writing an application to the chip using the bootloader, it will write a flag to flash to mark the application as valid after having received the complete image. If you flash an application using Keil, this flag will not be written, and hence the application not started, even though it might be actually be valid.&lt;/p&gt;
&lt;p&gt;How to set up the command line enviroment is explained in C:\Keil\ARM\Device\Nordic\nrf51822\Board\nrf6310\device_firmware_updates\experimental\ble_dfu_send_hex\readme.txt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>