<?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>DFU bootloader resets</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43256/dfu-bootloader-resets</link><description>I use SDK15 and S132. I have examples\dfu\secure_bootloader\pca10040_ble loaded in my board. I can see it advertising when there is not valid app loaded. 
 Also, my app with ble butonless dfu service, when it it loaded together with settings file using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Feb 2019 22:07:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43256/dfu-bootloader-resets" /><item><title>RE: DFU bootloader resets</title><link>https://devzone.nordicsemi.com/thread/170195?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 22:07:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c27bc331-d253-4137-83d2-583754bb4743</guid><dc:creator>gaminn</dc:creator><description>&lt;p&gt;I discovered the problem. I migrated your original GCC makefile to VisualGDB project and it seems some ASMFLAGS or CFLAGS or LDFLAGS were missing (even though bootloader&amp;#39;s project basis is my app project which runs without any issue). Because I copied all these from your original makefile to my VisualGDB&amp;#39;s makefile and it works now. I will now try figure out the specific flag that caused the problem. Thanks you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader resets</title><link>https://devzone.nordicsemi.com/thread/170166?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 15:50:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aab6816-92af-4ce3-baa2-924bd9746b94</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please try to have minimum modification and to test to update with one of our example application.&lt;/p&gt;
&lt;p&gt;We need to find which assertion was thrown so please move the bootloader and enable debug mode.&amp;nbsp; (and test with unmodified bootloader as well)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader resets</title><link>https://devzone.nordicsemi.com/thread/170164?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 15:42:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18202c81-7e6e-4680-b722-52c22d5cd11d</guid><dc:creator>gaminn</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7026.Bootloader.zip"&gt;devzone.nordicsemi.com/.../7026.Bootloader.zip&lt;/a&gt; Here you can find my bootlaoder hex, elf, map and also application package that I&amp;#39;m trying to upload to my nrf52832 (MDBT42 module).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader resets</title><link>https://devzone.nordicsemi.com/thread/170152?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 14:55:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7040a89c-3016-406c-8917-b2bfffe6773b</guid><dc:creator>gaminn</dc:creator><description>&lt;p&gt;I use still the same image (my first post).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader resets</title><link>https://devzone.nordicsemi.com/thread/170146?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 14:31:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3128bffa-2427-461b-99e1-4287102023da</guid><dc:creator>gaminn</dc:creator><description>&lt;p&gt;I use the bootloader on my custom board. Is that a problem? I defined BOARD_CUSTOM macro and in main.c I commented some lines that turn on/off leds. I also use internal RC&amp;nbsp; oscillator ( defined in sdk_config.c) because my board doesn&amp;#39;t have crystal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader resets</title><link>https://devzone.nordicsemi.com/thread/170143?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 14:27:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a69d2016-f3d3-4aad-8a07-108e5841749a</guid><dc:creator>gaminn</dc:creator><description>&lt;p&gt;I did that and defined preprocessor macro DEBUG. Nothing changed. Still the stack is corrupted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader resets</title><link>https://devzone.nordicsemi.com/thread/170136?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 13:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8ae2fa6-d7e8-4d1e-8950-dca2542db51e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please move the bootloader down in the flash to give more space. Or you can use the debug variant of the bootloader to test.&amp;nbsp;&lt;br /&gt;Make sure you erased the flash completely before testing.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Which image did you use ? I have a step by step guide &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;here &lt;/a&gt;that could be useful.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader resets</title><link>https://devzone.nordicsemi.com/thread/170091?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 10:50:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4aaf8421-5215-4d45-b9c3-69f99cfd4c9c</guid><dc:creator>gaminn</dc:creator><description>&lt;p&gt;Hi, I deleted all modifications to bootloader. The same happens now -&amp;nbsp;app_error_fault_handler is called with id = 0x1001, pc = 0x78f30, info = 0x40000000 .&amp;nbsp;The call stack is 0x00024008, then app_error_fault_handler. I can&amp;#39;t set optimization to 0 as bootloader then doesn&amp;#39;t fit into FLASH (without modifying linker script).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader resets</title><link>https://devzone.nordicsemi.com/thread/170090?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 10:10:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2594676-9191-4dde-ac29-e72185cb685e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please test again without any modification of the bootloader.&lt;/p&gt;
&lt;p&gt;The pc location of 0x71EEE suggest that it&amp;#39;s the issue inside the bootloader. Could you add DEBUG to the preprocessor symbol in project setting and set the optimization level to 0 ? This would make it stay in a loop when assert (fault) happens, and you should be able to see the line of code that&amp;#39;s causing the issue. There is&amp;nbsp; a debug guide&lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt; here.&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader resets</title><link>https://devzone.nordicsemi.com/thread/170007?ContentTypeID=1</link><pubDate>Thu, 07 Feb 2019 17:51:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83e3aa0e-4175-439d-a513-aef8c584c669</guid><dc:creator>gaminn</dc:creator><description>&lt;p&gt;OK.&amp;nbsp;&lt;span&gt;I tried to perform DFU without the buttonless application. I modified the bootloader a little to support logging (the bootloader starts at 0x70000). I get this log output:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: Inside main&lt;br /&gt; 0&amp;gt; &amp;lt;info&amp;gt; app: No firmware to activate.&lt;br /&gt; 0&amp;gt; &amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled&lt;br /&gt; 0&amp;gt; &amp;lt;info&amp;gt; app: Entering DFU mode.&lt;br /&gt; 0&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_validation: Signature required. Checking signature.&lt;br /&gt; 0&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_validation: Calculating init packet hash (init packet len: 68)&lt;br /&gt; 0&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_validation: Verify signature&lt;br /&gt; 0&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_validation: Image verified&lt;br /&gt; 0&amp;gt; &amp;lt;error&amp;gt; app: Received a fault! id: 0x00001001, pc: 0x00071EEE, info: 0x40000000&lt;/p&gt;
&lt;p&gt;Not sure whether the fault isn&amp;#39;t caused by my bootloader upgrade to support logging. But the symptoms are same as previously - bootloader resets itself during update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader resets</title><link>https://devzone.nordicsemi.com/thread/169313?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 13:35:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5248cec5-afe2-4ab6-9350-8fd2dad6c739</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tested the bootloader to&amp;nbsp;do DFU without using the buttonless application ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Could you test the bootloader debug variant&amp;nbsp;so we can have some more logging information from the bootloader&amp;nbsp; ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you made any modification to the bootloader ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From your log, it doesn&amp;#39;t seem the image has been transferred fully. Looks more like there was an issue when the init packet being transferred.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>