<?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>Download client (via AWS FOTA) stops at 50% and can&amp;#39;t reconnect to AWS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112145/download-client-via-aws-fota-stops-at-50-and-can-t-reconnect-to-aws</link><description>Hello, 
 I am using the AWS IoT library and I came across an issue when downloading a new image (FOTA) from AWS. The FOTA process starts so the image is downloaded up to 50% where apparently the peer closes the connection (received length is 0) and it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Jun 2024 08:58:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112145/download-client-via-aws-fota-stops-at-50-and-can-t-reconnect-to-aws" /><item><title>RE: Download client (via AWS FOTA) stops at 50% and can't reconnect to AWS</title><link>https://devzone.nordicsemi.com/thread/490180?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 08:58:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c90e914f-897a-4b11-ad3e-49bf807caa20</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As previously mentioned, the download library is developed and tested with the IP-capable nRF devices in mind, so it highly likely needs to be adjusted/configured differently for your chosen ethernet bridge.&lt;/p&gt;
&lt;p&gt;What I can recommend, in addition to what you&amp;#39;ve already discovered, is to try to disable automatic ranges and see if this happens to have an impact: CONFIG_DOWNLOAD_CLIENT_RANGE_REQUESTS=n&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download client (via AWS FOTA) stops at 50% and can't reconnect to AWS</title><link>https://devzone.nordicsemi.com/thread/489996?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 13:48:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1aa894ee-b6ef-4e91-a7ab-917a74baae96</guid><dc:creator>Marco Russi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;problem solved.&lt;/p&gt;
&lt;p&gt;Apparently the http fragmentation size must be 4096. I have added:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DOWNLOAD_CLIENT_BUF_SIZE&lt;/span&gt;&lt;span&gt;=4096&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DOWNLOAD_CLIENT_HTTP_FRAG_SIZE_4096&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;and it now completes successfully.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;If I define the fragmentation size to 1024 then I fails at 25%. The fact that it was originally failing at 50% is because the size was apparently&amp;nbsp;2048 by default.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;What do you think ?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download client (via AWS FOTA) stops at 50% and can't reconnect to AWS</title><link>https://devzone.nordicsemi.com/thread/489926?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 10:59:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4988918-7d2b-4fbc-b12c-b61ff45ae351</guid><dc:creator>Marco Russi</dc:creator><description>&lt;p&gt;HI, I have tried that but same result.&lt;/p&gt;
&lt;p&gt;Anyway I have just found something interesting: at 50% the AWS server (peer) sends an HTTP header with &amp;quot;connection: close&amp;quot; so the download client reconnects as expected. Indeed the header length is 19 bytes longer than previous headers.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:330px;max-width:565px;" alt=" " height="330" src="https://devzone.nordicsemi.com/resized-image/__size/1130x660/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_06_2D00_21-alle-12.57.38.png" width="565" /&gt;&lt;/p&gt;
&lt;p&gt;This causes a reconnection attempt that fails due to some reason still to find out but the main problem is that the peer sends &amp;quot;connection: close&amp;quot; in the http header.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any idea why that happens?&lt;/p&gt;
&lt;p&gt;NOTE: Ingore the BUBU part in the &amp;quot;Peer closed connection, ...&amp;quot; LOG line as I put that do better identify the line in the code. Indeed the piece of code that detects the disconnection request is function &lt;em&gt;http_header_parse&lt;/em&gt; in http.c in the nrf download client library :&lt;/p&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;p&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;strnstr&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;client&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;buf&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;\r\n&lt;/span&gt;&lt;span&gt;connection: close&amp;quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;sizeof&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;client&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;buf&lt;/span&gt;&lt;span&gt;));&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;p&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;LOG_HEXDUMP_DBG&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;client&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;buf&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt;hdr_len&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&amp;quot;HTTP response&amp;quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;LOG_WRN&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;BUBU Peer closed connection, will re-connect&amp;quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;client&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;http&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;connection_close&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; }&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;I have also added the LOG line to print the header when that happens.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download client (via AWS FOTA) stops at 50% and can't reconnect to AWS</title><link>https://devzone.nordicsemi.com/thread/489432?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 08:32:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1003676-3650-44a5-977f-c6e26ec9d770</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;When experiencing a fatal error / fault, please share the output.&lt;/p&gt;
[quote user="Marco Russi"]Anyway I am playing with all those config macros and I guess I&amp;#39;ll need to spend days trying to find the right combination with little clue of what I am doing.&amp;nbsp;[/quote]
&lt;p&gt;The default setting for&amp;nbsp;CONFIG_NET_BUF_DATA_SIZE is 128, try to atleast adjust it to 256, and see if the failure point moves from 50% to something else.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download client (via AWS FOTA) stops at 50% and can't reconnect to AWS</title><link>https://devzone.nordicsemi.com/thread/489354?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 14:59:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e1a77d5-1f29-499a-9a83-035ca8d7b7ee</guid><dc:creator>Marco Russi</dc:creator><description>&lt;p&gt;Adding&amp;nbsp;&lt;span&gt;CONFIG_NET_BUF_DATA_POOL_SIZE implies enabling&amp;nbsp;&lt;/span&gt;CONFIG_NET_BUF_VARIABLE_DATA_SIZE which is experimental. I have tried and a task goes in stak overflow. I would not expect that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Anyway I am playing with all those config macros and I guess I&amp;#39;ll need to spend days trying to find the right combination with little clue of what I am doing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your help so far.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download client (via AWS FOTA) stops at 50% and can't reconnect to AWS</title><link>https://devzone.nordicsemi.com/thread/489214?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 08:19:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f2fa60d-c171-449c-bcf4-a39667f0c504</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As a generic note:&lt;/p&gt;
&lt;p&gt;If you have faults occurring, please report the full log.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In this case, revert to your original NET_BUF_* configuration, and rather adjust the overall buffer size via CONFIG_NET_BUF_DATA_POOL_SIZE and see if this changes the behavior.&lt;/p&gt;
&lt;p&gt;We have not tested the download sample with other devices than the IP-capable nRF&amp;#39;s (nRF91-series, nRF70-series), so I would expect that there could be some adjustments that you need to do to make it fit for the W5500, in terms of generic configuration.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download client (via AWS FOTA) stops at 50% and can't reconnect to AWS</title><link>https://devzone.nordicsemi.com/thread/489140?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 14:48:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:360a9305-744a-43cf-b1f1-099fe7d69889</guid><dc:creator>Marco Russi</dc:creator><description>&lt;p&gt;I tried to set&amp;nbsp;&lt;span&gt;CONFIG_NET_BUF_DATA_SIZE=1024 and not set&amp;nbsp;CONFIG_NET_BUF_FIXED_DATA_SIZE=y and it compiles fine. Stack overflow happen though.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download client (via AWS FOTA) stops at 50% and can't reconnect to AWS</title><link>https://devzone.nordicsemi.com/thread/489134?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 14:16:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:280f5f4d-36a7-4ef2-a768-c953a37ab4d7</guid><dc:creator>Marco Russi</dc:creator><description>&lt;p&gt;Hi, I have fixed the log as you suggested but the 50% download issue remains. I the tried to set&amp;nbsp;&lt;span&gt;CONFIG_NET_BUF_DATA_SIZE=1024 but that meant also setting&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_NET_BUF_FIXED_DATA_SIZE&lt;/span&gt;&lt;span&gt;=y.&amp;nbsp;&lt;/span&gt;Unfortunately this increases RAM footprint a lot and linker fails. I anyway managed to make it but the fw crashes by stack overflow when DHCP&amp;nbsp;starts (or when it gets response from the DHCP server). I then increased both my task and the system work queue stack but I can&amp;#39;t solve the stack overflow issue. Note that I can&amp;#39;t make stacks too big as RAM would not fit.&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download client (via AWS FOTA) stops at 50% and can't reconnect to AWS</title><link>https://devzone.nordicsemi.com/thread/489079?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 11:33:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:110c8849-5b47-4639-a051-51a594bd784f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Marco Russi"]I did not set&amp;nbsp;&lt;span&gt;CONFIG_LOG_MODE_IMMEDIATE=y anywhere so I guess that I am using the default mode.&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;The default is normally deferred logging, but just to be sure; please verify by checking your build-folder/zephyr/.config file.&lt;/p&gt;
[quote user="Marco Russi"]&lt;span&gt;When you say that I am having issues with logging do you mean that the log is related to the download issue I have?&amp;nbsp;How can&amp;nbsp;CONFIG_LOG_BLOCK_IN_THREAD allow the download client to reconnect&amp;nbsp;&lt;/span&gt;successfully? And could also the log cause the disconnection at exactly 50% ?[/quote]
&lt;p&gt;If your logger does in-place logging, you are effectively printing and blocking all threads while printing. This will cause problems, especially if you log in interrupt context (SPI for instance)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you play around with the NET buffer sizes, do you see a difference in how the device behaves?&lt;/p&gt;
&lt;p&gt;For instance by setting &amp;quot;CONFIG_NET_BUF_DATA_SIZE=1024&amp;quot; or adjusting the amount of buffers available?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download client (via AWS FOTA) stops at 50% and can't reconnect to AWS</title><link>https://devzone.nordicsemi.com/thread/489067?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 11:05:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e075ee6-ba3f-4c8a-a3c5-3f35da6f65c8</guid><dc:creator>Marco Russi</dc:creator><description>&lt;p&gt;Hi thank you.&lt;/p&gt;
&lt;p&gt;I did not set&amp;nbsp;&lt;span&gt;CONFIG_LOG_MODE_IMMEDIATE=y anywhere so I guess that I am using the default mode.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When you say that I am having issues with logging do you mean that the log is related to the download issue I have?&amp;nbsp;How can&amp;nbsp;CONFIG_LOG_BLOCK_IN_THREAD allow the download client to reconnect&amp;nbsp;&lt;/span&gt;successfully? And could also the log cause the disconnection at exactly 50% ?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download client (via AWS FOTA) stops at 50% and can't reconnect to AWS</title><link>https://devzone.nordicsemi.com/thread/489064?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 11:01:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:554af9d4-d598-4f7c-b097-1f0320e67025</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What log mode are you using?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are using log mode immediate (CONFIG_LOG_MODE_IMMEDIATE=y), then you&amp;#39;ll do in-place logging; which will cause a timing skew in your firmware.&lt;/p&gt;
&lt;p&gt;What I would recommend is that you use &amp;quot;CONFIG_LOG_MODE_DEFERRED&amp;quot;, to ensure that logging takes place in a dedicated thread.&lt;/p&gt;
[quote user="Marco Russi"]Important:&amp;nbsp;CONFIG_LOG_BLOCK_IN_THREAD=y is definitely crucial.[/quote]
&lt;p&gt;This also implies that you&amp;#39;re having issues with logging. Instead; try increasing the dedicated log buffer size:&lt;/p&gt;
&lt;p&gt;CONFIG_LOG_BUFFER_SIZE=10240&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download client (via AWS FOTA) stops at 50% and can't reconnect to AWS</title><link>https://devzone.nordicsemi.com/thread/488950?ContentTypeID=1</link><pubDate>Sat, 15 Jun 2024 15:43:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54f39449-f9ee-4cee-b568-cf8012e72d91</guid><dc:creator>Marco Russi</dc:creator><description>&lt;p&gt;&lt;span&gt;Finally, after some investigation, I confirm that disabling one of the enabled DBG LOG re-creates&amp;nbsp;the issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have also noticed that even during the full successful download, the disconnection happens but the&amp;nbsp;&lt;/span&gt;download client is able to reconnect and keep downloading. Here is the related piece of RTT log:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_06_2D00_15-alle-17.25.04.png" /&gt;&lt;/p&gt;
&lt;p&gt;To recap, at 50% of download the download client allegedly experiences a disconnection and can&amp;#39;t reconnect (errno -2). If then I add:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_BLOCK_IN_THREAD&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_SOCKETS_LOG_LEVEL_DBG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MQTT_HELPER_LOG_LEVEL_DBG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MQTT_LOG_LEVEL_DBG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DOWNLOAD_CLIENT_LOG_LEVEL_DBG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;the download client is able to reconnect and the full FOTA process succeeds.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Important:&amp;nbsp;CONFIG_LOG_BLOCK_IN_THREAD=y is definitely crucial.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download client (via AWS FOTA) stops at 50% and can't reconnect to AWS</title><link>https://devzone.nordicsemi.com/thread/488946?ContentTypeID=1</link><pubDate>Sat, 15 Jun 2024 10:56:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0be88e20-752a-4917-b0b7-6954a9ce4f12</guid><dc:creator>Marco Russi</dc:creator><description>&lt;p&gt;Update:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have managed to get a full download working. I have simply enabled the download client DBG log and it magically worked. Although if I disable the DBG level log then the issue appears again. I guess the issue has something to do with timing as the DBG level log should slow everything down due to the more verbose log being printed. Indeed I have also added these configs to not miss any LOG message:&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SEGGER_RTT_BUFFER_SIZE_UP&lt;/span&gt;&lt;span&gt;=4096&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_BLOCK_IN_THREAD&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_BLOCK_IN_THREAD_TIMEOUT_MS&lt;/span&gt;&lt;span&gt;=-1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;Any&amp;nbsp;&lt;/span&gt;thoughts?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the new prj.conf file&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/04737.prj.conf"&gt;devzone.nordicsemi.com/.../04737.prj.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and the full RTT log that shows that the download completed successfully. I also see the new application running as I made a specific application that prints &amp;quot;&amp;nbsp;THIS IS THE NEW IMAGE FROM AWS S3!&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/download_5F00_full.log"&gt;devzone.nordicsemi.com/.../download_5F00_full.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/new_5F00_image_5F00_running.log"&gt;devzone.nordicsemi.com/.../new_5F00_image_5F00_running.log&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>