<?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>Simple Method to call bootloader from Applicaton</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45207/simple-method-to-call-bootloader-from-applicaton</link><description>Hello, 
 I am using my own board with the NRF52832 device. 
 I currently have a NRF DFU bootloader programmed and soft device. I used it to download my own App using the NRF connect utility and the application is working. 
 The application needs a method</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 23 Mar 2019 17:06:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45207/simple-method-to-call-bootloader-from-applicaton" /><item><title>RE: Simple Method to call bootloader from Applicaton</title><link>https://devzone.nordicsemi.com/thread/177949?ContentTypeID=1</link><pubDate>Sat, 23 Mar 2019 17:06:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a50c1e9-a134-4641-85e7-a3c47515e297</guid><dc:creator>TimW</dc:creator><description>&lt;p&gt;This just in... I have it working now.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure which of these things fixed it but my application doesn&amp;#39;t use buttons.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1) I did not have NRF_BL_DFU_METHOD_GPREGRET&amp;nbsp;enabled in my SDK.&amp;nbsp; I&amp;#39;m not sure when in the firmware that actually applies but somehow I missed it before.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2) I compiled my application with a different soft device than the DFU bootloader.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I can now program my app from my own version of the DFU bootloader and then switch back from my app to the DFU bootloader on command!&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Thanks and I will open a new question if I have more.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Method to call bootloader from Applicaton</title><link>https://devzone.nordicsemi.com/thread/177922?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 20:09:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7966a45c-7939-4a6d-a94b-c185fe1922bd</guid><dc:creator>TimW</dc:creator><description>&lt;p&gt;&amp;nbsp;Also, I have successfully created the ButtonLess application and loaded it from the secure bootloader using the bluetooth nrfutil.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Question: What action do I take with the bluetooth app to reboot the bootloader?&lt;/p&gt;
&lt;p&gt;The info suggests that I write a 01 to a characteristic.. which characteristic?&lt;/p&gt;
&lt;p&gt;Here is my screen:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1553285664549v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Method to call bootloader from Applicaton</title><link>https://devzone.nordicsemi.com/thread/177920?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 19:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1533362-9b56-45db-8b5f-3c2aa7b25cc2</guid><dc:creator>TimW</dc:creator><description>&lt;p&gt;Yes I am using the secure bootloader to load my Application successfully. (I have generated my own keys as well). My problem is, when triggered, my application does not re-enter the bootloader. Instead it just reboots back to the application.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is the simple code I wrote in main that successfully gets called when I want to restart the boot loader.. but the bootloader doesn&amp;#39;t start:&lt;/p&gt;
&lt;p&gt;----------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/508x227/__key/communityserver-discussions-components-files/4/PreviewBitmap.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;Also.. I halted the App and read the memory:&lt;/p&gt;
&lt;p&gt;Here is what is in 0xff8 = 72000 (the bootloader starting address (vectors)&lt;/p&gt;
&lt;p&gt;Is this correct?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1553286749730v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;like wise I know the secure bootloader is still there&amp;nbsp; as shown HERE:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1553286878712v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What am I not seeing??&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;---------------------------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Method to call bootloader from Applicaton</title><link>https://devzone.nordicsemi.com/thread/177912?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 17:33:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:965312ba-9205-4ac3-bad3-bf50d36c8294</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Have you tried to test the DFU bootloader ? Please make sure you fully know how to use it before testing with the buttonless.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have a step by step guide &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader#_cptype=root"&gt;here &lt;/a&gt;that you may want to have a look.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Method to call bootloader from Applicaton</title><link>https://devzone.nordicsemi.com/thread/177905?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 16:43:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57b4a899-a94c-4564-bb3f-61695e1b0ac8</guid><dc:creator>TimW</dc:creator><description>&lt;p&gt;&lt;span&gt;Yes,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When I call ble_dfu_buttonless_bootloader_start_finalize() and reset, my app reboots to itself.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could it be that I don&amp;#39;t have the bootloader address set in 0xFF8 of the MBR?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Method to call bootloader from Applicaton</title><link>https://devzone.nordicsemi.com/thread/177901?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 16:26:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a572784-9b5f-407e-b12a-4e7457683bab</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tim,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried our buttonless application ? It&amp;#39;s located at&amp;nbsp;\examples\ble_peripheral\ble_app_buttonless_dfu.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Basically you would need to the retention RAM GPREGRET a magic word (0xB1) and then trigger a reset.&amp;nbsp;&lt;br /&gt;Please have a look at&amp;nbsp;&amp;nbsp;ble_dfu_buttonless_bootloader_start_finalize() function in ble_dfu.c in the buttonless project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and function&amp;nbsp;dfu_enter_check() in nrf_bootloader.c in the bootloader project. I assume you are using SDK v15.x&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>