<?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 SDK13 buttonless - DfuTarg appears for few seconds</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28151/dfu-sdk13-buttonless---dfutarg-appears-for-few-seconds</link><description>I enter to bootloader via my app by UART command: 
 err_code = sd_power_gpregret_clr(0, 0xffffffff);
APP_ERROR_CHECK(err_code);
 
err_code = sd_power_gpregret_set(0, 0xB1);
APP_ERROR_CHECK(err_code);

sd_nvic_SystemReset();
 
 After that I see</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Dec 2017 11:35:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28151/dfu-sdk13-buttonless---dfutarg-appears-for-few-seconds" /><item><title>RE: DFU SDK13 buttonless - DfuTarg appears for few seconds</title><link>https://devzone.nordicsemi.com/thread/111159?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 11:35:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:101eeeca-d8a4-454c-b313-a5b75b43625e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please refer to this thread: &lt;a href="https://devzone.nordicsemi.com/question/123513/buttonless-secure-dfu-with-wdt-needs-dfu-twice/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SDK13 buttonless - DfuTarg appears for few seconds</title><link>https://devzone.nordicsemi.com/thread/111157?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 08:25:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24e2d0fb-36ad-448e-9f22-4f8e39e19295</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;one more question- how to correct disable WDT from main app when I call bootloader? Or how correct to feed WDT in the bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SDK13 buttonless - DfuTarg appears for few seconds</title><link>https://devzone.nordicsemi.com/thread/111158?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 07:56:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3077675-804f-4a32-bb6f-5622ecccf037</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Yes!!!! thanks. This was due to WDT. I disabled it and now works good with one switch to boot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SDK13 buttonless - DfuTarg appears for few seconds</title><link>https://devzone.nordicsemi.com/thread/111156?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 07:10:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18b53337-4810-48d7-b0ed-0a582c2fb7e3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Are you use the Watch dog timer in your application? In that case you must reload it in the bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SDK13 buttonless - DfuTarg appears for few seconds</title><link>https://devzone.nordicsemi.com/thread/111161?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2017 12:18:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6001d37e-550c-4e1e-a32b-ec2742492456</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Hi! Thanks.&lt;/p&gt;
&lt;p&gt;with commented and add debug code same result like attached log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void app_error_handler_bare(uint32_t error_code)
{
NRF_LOG_INFO(&amp;quot;Az_app_error: 0x%08x!\r\n&amp;quot;, error_code); // ###del

(void)error_code;
NRF_LOG_ERROR(&amp;quot;Received an error: 0x%08x!\r\n&amp;quot;, error_code);
//    NVIC_SystemReset();

}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If from main app I send reboot comand and if I have or button pressed or NRF_POWER-&amp;gt;GPREGRET == BOOTLOADER_DFU_START
I have 2 times restart. But If I still press button, I read again it and than bootloader works fine. Is it no normal behavior.&lt;/p&gt;
&lt;p&gt;project downloaded &lt;a href="https://drive.google.com/open?id=1HiJoI-a2BLD6CqF3Qn_YQTTFc7YsGN05"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I just changed cristall settings to RC&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SDK13 buttonless - DfuTarg appears for few seconds</title><link>https://devzone.nordicsemi.com/thread/111160?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2017 10:19:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30a1d498-0850-45af-97ed-9c9e1d7688d5</guid><dc:creator>Rune Holmgren</dc:creator><description>&lt;p&gt;Hi Mikhail,&lt;/p&gt;
&lt;p&gt;I had a look at this together with Ketil. It looks like your system is being reset shortly after it starts advertising. This typically means that an error has occurred somewhere and the &amp;quot;APP_ERROR_CHECK&amp;quot; will then call &amp;quot;app_error_handler_bare&amp;quot; which by default resets the system. You need to figure out which error is causing the reset and resolve the cause of the error. I would recommend altering the error handler function so that it doesn&amp;#39;t reset but rather loop indefinitely. That way you can do logging in the error handler. Further, you need to find the error check which failed. I typically use a debugger and set breakpoints to see which one is actually failing.&lt;/p&gt;
&lt;p&gt;(When the issue has been resolved, put back the reset in the error handler. It&amp;#39;s there as a recovery mechanism for end-user products.)&lt;/p&gt;
&lt;p&gt;If you send me the files you have altered in the bootloader I might be able to reproduce the issue and tell you how to resolve it.&lt;/p&gt;
&lt;p&gt;Best regards,
Rune Holmgren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SDK13 buttonless - DfuTarg appears for few seconds</title><link>https://devzone.nordicsemi.com/thread/111153?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2017 15:30:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9a15abe-8db4-4d3a-9b6e-3a5470cf5ddb</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;What can I see from debug info: after start normal app, I transfer to boot mode. INFO:Inside main
After that bootloader start and last line:  0&amp;gt; :DEBUG:After SOFTDEVICE_HANDLER_APPSH_INIT
Next, for unknown reason bootloader restarted and transfer manage to main app with 0&amp;gt; :DEBUG:Running nrf_bootloader_app_start with address: 0x0001f000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SDK13 buttonless - DfuTarg appears for few seconds</title><link>https://devzone.nordicsemi.com/thread/111152?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2017 14:32:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:496c0cb4-3849-472c-b184-96c1930b1111</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Hi! Did you looked my log? Could You help me to decide this step with bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SDK13 buttonless - DfuTarg appears for few seconds</title><link>https://devzone.nordicsemi.com/thread/111151?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 14:20:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fb1e4ca-e965-46a3-b64d-ea925766b5a6</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;I added file into first post.
This log after send to UART command.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SDK13 buttonless - DfuTarg appears for few seconds</title><link>https://devzone.nordicsemi.com/thread/111154?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 12:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2473d5f4-5c47-4eb6-816d-d4dcc38b1eb3</guid><dc:creator>ketil</dc:creator><description>&lt;p&gt;OK. See the &lt;a href="https://devzone.nordicsemi.com/tutorials/6/"&gt;Debugging with Real Time Terminal&lt;/a&gt; tutorial for information on how to see the output.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SDK13 buttonless - DfuTarg appears for few seconds</title><link>https://devzone.nordicsemi.com/thread/111155?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 10:31:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22ed24dc-8944-47bf-8d5d-654702761d57</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;I compile and flash version pca10040_debug. Same behavoir. I don&amp;#39;t know how to catch it. may be I forgot to mention, but I merge and flash my app like Appendix 1. Advanced features in a &lt;a href="https://devzone.nordicsemi.com/blogs/1085/getting-started-with-nordics-secure-dfu-bootloader/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt; link.
Therefore I don&amp;#39;t have any possibility to flash bootloader in debug mode via keil.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SDK13 buttonless - DfuTarg appears for few seconds</title><link>https://devzone.nordicsemi.com/thread/111150?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 09:52:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:981666d4-69b4-4998-b3c5-d0b02220c3af</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;additional info:
I use&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;D:\...\examples\dfu\bootloader_secure_ble\pca10040\
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;bootloader.&lt;/p&gt;
&lt;p&gt;In the my app via UART I send command like on first message.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t use buttonless DFU bootloader. I just use code for UART sending. What my next step?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SDK13 buttonless - DfuTarg appears for few seconds</title><link>https://devzone.nordicsemi.com/thread/111149?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 09:15:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d6ebd98-5378-49fb-899a-ae4a0a8f9b7d</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Hi!
Thanks for answer. I&amp;#39;ll try to do it and will write result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU SDK13 buttonless - DfuTarg appears for few seconds</title><link>https://devzone.nordicsemi.com/thread/111148?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 13:35:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf1caab0-aa0a-4612-875d-e6add94f6d3f</guid><dc:creator>ketil</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Your code looks correct. We will need more information in order to find a solution. Could you try running the debug version of the buttonless DFU example and look at the RTT output? It should tell you where the program fails.&lt;/p&gt;
&lt;p&gt;Ketil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>