<?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>static assertion failed: &amp;quot;CONFIG_WIFI_CREDENTIALS_STATIC_SSID required&amp;quot; when building mqtt example with nRF7002 dev board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102807/static-assertion-failed-config_wifi_credentials_static_ssid-required-when-building-mqtt-example-with-nrf7002-dev-board</link><description>Hi. 
 I am new to using VS Code so i am thinking i am doing something wrong. I am using the NCS 2.4, the nrf7002dk_nrf5340 dev board with the MQTT example that is here. 
 I am trying to compile the example here https://developer.nordicsemi.com/nRF_Connect_SDK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Aug 2023 12:16:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102807/static-assertion-failed-config_wifi_credentials_static_ssid-required-when-building-mqtt-example-with-nrf7002-dev-board" /><item><title>RE: static assertion failed: "CONFIG_WIFI_CREDENTIALS_STATIC_SSID required" when building mqtt example with nRF7002 dev board</title><link>https://devzone.nordicsemi.com/thread/441597?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 12:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:237783cf-739a-48b6-9014-54fdaceef6a8</guid><dc:creator>mpwirwin</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;Thanks i have pulled the latest from the repo and now its working, i hadn&amp;#39;t noticed that it was updated as i only pulled it a few days back.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static assertion failed: "CONFIG_WIFI_CREDENTIALS_STATIC_SSID required" when building mqtt example with nRF7002 dev board</title><link>https://devzone.nordicsemi.com/thread/441593?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 11:53:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d27d1c88-1815-4d54-ad69-89f2d2541485</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using the latest version of the example? The github repository was updated just two days ago with a patch to make it work in v2.4.0. I just built the example in v2.4.1 and it runs without issues on my side.&lt;/p&gt;
&lt;p&gt;Also make sure to change the MQTT client ID and topics in the project configuration to something unique:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;CONFIG_MQTT_PUB_TOPIC=&amp;quot;nRF7002DK/publish/my_unique_topic&amp;quot;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_MQTT_SUB_TOPIC=&amp;quot;nRF7002DK/subscribe/my_unique_topic&amp;quot;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_MQTT_CLIENT_ID=&amp;quot;my_unique_client_id&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static assertion failed: "CONFIG_WIFI_CREDENTIALS_STATIC_SSID required" when building mqtt example with nRF7002 dev board</title><link>https://devzone.nordicsemi.com/thread/441577?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 11:20:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e4947ba-082f-44d5-99e7-17ddad61539d</guid><dc:creator>mpwirwin</dc:creator><description>&lt;p&gt;It is sending messages over MQTT to the server so its working as expected now.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am trying to get the mqtt provisioning example from the blog working now. But it is also crashing but on a different error.&amp;nbsp;&lt;a id="" href="https://github.com/AliNordic/mqtt_over_wifi_nrf7002DK"&gt;https://github.com/AliNordic/mqtt_over_wifi_nrf7002DK&lt;/a&gt;&amp;nbsp;This is not built for the 2.4.1 stack and i have been debugging it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So far I have been able to get it provision by looking at added defines and file changes in the provisioning example&amp;nbsp; for example the below is added now.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;net/wifi_mgmt_ext.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;I can get the code to provision but it is crashing on the&amp;nbsp;mqtt_connect(&amp;amp;client); I assume this might be to do with some changes in the SDK and i wanted to see an simple example of the MQTT to figure out how you are supposed to init then connect to the server to figure out how come its panicing.&lt;/p&gt;
&lt;p&gt;&amp;lt;err&amp;gt; os: usage_fault: ***** USAGE FAULT *****&lt;br /&gt;[00:02:43.536,743] &amp;lt;err&amp;gt; os: usage_fault: Stack overflow (context area not valid)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static assertion failed: "CONFIG_WIFI_CREDENTIALS_STATIC_SSID required" when building mqtt example with nRF7002 dev board</title><link>https://devzone.nordicsemi.com/thread/441575?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 11:10:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eda74530-5afc-4107-aeee-0f210c9f24ba</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When rebuilding a project with an existing build directory, the VS Code extension will create the build command based on what is in CMake cache, including for example overlay configurations. There might be some cache in the build directory that is not removed when rebuilding, which could have caused this issue.&lt;/p&gt;
&lt;p&gt;Are you able to run the sample successfully now, or are you still seeing some issues?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static assertion failed: "CONFIG_WIFI_CREDENTIALS_STATIC_SSID required" when building mqtt example with nRF7002 dev board</title><link>https://devzone.nordicsemi.com/thread/441560?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 10:30:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aee9060b-1b18-4768-b70b-6adf26259160</guid><dc:creator>mpwirwin</dc:creator><description>&lt;p&gt;Interestingly i built the library again from scratch to make sure i make no edits and defined the client id as above and then it doesn&amp;#39;t panic?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static assertion failed: "CONFIG_WIFI_CREDENTIALS_STATIC_SSID required" when building mqtt example with nRF7002 dev board</title><link>https://devzone.nordicsemi.com/thread/441557?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 10:17:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6a0e19c-db69-4b8c-bde3-d16f7e9891d4</guid><dc:creator>mpwirwin</dc:creator><description>&lt;p&gt;I will check now if there is any other code snippets missing. Or added, i was trying to load the boilerplate example.&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/pastedimage1692180231170v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have cleaned and rebuilt the configuration file but it still keeps crashing with the kernel panic.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have noticed that VS Code is adding that CMake arguements and even if i delete them it re-adds it next time it builds.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am seeing the first LED light thats its connecting to the server then its crashing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;A snippet from the prj.conf is below&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1692181708526v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Could the fact the head size being set cause it to crash?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static assertion failed: "CONFIG_WIFI_CREDENTIALS_STATIC_SSID required" when building mqtt example with nRF7002 dev board</title><link>https://devzone.nordicsemi.com/thread/441543?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 09:03:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9a5df49-1338-4796-8228-04158229c09d</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you made any changes to the sample other than configuring the network credentials? Do you get the same error if you build without TLS, that is, without adding overlay-tls-nrf7002.conf in the build configuration?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static assertion failed: "CONFIG_WIFI_CREDENTIALS_STATIC_SSID required" when building mqtt example with nRF7002 dev board</title><link>https://devzone.nordicsemi.com/thread/441483?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 23:54:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9a97137-f4c2-4b09-a3d9-a7755841ade3</guid><dc:creator>mpwirwin</dc:creator><description>&lt;p&gt;Hi, thanks this was not clear to me that needed to be added to the defines from the kconfig. I have configured this now and get this far.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[00:00:00.475,799] &amp;lt;inf&amp;gt; fs_nvs: 6 Sectors of 4096 bytes&lt;br /&gt;[00:00:00.475,830] &amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, fe8&lt;br /&gt;[00:00:00.475,830] &amp;lt;inf&amp;gt; fs_nvs: data wra: 0, 0&lt;br /&gt;*** Booting Zephyr OS build v3.3.99-ncs1-1 ***&lt;br /&gt;[00:00:01.479,614] &amp;lt;wrn&amp;gt; wifi_credentials: Cannot retrieve WiFi credentials, no entry found for the provided SSID&lt;br /&gt;[00:00:01.479,644] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Adding statically configured WiFi network [Irwin] to internal list.&lt;br /&gt;[00:00:08.128,540] &amp;lt;inf&amp;gt; network: Wi-Fi Connected, waiting for IP address&lt;br /&gt;[00:00:08.282,470] &amp;lt;inf&amp;gt; network: IPv4 address acquired&lt;br /&gt;ASSERTION FAIL [dns_offload] @ WEST_TOPDIR/zephyr/subsys/net/lib/sockets/socket_offload.c:29&lt;br /&gt;[00:00:13.286,132] &amp;lt;err&amp;gt; os: r0/a1: 0x00000004 r1/a2: 0x0000001d r2/a3: 0x20001190&lt;br /&gt;[00:00:13.286,132] &amp;lt;err&amp;gt; os: r3/a4: 0x20004dfc r12/ip: 0x00000003 r14/lr: 0x00007cbd&lt;br /&gt;[00:00:13.286,132] &amp;lt;err&amp;gt; os: xpsr: 0x61000000&lt;br /&gt;[00:00:13.286,163] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00049e7c&lt;br /&gt;[00:00:13.286,193] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0&lt;br /&gt;[00:00:13.286,224] &amp;lt;err&amp;gt; os: Current thread: 0x20001190 (unknown)&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any ideas about this kernel panic?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static assertion failed: "CONFIG_WIFI_CREDENTIALS_STATIC_SSID required" when building mqtt example with nRF7002 dev board</title><link>https://devzone.nordicsemi.com/thread/441127?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 11:15:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:383e5aae-8a9c-4a05-a8cf-e45cb67bdf15</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to configure the SSID for your Wi-Fi network in prj.conf. If your Wi-Fi network is password protected, then you must also configure the password.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;CONFIG_WIFI_CREDENTIALS_STATIC_SSID=&amp;quot;my_network_ssid&amp;quot;&lt;br /&gt;CONFIG_WIFI_CREDENTIALS_STATIC_PASSWORD=&amp;quot;my_network_password&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>