<?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>NRF7002 w/ NRF9160 project crash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109583/nrf7002-w-nrf9160-project-crash</link><description>Hello, 
 
 We have a project with an nrf7002 and a nrf9160 as the host MCU on a custom board. However we find whenever we include CONFIG_NET_SOCKETS=y into project.conf we see a crash on wifi initialization. Any idea why this could be? 
 
 We are using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Apr 2024 17:43:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109583/nrf7002-w-nrf9160-project-crash" /><item><title>RE: NRF7002 w/ NRF9160 project crash</title><link>https://devzone.nordicsemi.com/thread/478600?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 17:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c73cd35-f772-495d-bf91-cac55e931b55</guid><dc:creator>RJengr</dc:creator><description>&lt;p&gt;This issue has been resolved. The issue stems from CONFIG_NET_SOCKETS_OFFLOAD not only offloading the TCP/IP stack to hardware, but also setting the TCP/IP hardware as the default net interface. The Wifi scan sample code then uses&amp;nbsp;net_if_get_default(), which actually returns the offloaded TCP/IP hardware instead of the Wifi interface, which causes a crash when trying to utilize wifi functions from net_mgmt. I was able to resolve this by using&amp;nbsp;net_if_get_first_wifi() instead. I would suggest that Nordic revises their sample as using&amp;nbsp;&lt;span&gt;net_if_get_default() is not a deterministic implementation and other users may likely face the same issue.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF7002 w/ NRF9160 project crash</title><link>https://devzone.nordicsemi.com/thread/478291?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 11:45:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ff63b5d-7a5b-4f83-9521-98e499682789</guid><dc:creator>NautDesigner</dc:creator><description>&lt;p&gt;The main prj.conf in that sample has CONFIG_NET_SOCKETS enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF7002 w/ NRF9160 project crash</title><link>https://devzone.nordicsemi.com/thread/478290?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 11:42:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c758d7da-394f-42bb-9ecb-6f8faf50fe12</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Paul&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t been able to dive into why CONFIG_NET_SOCKETS specifically causes this to occur yet, but can you instead try using the &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.6.0/samples/cellular/nrf_cloud_multi_service/overlay-nrf7002ek-wifi-scan-only.conf"&gt;nrf7002ek-wifi-scan-only.conf&lt;/a&gt; as a template for setting up scanning on an nRF91+nRF7002 solution, where I see CONFIG_NET_SOCKETS isn&amp;#39;t used at all.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF7002 w/ NRF9160 project crash</title><link>https://devzone.nordicsemi.com/thread/478022?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 11:08:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01341f55-6321-4bea-8f48-3da4a13d2439</guid><dc:creator>NautDesigner</dc:creator><description>&lt;p&gt;Correct. This works fine on the nRF7002DK without having to program OTP in V2.5.2. It&amp;#39;s only on our custom board with nRF9160 and nRF7002 that we have this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF7002 w/ NRF9160 project crash</title><link>https://devzone.nordicsemi.com/thread/477945?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 07:14:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6a4fa83-2905-49c2-b47b-ab89f9762a35</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Paul&lt;/p&gt;
&lt;p&gt;I just tried the scan sample in NCS 2.6.0 on an nRF7002DK. Just setting&amp;nbsp;&lt;span&gt;CONFIG_NET_SOCKETS=y does not change anything on my end, and it correctly runs both with and without this config. Let me know if there&amp;#39;s anything else I can do to try and reproduce this on my end. Is it only when using the nRF91 and an nRF7002 together you&amp;#39;re seeing this on your end?&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;...\v2.6.0\nrf\samples\wifi\scan&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF7002 w/ NRF9160 project crash</title><link>https://devzone.nordicsemi.com/thread/477722?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 08:04:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e8c46d5-0e37-44e2-9249-ae7836686566</guid><dc:creator>NautDesigner</dc:creator><description>&lt;p&gt;Using the scan sample, just add&amp;nbsp;&lt;span&gt;CONFIG_NET_SOCKETS=y. Program crashes. Program OTP with MAC. Program continually reboots. Just trying to run the scan sample with CONFIG_NET_SOCKETS enabled.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;SEGGER J-Link V7.94e - Real time terminal output
SEGGER J-Link V11.0, SN=851003323
Process: JLink.exe
[00:00:00.257,568] &amp;lt;inf&amp;gt; wifi_nrf: SPIM spi@a000: freq = 8 MHz

[00:00:00.257,965] &amp;lt;inf&amp;gt; wifi_nrf: SPIM spi@a000: latency = 0

*** Booting nRF Connect SDK v2.5.2 ***
Starting alertrax_nrf91_v3 with CPU frequency: 64 MHz
[00:00:00.257,629] &amp;lt;inf&amp;gt; wifi_nrf: SPIM spi@a000: freq = 8 MHz

[00:00:00.258,026] &amp;lt;inf&amp;gt; wifi_nrf: SPIM spi@a000: latency = 0

*** Booting nRF Connect SDK v2.5.2 ***
Starting alertrax_nrf91_v3 with CPU frequency: 64 MHz
[00:00:00.257,598] &amp;lt;inf&amp;gt; wifi_nrf: SPIM spi@a000: freq = 8 MHz

[00:00:00.257,995] &amp;lt;inf&amp;gt; wifi_nrf: SPIM spi@a000: latency = 0

*** Booting nRF Connect SDK v2.5.2 ***&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF7002 w/ NRF9160 project crash</title><link>https://devzone.nordicsemi.com/thread/477715?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 07:29:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:178f9a2e-df17-4711-a02b-2d7ba949c645</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hm, okay, these should be fine addresses from what I can see.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I discussed this with a colleague, and we need some more information on what exactly you&amp;#39;re trying to do when running into this issue, as that&amp;#39;s not clear here. You can check out this config overlay file for how to set up an nRF7002 to do scan only in a cellular application: &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.6.0/samples/cellular/nrf_cloud_multi_service/overlay-nrf7002ek-wifi-scan-only.conf"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.6.0/samples/cellular/nrf_cloud_multi_service/overlay-nrf7002ek-wifi-scan-only.conf&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF7002 w/ NRF9160 project crash</title><link>https://devzone.nordicsemi.com/thread/477555?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 12:21:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ba94639-a9ed-4122-97af-71cb88324cc4</guid><dc:creator>NautDesigner</dc:creator><description>&lt;p&gt;Using&amp;nbsp;aa:ce:36:2f:00:5a fails as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF7002 w/ NRF9160 project crash</title><link>https://devzone.nordicsemi.com/thread/477518?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 11:04:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:133b0ddd-d963-4cdc-bb39-3d426633462a</guid><dc:creator>NautDesigner</dc:creator><description>&lt;p&gt;That is not what we chose, somehow it came out that way. But it&amp;rsquo;s not working with the first MAC address either. What two MAC addresses would you like us to test with?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF7002 w/ NRF9160 project crash</title><link>https://devzone.nordicsemi.com/thread/477478?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 08:04:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:809bb630-a850-4e90-b1b3-76a690a8e27b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I think this is because 00-00-00-00-00-04 is not a valid MAC address. Is there a reason you&amp;#39;re setting this address specifically?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you make up your own MAC address, you&amp;#39;re supposed to set the 2&amp;#39;s place bit (the &amp;quot;locally administered&amp;quot; bit) in the first byte, to differentiate it from a guaranteed globally unique MAC address. Usually the first three bytes a unicast MAC address is an &amp;quot;Organizationally Unique Identifier&amp;quot; (OUI) that the IEEE assigned to the manufacturer of your Ethernet device. Manufacturers are required to make sure they keep the last 3 bytes unique&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF7002 w/ NRF9160 project crash</title><link>https://devzone.nordicsemi.com/thread/477436?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 02:47:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd720c59-9ac6-45ea-8777-c37203fb3c6c</guid><dc:creator>NautDesigner</dc:creator><description>&lt;p&gt;Using the MAC 00-00-00-00-00-04 doesn&amp;#39;t work when used on another board either.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF7002 w/ NRF9160 project crash</title><link>https://devzone.nordicsemi.com/thread/477435?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 02:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2935ef5-7aec-4e0e-8ddb-5fe59e45e9ed</guid><dc:creator>NautDesigner</dc:creator><description>&lt;p&gt;If OTP is programmed, scan still dies if&amp;nbsp;&lt;span&gt;CONFIG_NET_SOCKETS=y is enabled.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;ifi_radio_ficr_prog otp_write_params 0x100 0x50FA50FA.
reboot
wifi_radio_ficr_prog otp_write_params 0x120 0xFF36CEF0 0x4A00
wifi_radio_ficr_prog otp_write_params 0x128 0xFF36CEF0 0x4B00
wifi_radio_ficr_prog otp_write_params 0x100 0x00000000
&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Reading parameters show the MAC is set:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;rtt:~$ wifi_radio_ficr_prog otp_read_params
OTP Region is locked!!!

PRODTEST.FT.PROGVERSION = 0xff0300ff

PRODTEST.TRIM0 = 0x00090410
PRODTEST.TRIM1 = 0x0009d40b
PRODTEST.TRIM2 = 0x0009d80b
PRODTEST.TRIM3 = 0x000f040c
PRODTEST.TRIM4 = 0x000fd408
PRODTEST.TRIM5 = 0x000fd808
PRODTEST.TRIM6 = 0xffffffff
PRODTEST.TRIM7 = 0xffffffff
PRODTEST.TRIM8 = 0xffffffff
PRODTEST.TRIM9 = 0xffffffff
PRODTEST.TRIM10 = 0xffffffff
PRODTEST.TRIM11 = 0xffffffff
PRODTEST.TRIM12 = 0xffffffff
PRODTEST.TRIM13 = 0xffffffff
PRODTEST.TRIM14 = 0xffffffff

INFO.PART = 0x00007002
INFO.VARIANT = 0x00423030

INFO.UUID0 = 0x56029f54
INFO.UUID1 = 0x11eddc0b
INFO.UUID2 = 0x306c04cc
INFO.UUID3 = 0x3d75ea4e

REGION.PROTECT0 = 0x00000000
REGION.PROTECT1 = 0x00000000
REGION.PROTECT2 = 0x00000000
REGION.PROTECT3 = 0x00000000

MAC0.ADDRESS0 = 0xff36cef0
MAC0.ADDRESS1 = 0x00004a00
MAC0.ADDRESS = f0:ce:36:ff:00:4a

MAC1.ADDRESS0 = 0xff36cef0
MAC1.ADDRESS1 = 0x00004b00
MAC1.ADDRESS = f0:ce:36:ff:00:4b

CALIB.XO = 0xff
REGION_DEFAULTS = 0xfffffff9
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there another step that is missing?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF7002 w/ NRF9160 project crash</title><link>https://devzone.nordicsemi.com/thread/475660?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 13:25:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:253ac236-8621-4394-a947-621b41f5a1fe</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi RJ&lt;/p&gt;
&lt;p&gt;From the log here it seems like the nRF7002 isn&amp;#39;t prepared with OTP memory being readied/programmed on your end. Can you confirm that you&amp;#39;ve enabled OTP memory access with the steps described here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/nan_043/APP/nan_043/otp_programming.html"&gt;https://infocenter.nordicsemi.com/topic/nan_043/APP/nan_043/otp_programming.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>