<?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>bootloader problem - slow upgrade over UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85353/bootloader-problem---slow-upgrade-over-uart</link><description>I have already implemented DFU update in our one product. Which have fast USB interface and fast &amp;quot;lag-less&amp;quot; UART interface to nRF chip which is used as our bluetooth central. 
 DFU update works. Sometimes - very rarely - fails, nRF bootloader simply resets</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Mar 2022 08:13:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85353/bootloader-problem---slow-upgrade-over-uart" /><item><title>RE: bootloader problem - slow upgrade over UART</title><link>https://devzone.nordicsemi.com/thread/356489?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2022 08:13:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bdb465b-da40-4810-8622-e28bf34497fb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I have described how you can debug the bootloader. Please follow the suggestions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader problem - slow upgrade over UART</title><link>https://devzone.nordicsemi.com/thread/356481?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2022 07:55:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57148a0e-4d7b-4073-8afb-e529cc0bc99b</guid><dc:creator>Wojciech Puchar</dc:creator><description>&lt;p&gt;As i&amp;#39;ve already wrote i already checked it. bootloader has errors, not my side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader problem - slow upgrade over UART</title><link>https://devzone.nordicsemi.com/thread/356298?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 12:45:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a90ee2e7-57fd-4a61-846e-e4e5bd7e959b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Good to hear you see progress. This is not something that seems familiar so I think it is worth continuing to look at things outside of the nRF. Can you log the UART traffic from the PC as well as from a logic analyzer to see if the UART lines has the expected data or not when you get the CRC errors? If it does, it is worth looking more into the bootloader. In that case, I suggest starting with a debug bootloader and observing the RTT log to see what that contains. That may give some pointers on what to d o next.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader problem - slow upgrade over UART</title><link>https://devzone.nordicsemi.com/thread/356179?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 06:48:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08b2aff8-bdf9-4792-96d5-6414ceefcddb</guid><dc:creator>Wojciech Puchar</dc:creator><description>&lt;p&gt;Already partially found what is a problem. If every slip packet is sent without pauses (this could be done with buffer in interface chip) things gets far better. Now 4 per 5 attemps to update works. but funny some 4kB blocks gets CRC eraors and are repeated - in spite they are sent properly.&lt;/p&gt;
&lt;p&gt;But bootloader is clearly buggy. in uart reception side.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BTW update over uart with nrfutil do fails the same way, just rarely&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader problem - slow upgrade over UART</title><link>https://devzone.nordicsemi.com/thread/356050?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2022 13:02:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96e5e1e5-c303-424d-8050-3f5323d92dba</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In order to find out why the bootloader resets you need to debug in the bootloader. The most typical reason for a reset is some sort of error being detected by an error check, and the default error handler will do a reset in order to recover. If you can, the simplest would be to test with a debug bootloader with RTT logging (example projects with that are suffixed with &amp;quot;_debug&amp;quot;). With RTT logging enabled you will hopefully learn more about what happens in the bootloader. If not, you can do other things like set a breakpoint in the error handler and see if it is hit before the reset. And if so, trace&amp;nbsp;back from there.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>