<?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>nRF52832 DK bootloader don&amp;#39;t start application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32337/nrf52832-dk-bootloader-don-t-start-application</link><description>Hello, 
 
 I&amp;#39;m currently trying to OTA update the firmware of my nRF52832 DK, I use the SDK 12.3.0. 
 I loaded the BLE Secure DFU Bootloader in the DK, it&amp;#39;s advertising as DfuTarg. Then I use nRF Toolbox to DFU transfer a package generated from blinky</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Mar 2018 12:34:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32337/nrf52832-dk-bootloader-don-t-start-application" /><item><title>RE: nRF52832 DK bootloader don't start application</title><link>https://devzone.nordicsemi.com/thread/124761?ContentTypeID=1</link><pubDate>Fri, 16 Mar 2018 12:34:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9139a2d0-0ba0-4bc5-a6ea-83e00063e673</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;This is issue appears to be different from the one you initially described? Now it fails at the pre-validate step which performs the signature and version checks. You can single step in the pre-validation code in dfu_req_handling.c do determine exactly why it fails. Did you use the same key set with the debug bootloader, and did you set the debug mode flag when you generated the zip package?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrfutil/nrfutil_pkg.html?cp=5_5_3"&gt;Generating DFU packages&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DK bootloader don't start application</title><link>https://devzone.nordicsemi.com/thread/124612?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 14:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bb9846a-28f2-4d59-aab1-d3169ce33cc7</guid><dc:creator>Bilal Bouguerra</dc:creator><description>&lt;p&gt;I can log debug infos:&lt;/p&gt;
&lt;p&gt;0&amp;gt; :INFO:Prevalidate FAILED!&lt;br /&gt; 0&amp;gt; :INFO:Sending Response: [0x4, 0x5]&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DK bootloader don't start application</title><link>https://devzone.nordicsemi.com/thread/124586?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 13:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7194e788-bf68-4ed2-af05-3560a85a44a3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;This should work:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-54d8f3f1cbb847539ed8badca60e628d/Capture.PNG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DK bootloader don't start application</title><link>https://devzone.nordicsemi.com/thread/124582?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 13:00:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ad8a3cf-6478-40cd-9858-e9f6603e4b0c</guid><dc:creator>Bilal Bouguerra</dc:creator><description>&lt;p&gt;And what configuration do I need to enter in&amp;nbsp;&lt;span&gt;JLinkRTTViewer ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DK bootloader don't start application</title><link>https://devzone.nordicsemi.com/thread/124581?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 12:55:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:930d578b-277c-41a0-a6a2-13b6755c77c3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;RTT is enabled by default in the debug project. You can view RTT logs in JLinkRTTViewer.exe if you are working on Windows.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DK bootloader don't start application</title><link>https://devzone.nordicsemi.com/thread/124580?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 12:51:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a815d9ac-2b75-4ed2-83e1-f4330990a4a7</guid><dc:creator>Bilal Bouguerra</dc:creator><description>&lt;p&gt;I&amp;#39;m not using the debug project but if I do so how do I debug the code execution (RTT configuration, etc...) ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DK bootloader don't start application</title><link>https://devzone.nordicsemi.com/thread/124577?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 12:45:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13a0420c-8cfb-4eb2-98ef-9fec520fd13e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using the _debug project (\examples\dfu\bootloader_secure\pca10040_debug)? In that case you can check the RTT log output to see if the bootloader reports any errors, maybe the DFU process fails at the post-validation step or during activation.&lt;/p&gt;
&lt;p&gt;You could also try to rebuild the bootloader with the nrf_dfu_utils.c file I posted here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/31023/long-delay-after-dfu-completion-sdk-12-1"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/31023/long-delay-after-dfu-completion-sdk-12-1&lt;/a&gt;. It should make the copy routine more robust against unexpected resets.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DK bootloader don't start application</title><link>https://devzone.nordicsemi.com/thread/124572?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 12:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fb49faa-9747-4607-b6f8-0f3c8902bc94</guid><dc:creator>Bilal Bouguerra</dc:creator><description>&lt;p&gt;When I debug the&amp;nbsp;&lt;span&gt;BLE Secure DFU Bootloader, I can see that the execution is stuck in this function:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void wait_for_event()
{
    // Transport is waiting for event?
    while(true)
    {
        // Can&amp;#39;t be emptied like this because of lack of static variables
        app_sched_execute();
    }
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void app_sched_execute(void)
{
    while (!is_app_sched_paused() &amp;amp;&amp;amp; !APP_SCHED_QUEUE_EMPTY())
    {
        // Since this function is only called from the main loop, there is no
        // need for a critical region here, however a special care must be taken
        // regarding update of the queue start index (see the end of the loop).
        uint16_t event_index = m_queue_start_index;

        void * p_event_data;
        uint16_t event_data_size;
        app_sched_event_handler_t event_handler;

        p_event_data = &amp;amp;m_queue_event_data[event_index * m_queue_event_size];
        event_data_size = m_queue_event_headers[event_index].event_data_size;
        event_handler   = m_queue_event_headers[event_index].handler;

        event_handler(p_event_data, event_data_size);

        // Event processed, now it is safe to move the queue start index,
        // so the queue entry occupied by this event can be used to store
        // a next one.
        m_queue_start_index = next_index(m_queue_start_index);
    }
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>