<?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 won&amp;#39;t reset chip after dfu</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81926/nrf52832-won-t-reset-chip-after-dfu</link><description>won&amp;#39;t reset chip after dfu 
 
 application : \examples\ble_peripheral\ble_app_buttonless_dfu 
 bootloader : \examples\dfu\secure_bootloader\pca10040_s132_ble_debug\arm5_no_packs 
 SOFTDEVICE: S132 
 android app: nrf connect VESION 4.24.3 
 
 
 
 
 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Nov 2021 15:31:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81926/nrf52832-won-t-reset-chip-after-dfu" /><item><title>RE: NRF52832 won't reset chip after dfu</title><link>https://devzone.nordicsemi.com/thread/340586?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 15:31:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd403aec-98ed-4076-9385-0d8eca46b328</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I not sure what Softdevice version you use, but based on the address range, it seems like the program is running inside the sd_app_evt_wait() idle loop. So it has not &amp;quot;crashed&amp;quot; at least.&lt;/p&gt;
&lt;p&gt;Can you check if the device is advertising in DFU mode?&lt;/p&gt;
[quote user="h.wen"]actually both&amp;nbsp; the application and dfu running well,but&amp;nbsp;no logs print out while in stage of bootloader[/quote]
&lt;p&gt;It can be tricky to get RTT logging working with both a bootloader and app running on the same device: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30310/easy-way-to-merge-bootloader-and-application-rtt-output"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/30310/easy-way-to-merge-bootloader-and-application-rtt-output&lt;/a&gt;. I would suggest to enable UART logging in the app if that&amp;#39;s an option.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 won't reset chip after dfu</title><link>https://devzone.nordicsemi.com/thread/340333?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 12:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:206fad5a-587b-425b-b42f-b07601864476</guid><dc:creator>h.wen</dc:creator><description>&lt;p&gt;here is the cmd log:&lt;/p&gt;
&lt;p&gt;C:\Users\Administrator&amp;gt;nrfjprog --readregs&lt;br /&gt;R0: 0x00025278&lt;br /&gt;R1: 0x20005548&lt;br /&gt;R2: 0x00000000&lt;br /&gt;R3: 0x00000001&lt;br /&gt;R4: 0x200000B8&lt;br /&gt;R5: 0x00000000&lt;br /&gt;R6: 0xE000E000&lt;br /&gt;R7: 0x0000002A&lt;br /&gt;R8: 0x00000000&lt;br /&gt;R9: 0x00000000&lt;br /&gt;R10: 0x00000000&lt;br /&gt;R11: 0x00000000&lt;br /&gt;R12: 0x0000000C&lt;br /&gt;SP: 0x20005548&lt;br /&gt;LR: 0x00016299&lt;br /&gt;PC: 0x00025278&lt;br /&gt;xPSR: 0x61000000&lt;br /&gt;MSP: 0x20005548&lt;br /&gt;PSP: 0x00000000&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;no logs print out while in stage of bootloader&amp;nbsp; with&amp;nbsp; application In combination with freertos&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;application&lt;/span&gt;&lt;span&gt;:&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;\examples\ble_peripheral\ble_app_buttonless_dfu +freertos&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;actually both&amp;nbsp; the application and dfu running well,but&amp;nbsp;no logs print out while in stage of bootloader&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;here is the rtt log:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Setting vector table to bootloader: 0x00071000&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Setting vector table to main app: 0x00026000&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: DFU FreeRTOS example started.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Device is preparing to enter bootloader mode.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Disconnected 1 links.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Device will enter bootloader mode.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 won't reset chip after dfu</title><link>https://devzone.nordicsemi.com/thread/340329?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 12:33:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9e864da-57b9-420e-b4f7-b849b6329332</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Can you run &amp;quot;nrfjprog --readregs&amp;quot; when the device has gotten stuck in this state? I.e. after the &amp;quot;00&amp;gt; &amp;lt;debug&amp;gt; app: Disabling interrupts. NVIC-&amp;gt;ICER[0]: 0x0&amp;quot; line is printed. The Program Counter (PC) should tell us exactly where it hangs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 won't reset chip after dfu</title><link>https://devzone.nordicsemi.com/thread/340328?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 12:29:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f99157a3-2af9-49a1-b02c-1dc44a79ba00</guid><dc:creator>h.wen</dc:creator><description>&lt;p&gt;bootloader does&amp;nbsp;not enable UART OR logging,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Removing line contains&amp;nbsp;NRF_LOG_FLUSH (nrf_bootloader_app_start.c:75) have no affect.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;bootloader is base on the examples without any change:&lt;/p&gt;
&lt;p&gt;1. nRF5_SDK_17.0.2_d674dde\examples\dfu\secure_bootloader\pca10040_s132_ble&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. nRF5_SDK_17.0.2_d674dde\examples\dfu\secure_bootloader\pca10040_s132_ble_debug&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Another strange&amp;nbsp;issue : no logs print out while in stage of bootloader&amp;nbsp; with&amp;nbsp; application In combination with freertos&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;application&lt;/span&gt;&lt;span&gt;:&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;\examples\ble_peripheral\ble_app_buttonless_dfu +freertos&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;actually both&amp;nbsp; the application and dfu running well,but&amp;nbsp;no logs print out while in stage of bootloader&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 won't reset chip after dfu</title><link>https://devzone.nordicsemi.com/thread/340271?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 08:58:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5985d7a8-5daf-4e83-a0db-93fc464ce180</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Does your bootloader have logging over UART enabled logging by any chance? That&amp;#39;s can cause the bootloader to hang indefinitely for the reasons discussed in this post: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/57536/freeze-in-nrf_bootloader_app_start-on-nrf_log_flush"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/57536/freeze-in-nrf_bootloader_app_start-on-nrf_log_flush&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>