<?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>nrf9160dk_nrf9160 FOTA connection failure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90420/nrf9160dk_nrf9160-fota-connection-failure</link><description>Hi, 
 Project development using board with HL7800 modem similar to Pinnacle 100 did not succeed with FOTA upgrade so it is been decided first to try it with nrf9160dk_nrf9160 devboard. 
 OS - Windows 10 Using NCS Toolchain 2.0.0 for building Board: nrf9160dk_nrf9160_ns</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Aug 2022 10:23:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90420/nrf9160dk_nrf9160-fota-connection-failure" /><item><title>RE: nrf9160dk_nrf9160 FOTA connection failure</title><link>https://devzone.nordicsemi.com/thread/379674?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2022 10:23:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d82f0be1-f16d-44fb-ac84-16df3a28ceb0</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We do not have such an sample, but the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/memfault/README.html?highlight=memfault"&gt;Memfault sample application&lt;/a&gt; shows you how to use the library:&amp;nbsp;&lt;em&gt;&amp;quot;The Memfault sample shows how to use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="https://docs.memfault.com/docs/embedded/introduction/" href="https://docs.memfault.com/docs/embedded/introduction/" rel="noopener noreferrer" target="_blank"&gt;Memfault SDK&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in an nRF Connect SDK application to collect coredumps and metrics. The sample connects to an LTE network and sends the collected data to Memfault’s cloud using HTTPS.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160dk_nrf9160 FOTA connection failure</title><link>https://devzone.nordicsemi.com/thread/379545?ContentTypeID=1</link><pubDate>Mon, 01 Aug 2022 13:00:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9169e0e4-0dd8-426b-bba9-0f42292ef128</guid><dc:creator>iivanov</dc:creator><description>&lt;p&gt;Thank you for response.&lt;/p&gt;
&lt;p&gt;Error 111&amp;nbsp;i assume is&amp;nbsp;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ECONNREFUSED&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;111&lt;/span&gt;&lt;span&gt; &amp;nbsp; /* Connection refused */&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;AT commandw been suggested&amp;nbsp;to run are producing similar results.&lt;/span&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;If nordic has demo project for nrf9160dk_nrf9160_ns board with FOTA using memfault account could you provide prj.conf so i could reproduce it with my test project and memfault account.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Kind Regards,.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160dk_nrf9160 FOTA connection failure</title><link>https://devzone.nordicsemi.com/thread/379148?ContentTypeID=1</link><pubDate>Thu, 28 Jul 2022 13:22:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7b7616a-09bf-49f2-8007-a5f15405fac1</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Correct me if you believe I am wrong, but the command &amp;quot;&lt;span&gt;&lt;em&gt;west build -b nrf9160dk_nrf9160_ns -d build/mflt_exmpl C:\ncs\v2.0.0\modules\lib\memfault-firmware-sdk\examples\nrf-connect-sdk\nrf9160\memfault_demo_app --pristine&lt;/em&gt;&amp;quot; compiles and builds the entire&amp;nbsp;&lt;a title="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/libraries/others/memfault_ncs.html#memfault" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/libraries/others/memfault_ncs.html#memfault"&gt;memfault library&lt;/a&gt;, does it not? I believe you only want to flash and build the memfault sample.&lt;/span&gt;&lt;/p&gt;
[quote user="iivanov"]4.ncs\v1.7.1 attempt been using minimal sample project located in C:\ncs\v1.7.1\nrf\samples\nrf9160\memfault[/quote]
&lt;p&gt;How did this go? Did you have the same results here aswell?&lt;/p&gt;
[quote user=""][2022-07-27 14:17:22.706] &amp;lt;err&amp;gt; &amp;lt;mflt&amp;gt;: FOTA start failed, rv=-111[/quote]
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/zephyr-v3.1.0/lib/libc/minimal/include/errno.h#L96"&gt;Error 111&lt;/a&gt;&amp;nbsp;suggests you have a connection error, which could be caused by either your certificate and/or your internet connection. If this is what causes the issues, could you try to verify if a sample you build from our samples gets connected to the LTE network?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then, the second thing I would like you to verify/do is to run the&amp;nbsp;&lt;/span&gt;&lt;a title="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/samples/nrf9160/at_client/README.html" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/samples/nrf9160/at_client/README.html" rel="noopener noreferrer" target="_blank"&gt;AT Client&lt;/a&gt;&lt;span&gt;&amp;nbsp;on your custom board and then run the following sequence:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT+CGMR 
AT%MDMEV=1 
AT%XMODEMSLEEP=1,1000,60000 
AT+CEREG=5 
AT%CESQ=1  
AT%XSYSTEMMODE? 
AT+CFUN=1&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This should give you a log similar to the following:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;[2022-07-08 17:43:01] *** Booting Zephyr OS build v3.0.99-ncs1  *** 
[2022-07-08 17:43:01] The AT host sample started 
[2022-07-08 17:43:04] AT+CGMR 
[2022-07-08 17:43:05] mfw_nrf9160_1.3.2 
[2022-07-08 17:43:05] OK 
[2022-07-08 17:43:10] AT%MDMEV=1 
[2022-07-08 17:43:10] OK 
[2022-07-08 17:43:14] AT%XMODEMSLEEP=1,1000,60000 
[2022-07-08 17:43:14] O%XMODEMSLEEP: 4 
[2022-07-08 17:43:14] K 
[2022-07-08 17:43:18] AT+CEREG=5 
[2022-07-08 17:43:19] OK 
[2022-07-08 17:43:22] AT%CESQ=1  
[2022-07-08 17:43:23] OK 
[2022-07-08 17:43:27] AT%XSYSTEMMODE? 
[2022-07-08 17:43:28] %XSYSTEMMODE: 1,0,0,0 
[2022-07-08 17:43:28] OK 
[2022-07-08 17:43:31] AT+CFUN=1 
[2022-07-08 17:43:32] %XMODEMSLEEP: 4,0 
[2022-07-08 17:43:32] OK 
[2022-07-08 17:43:33] %CESQ: 46,2,18,2 
[2022-07-08 17:43:33] +CEREG: 2,&amp;quot;7AA9&amp;quot;,&amp;quot;01444000&amp;quot;,7 
[2022-07-08 17:43:34] %MDMEV: SEARCH STATUS 2 
[2022-07-08 17:43:34] +CEREG: 1,&amp;quot;7AA9&amp;quot;,&amp;quot;01444000&amp;quot;,7,,,&amp;quot;00001010&amp;quot;,&amp;quot;11000001&amp;quot; 
[2022-07-08 17:43:42] %CESQ: 47,2,23,3 
[2022-07-08 17:43:57] %CESQ: 46,2,18,2 
[2022-07-08 17:44:08] %CESQ: 255,0,255,0 
[2022-07-08 17:44:08] %XMODEMSLEEP: 1,1151979975&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With the AT Client you may also verify your certificates on the custom board by using&amp;nbsp;&amp;nbsp;&lt;a title="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/security/cmng_set.html" href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/security/cmng_set.html" rel="noopener noreferrer" target="_blank"&gt;%CMNG&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Let me know about your progress and results!&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Andreas&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160dk_nrf9160 FOTA connection failure</title><link>https://devzone.nordicsemi.com/thread/379001?ContentTypeID=1</link><pubDate>Thu, 28 Jul 2022 01:44:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac325252-8647-45be-bfc2-2f18f6258bbb</guid><dc:creator>iivanov</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;1.Firmware upgrade attempts are from 1.7.1 to 1.7.1 and second from 2.0.0 to 2.0.0. Let use v1.7.1.&lt;br /&gt;2.In both cases current firmware software version is 0.1.1 . Active release on memfault account configured from version 0.1.1 to 0.1.3.&lt;br /&gt;3.Upgrade is initiated from firmware uart shell &lt;br /&gt;mflt_nrt fota&lt;br /&gt;4.ncs\v1.7.1 attempt been using minimal sample project located in C:\ncs\v1.7.1\nrf\samples\nrf9160\memfault&lt;/p&gt;
&lt;p&gt;Kind Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160dk_nrf9160 FOTA connection failure</title><link>https://devzone.nordicsemi.com/thread/378942?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2022 13:54:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:618b663b-84fc-4716-8205-de89a85c9daa</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]It is been tried with ncs\v1.7.1 and ncc\v2.0.0. Both did fail.[/quote]
&lt;p&gt;To be able to give you an answer I need to know some more about how/what you are doing that causes this error:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Firstly, how are you performing the update? Are you attempting to upgrade from:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;v1.7.1 to v2.0.0 or the other way around?&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There has been some changes to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;MCUBOOT&amp;nbsp;&lt;/span&gt;in v2.0.0. As an example in V1.9.1 (and also v.1.7.1)&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The default size of MCUBOOT is 48KB on both v1.9.1 and v.2.0.0&lt;/li&gt;
&lt;li&gt;The change from v1.9.1 to v2.0.0 is the replacement of SPM (64KB) to TF-M minimal (48KB). This makes start offset of application different
&lt;ul&gt;
&lt;li&gt;On V1.9.1 the application start address is 0x20200&lt;/li&gt;
&lt;li&gt;On V2.0.0 the application start address is 0x1c200&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can try to enable&amp;nbsp;CONFIG_TFM_CMAKE_BUILD_TYPE_DEBUG=y to make TF-M size 64KB. This should make the start addresses the same and should allow you to do OTA DFU in between NCS versions. Note that there might be other version changes that might cause issues when trying to migrate versions aswell.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Updates from v1.7.1 to v1.7.1 / v2.0.0 to v2.0.0?&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;If this is your case, then I will have to ask around some more&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Secondly,&lt;/strong&gt; are these errors present if you attempt with a minimal sample as well? I.e with&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/memfault/README.html"&gt;this sample&lt;/a&gt;&amp;nbsp;and DFU update?&lt;/p&gt;
&lt;p&gt;Let me know if any of the above helps,&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>