<?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>Merge application_update and mqtt_simple</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85862/merge-application_update-and-mqtt_simple</link><description>In my current application I have a combination of some examples and features, but I couldn&amp;#39;t add the resource provided by the http_application_update example. 
 So I tried to make the combination of the mqtt_simple and application_update examples, I realized</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Apr 2022 16:17:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85862/merge-application_update-and-mqtt_simple" /><item><title>RE: Merge application_update and mqtt_simple</title><link>https://devzone.nordicsemi.com/thread/361607?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 16:17:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2880b7de-f150-42f7-be9a-8d7fb305747a</guid><dc:creator>Thabet</dc:creator><description>&lt;p&gt;Finally this is resolved, thanks @Hakon&amp;nbsp;for showing me this command:&lt;/p&gt;
&lt;p&gt;CONFIG_THREAD_NAME=y&lt;/p&gt;
&lt;p&gt;After using it I noticed that the problem was related to the workqueue stack size!&lt;/p&gt;
&lt;p&gt;Anyone who has this problem, know that the solution is to increase the stack through the configuration: CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge application_update and mqtt_simple</title><link>https://devzone.nordicsemi.com/thread/361566?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 14:15:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:018985a4-63d8-4e71-a745-2652be41e3ab</guid><dc:creator>Thabet</dc:creator><description>&lt;p&gt;By default I already have this conf:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=4096&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The sysworkq thread giving the assert!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge application_update and mqtt_simple</title><link>https://devzone.nordicsemi.com/thread/361563?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 13:58:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8aa11c74-533d-4001-a98d-e25d8dea70b4</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Also, try setting CONFIG_THREAD_NAME=y to display the thread name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge application_update and mqtt_simple</title><link>https://devzone.nordicsemi.com/thread/361556?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 13:54:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:187c3a99-60ba-41ee-bce7-e3da3dfd913a</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;What thread is giving the assert? If it&amp;#39;s the download-thread, you can maybe try changing the stack size, CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=4096.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge application_update and mqtt_simple</title><link>https://devzone.nordicsemi.com/thread/361514?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 12:36:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b4eca4b-e7c1-401d-a1eb-9741131cf950</guid><dc:creator>Thabet</dc:creator><description>&lt;p&gt;Hello Hakon,&lt;/p&gt;
&lt;p&gt;The error occurs inside http.c, on line 83, in the call below:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;len&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;snprintf&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;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;CONFIG_DOWNLOAD_CLIENT_BUF_SIZE&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;HTTP_GET_RANGE&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;file&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;host&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;progress&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;off&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;div&gt;&lt;span&gt;Could someone from Nordic please help? 20 days of topic, 1 reply, 0 solution. This issue is delaying prototype assembly and field testing!&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge application_update and mqtt_simple</title><link>https://devzone.nordicsemi.com/thread/360556?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 13:10:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5025e59a-2698-4124-a1e4-4a329aff0bb6</guid><dc:creator>Thabet</dc:creator><description>&lt;p&gt;In the link you mentioned,&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.9.1/lib/at_cmd_parser/Kconfig#L9"&gt;here&lt;/a&gt;, I can see that the library is dependent on NEWLIB_LIBC, does this refer to CONFIG_NEWLIB_LIBC_NANO? Isn&amp;#39;t this referring to CONFIG_NEWLIB_LIBC?&lt;/p&gt;
&lt;p&gt;NEWLIBC NANO isn&amp;#39;t a shortened version of NEWLIBC? Wouldn&amp;#39;t we have to have the resources present in LIBC NANO within the full LIBC?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not able to track where this error comes from, the error occurs when the download is started, but according to the documentation the http_application_update sample uses the download client library to download the image, the same library used in the download_client sample, but in the download_client sample I can disable no problem to lib nano, doing this I don&amp;#39;t get any errors!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So apparently the error is not in the download client library, but why does it occur when it is called in the application_update sample? I&amp;#39;ve tried tracking the source through &amp;quot;arm-none-eabi-addr2line -e build/zephyr/zephyr.elf 0x0003e0f6&amp;quot; but that doesn&amp;#39;t get me anywhere. Could you please help me to track down this error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge application_update and mqtt_simple</title><link>https://devzone.nordicsemi.com/thread/360540?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 12:36:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cb9bdd5-960d-4a72-a09b-d15e77f69dbc</guid><dc:creator>Hakon</dc:creator><description>[quote user="Thabet"]Apparently the application_update example depends on this lib. But I need to disable this lib because of other things in the code. How could I account for this problem and eliminate this dependency on libc nano?[/quote]
&lt;p&gt;The &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.9.1/lib/at_cmd_parser/Kconfig#L9"&gt;at_cmd parser&lt;/a&gt; depends on the CONFIG_NEWLIB_LIBC_NANO config, you need to somehow get rid of this first.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge application_update and mqtt_simple</title><link>https://devzone.nordicsemi.com/thread/359833?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 14:03:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:864f433e-d3f4-4025-8175-139d60f35bd8</guid><dc:creator>Thabet</dc:creator><description>&lt;p&gt;I managed to track down what causes this error! I can&amp;#39;t disable new libc nano:&lt;/p&gt;
&lt;p&gt;CONFIG_NEWLIB_LIBC_NANO=n&lt;/p&gt;
&lt;p&gt;Apparently the application_update example depends on this lib. But I need to disable this lib because of other things in the code. How could I account for this problem and eliminate this dependency on libc nano?&lt;/p&gt;
&lt;p&gt;I already use the full libc, shouldn&amp;#39;t that be enough and make it possible to disable libc nano without causing any problems?&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NEWLIB_LIBC&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Please give me tips on how to get around this, over 1 week and no response from Nordic!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge application_update and mqtt_simple</title><link>https://devzone.nordicsemi.com/thread/359224?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 18:07:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e210a0cc-4523-4dc3-932c-d7556ee33c96</guid><dc:creator>Thabet</dc:creator><description>&lt;p&gt;I only kept CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=4096.&lt;/p&gt;
&lt;p&gt;My current application is already configured as follows:&lt;/p&gt;
&lt;p&gt;# Memory&lt;/p&gt;
&lt;p&gt;CONFIG_MAIN_STACK_SIZE=16384&lt;/p&gt;
&lt;p&gt;CONFIG_HEAP_MEM_POOL_SIZE=16384&lt;/p&gt;
&lt;p&gt;I tried to increase the size but without success!&lt;/p&gt;
&lt;p&gt;CONFIG_MAIN_STACK_SIZE=&lt;span&gt;32768&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;CONFIG_HEAP_MEM_POOL_SIZE=&lt;span&gt;32768&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge application_update and mqtt_simple</title><link>https://devzone.nordicsemi.com/thread/359220?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 17:38:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56c235e6-1de1-4ebd-8c1e-21a4d64153eb</guid><dc:creator>Joao Dullius</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tried to increase the Stack size?&lt;/p&gt;
&lt;p&gt;I noticed the application_update uses higher value than the mqtt simple:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;From application_update/proj.conf:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;# Heap and stacks&lt;/div&gt;
&lt;div&gt;CONFIG_HEAP_MEM_POOL_SIZE=2048&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;CONFIG_MAIN_STACK_SIZE=8192&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;From mqtt_simple/proj.conf:&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;# Memory&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;CONFIG_MAIN_STACK_SIZE=4096&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;CONFIG_HEAP_MEM_POOL_SIZE=2048&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: Merge application_update and mqtt_simple</title><link>https://devzone.nordicsemi.com/thread/359217?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 17:14:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7b36850-3fa2-4c23-88f6-3d8591becb22</guid><dc:creator>Thabet</dc:creator><description>&lt;p&gt;Hello Jo&amp;atilde;o,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m calling dfu_button_pressed(),&amp;nbsp;this worked in the application_update example!&lt;/p&gt;
&lt;p&gt;But in my custom application and in the mqtt_simple sample, I find the quoted error.&lt;/p&gt;
&lt;p&gt;In the application_update sample and in the merge with the applications I kept the stack settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge application_update and mqtt_simple</title><link>https://devzone.nordicsemi.com/thread/359211?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 16:35:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6ab5fb1-c122-47fe-b006-2d63b2ebe10d</guid><dc:creator>Joao Dullius</dc:creator><description>&lt;p&gt;Hi Gabriel,&lt;/p&gt;
&lt;p&gt;This appears to be a stack overflow on the update thread.&lt;/p&gt;
&lt;p&gt;Which command are you calling when you het this stack overflow?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge application_update and mqtt_simple</title><link>https://devzone.nordicsemi.com/thread/359209?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 16:30:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a337983-96f5-4a44-a3c1-a089904816f4</guid><dc:creator>Thabet</dc:creator><description>&lt;p&gt;I tried to call the function that starts the firmware update from several places, main, workqueue... I always get errors, for example when I call through a thread I get this error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;I: Configuring socket timeout (30 s)
I: Connecting to files.wnology.io
E: ***** USAGE FAULT *****
E:   Stack overflow (context area not valid)
E: r0/a1:  0x0004040a  r1/a2:  0x21040000  r2/a3:  0x0d0f8e00
E: r3/a4:  0x6207ccbf r12/ip:  0x2350734b r14/lr:  0x0000002c
E:  xpsr:  0x2001bc00
E: Faulting instruction address (r15/pc): 0xffffffd9
E: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0
E: Current thread: 0x2000f338 (unknown)
E: Resetting system&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please give me tips on how to do this!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge application_update and mqtt_simple</title><link>https://devzone.nordicsemi.com/thread/358393?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 11:38:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23acdd41-bfc5-4e3b-8a8c-95149887fbff</guid><dc:creator>Thabet</dc:creator><description>[quote userid="109559" url="~/f/nordic-q-a/85862/merge-application_update-and-mqtt_simple"]If I remove CONFIG_MODEM_KEY_MGMT=y from prj.conf, the device stops rebooting but nothing works:[/quote]
&lt;p&gt;&lt;span&gt;Updating: By doing this I can now connect and maintain the functionality of the MQTT application, the problem I found in the sequence was related to CONFIG_NRF_MODEM_LIB_SYS_INIT=n, I was maintaining this configuration, but it was not initializing in the nrf_modem_lib_init code, as the idea is to act only in NORMAL MODE, I removed this config from prj.conf.&lt;/span&gt;&lt;/p&gt;
[quote userid="109559" url="~/f/nordic-q-a/85862/merge-application_update-and-mqtt_simple"]&lt;p&gt;First I was encountering errors related to the settings below prj.conf:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DOWNLOAD_HOST&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;nrfconnectsdk.s3.eu-central-1.amazonaws.com&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DOWNLOAD_FILE_V2&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;app_update.bin&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DOWNLOAD_FILE_V1&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;app_downgrade.bin&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;&lt;span&gt;I solved the problem above too, I just added the HTTP application update sample menu to Kconfig, that is, I merged the Kconfig of the two examples.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But I still don&amp;#39;t understand why I should use CONFIG_MODEM_KEY_MGMT=y, and if necessary, what modification to make to be able to use this config.&amp;nbsp;Is this only used if using HTTPS?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How can I modify update_sample_init so that FOTA is started via a call? For example a publish on a topic, I would like to start FOTA this way instead of using a push button!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>