<?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>Problem with bootloader and dfu</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43628/problem-with-bootloader-and-dfu</link><description>Hi, 
 So I&amp;#39;ve been having a number of issues with getting OTA dfu and the ble secure bootloader working with the 132 softdevice, sdk 14.2 and nrf52832 . 
 So a little context to where I am currently at and what I have tried, I&amp;#39;m currently running everything</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Mar 2019 14:41:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43628/problem-with-bootloader-and-dfu" /><item><title>RE: Problem with bootloader and dfu</title><link>https://devzone.nordicsemi.com/thread/175981?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 14:41:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6293d5a-852d-4f0a-ab91-f22b76a2a6ed</guid><dc:creator>Alexc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the late reply, I got pulled away from this issue. However after revisiting it I have managed to sort my DFU woes.&lt;/p&gt;
&lt;p&gt;The application skipping the bootloader and the bootloader not being recognised as a bootloader, was solved by editing the linker script to not build with the softdevice as when I built it using visual gdb it merged the file with the softdevice causing it to only be recognised as an application. By splitting the two then merging them using the mergehex command it created a hex file that worked correctly.&lt;/p&gt;
&lt;p&gt;The issue regarding the application not being passed to through the bootloader was solved by altering the&amp;nbsp;bank valid app in bootloader_settings.c as mentioned in this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/21791/after-dfu-application-at-dfu_bank_0_region_start-is-not-valid"&gt;thread&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Many thanks for your time and help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with bootloader and dfu</title><link>https://devzone.nordicsemi.com/thread/171120?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 12:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f105224a-6b6d-48f4-a2ca-fd5bfcd5ec63</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. Can you verify that the application start address is indeed 0x23000? And just in case, can you also verify the SoftDevice is present in the flash?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with bootloader and dfu</title><link>https://devzone.nordicsemi.com/thread/171084?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 10:35:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9421d747-da6b-4228-b136-83ffd0c1479b</guid><dc:creator>Alexc</dc:creator><description>&lt;p&gt;So all my application does at present is advertise and connect with a different name. I have tested this without the bootloader and it works as expected so I know its not working as when the dfu transfer finishes the device does not advertise. I have also tried a fresh&amp;nbsp;OTA DFU setup with the blinky example, which also works without the bootloader, but does exactly the same thing as my application when I try using OTA DFU with the bootloader. Additionally I have tried this on multiple nrf52 DK boards, all of which show the same behaviour.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with bootloader and dfu</title><link>https://devzone.nordicsemi.com/thread/171031?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 08:37:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:994993e4-bd3b-474d-88da-47faedff76e0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The RTT log shows that the bootloader starts the application (at least it branches to where the application is supposed to be located). How do you know that the application is not running? Could it be that there is some error in the application that prevents it from working as you would expect? Have you done any debugging in the application? (It could be easier to test the application first without a bootloader so that you know it works properly before you flash the bootloader.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with bootloader and dfu</title><link>https://devzone.nordicsemi.com/thread/170945?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 15:16:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:527fa8f4-5568-4167-85ed-9fa3f141be60</guid><dc:creator>Alexc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your reply, so after testing with the RTT logs and debug bootloader I can confirm that the DFU completes fine on the nrf side. I&amp;#39;ve tested it with both my own application and the blinky example, both run fine when flashed without the bootloader, but fail to actually boot when transferred across with OTA DFU.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/dfulog.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Regarding the UICR register I will have a more in depth dig into it now that I have a better idea of what may be causing it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with bootloader and dfu</title><link>https://devzone.nordicsemi.com/thread/170845?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 11:42:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1817a2ef-52be-45ce-8ea3-d998b8fd860f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;Do you see that DFU completes from the nRF side as well? Have you tested with the debug bootloader with RTT logs?&lt;/p&gt;
&lt;p&gt;2. The only reason I could think of for &amp;quot;ignoring&amp;quot; the bootloader is if you for some reason erased the UICR register after flashing the bootloader, or the bootloader .hex file did not contain the bootloader start address in UICR. The reason is that the MBR (residing in the first flash page, starting at address 0) will check the UICR for a bootloader start address. If it is not found (register is all FF&amp;#39;s), it will jump directly to the application instead. This is confirmed by the fact that you see&amp;nbsp;nrf_dfu_svci_vector_table_set() returning&amp;nbsp;NRF_ERROR_NO_MEM, which only happens if&amp;nbsp;NRF_UICR-&amp;gt;NRFFW[0] is all FF&amp;#39;s.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>