<?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>Any flag to check the Bootloader is succesfully programmed ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6732/any-flag-to-check-the-bootloader-is-succesfully-programmed</link><description>Hello all,
I&amp;#39;m using nrf51822 xxac on my project, however, I sometimes got feedback from my customer and said the OTA is not work. My device can&amp;#39;t turn to DFU mode for firmware update. So, as I connect it via the j-link and using nRFgo Studio, I found</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Apr 2015 08:44:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6732/any-flag-to-check-the-bootloader-is-succesfully-programmed" /><item><title>RE: Any flag to check the Bootloader is succesfully programmed ?</title><link>https://devzone.nordicsemi.com/thread/23637?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2015 08:44:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:361781c7-f655-4379-9a7c-c318a436829f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;You can read NRF_UICR-&amp;gt;BOOTLOADERADDR to see if it has any valid address stored in it.
Then you can read the address (that was previously read from NRF_UICR-&amp;gt;BOOTLOADERADDR ) and check if that the partition has some other values other than the flash reset value (0xFFFFFFFF)&lt;/p&gt;
&lt;p&gt;use nrfjprog tool from command line tool&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;C:\Users\user&amp;gt;nrfjprog --memrd 0x10001014 --n 4
0x10001014: FFFFFFFF                              |....|
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The device I read from did not had a bootloader, above value confirms it. But if your device reads something else other than this reset value, then you have to use nrfjprog to read that address too just to confirm that the application did not delete the bootloader by accident.
If the application deletes the bootloader by accident then it will not be reflected in the BOOTLOADERADDR register.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Any flag to check the Bootloader is succesfully programmed ?</title><link>https://devzone.nordicsemi.com/thread/23636?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2015 08:38:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a17ef71-3b3c-44f6-bbe4-a55ae58bf5d9</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;Using the &lt;code&gt;nrfjprog&lt;/code&gt;  tool you can read out code sections from the nRF51 to a hex file.
Next you can use some diff tool (WinMerge works great) to ensure that the content of the nRF51 is correct.&lt;/p&gt;
&lt;p&gt;By looking at the linker configuration to find the location of the hex files, and their size, you would be able to extract what should correspond to the files that are built from your projects.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;nrfjprog&lt;/code&gt; is a command line tool that should be installed alongside nRFgo Studio.&lt;/p&gt;
&lt;p&gt;You can also overwrite whatever is located in your device using &lt;code&gt;nrfjprog&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>