<?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>Delay Init wifi on nrf5340 and nrf7002</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123349/delay-init-wifi-on-nrf5340-and-nrf7002</link><description>I am using the nrf5340 with the nrf7002 as the companion Wi-Fi IC. The supply voltage to all my peripherals (3V4) is enabled when my device exits sleep (System On + Idle). All the drivers can be initialized after I enable 3V4 to the peripherals, except</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Jul 2025 11:46:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123349/delay-init-wifi-on-nrf5340-and-nrf7002" /><item><title>RE: Delay Init wifi on nrf5340 and nrf7002</title><link>https://devzone.nordicsemi.com/thread/544204?ContentTypeID=1</link><pubDate>Thu, 31 Jul 2025 11:46:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b525beeb-ca86-4609-858c-42bb996fd8fe</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;Instead of setting up a SYS_INIT() function, you should use regulators-fixed instead:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr//blob/main/boards/nordic/thingy53/thingy53_nrf5340_common.dtsi#L117-L122"&gt;https://github.com/zephyrproject-rtos/zephyr//blob/main/boards/nordic/thingy53/thingy53_nrf5340_common.dtsi#L117-L122&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can set a delay on the boot-up with this as well:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr//blob/v4.0-branch/boards/seeed/xiao_ble/xiao_ble_nrf52840_sense.dts#L27"&gt;https://github.com/zephyrproject-rtos/zephyr//blob/v4.0-branch/boards/seeed/xiao_ble/xiao_ble_nrf52840_sense.dts#L27&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note that you should have a 6 ms delay after supplying a valid VBAT, as described here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf7002/page/chapters/hw_layout/doc/hw_layout.html#ariaid-title13"&gt;https://docs.nordicsemi.com/bundle/ps_nrf7002/page/chapters/hw_layout/doc/hw_layout.html#ariaid-title13&lt;/a&gt;&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: Delay Init wifi on nrf5340 and nrf7002</title><link>https://devzone.nordicsemi.com/thread/544047?ContentTypeID=1</link><pubDate>Wed, 30 Jul 2025 10:02:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b3c9db0-27ef-4ac2-a84a-0c137e236834</guid><dc:creator>TeoJordaan</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Q1 Answer: It is a custom design that hasn&amp;#39;t been reviewed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Q2 Answer: I am using my own custom board dts, so the forwarder is not included (hasn&amp;#39;t been enabled or disabled)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Q3 Answer:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I need to answer the question in 2 cases.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Case 1 (Permanent supply to the nRF7002):&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Everything works fine and i can connect to a &lt;span&gt;Wi-Fi&amp;nbsp;&lt;/span&gt;network.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Case 2 (Supply to nRF7002 switched on during device initialization):&lt;/p&gt;
&lt;p&gt;Wi-Fi stack fails as it attempts to communicate with the nRF7002 before it has been powered on. As far as i can tell, once this has failed there is no function call to restart the stack / driver.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;For a bit more background info, we are intending to use this for a low power field telemetry device. The sleep current needs to be around 40uA. The nRF7002 sleep current is 1.8mA unless TWT is used (as far as I can tell); however i cant assume that all our customers routers are Wi-Fi 6; therefore TWT is not a complete solution. That is why i want to completely disconnect supply from the nRF7002 when i go to sleep.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I am in the process of trying the following to solve both cases:&lt;br /&gt;&lt;br /&gt;1. Initialize the en3v4 (provide power to the nRF7002) before the kernel is initialized:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;//Initialize 3V4 as on by default so wifi stack works
static int early_gpio_init(void)
{
    nrf_gpio_cfg_output(DT_GPIO_PIN(DT_NODELABEL(qen3v4), gpios));
    nrf_gpio_pin_set(DT_GPIO_PIN(DT_NODELABEL(qen3v4), gpios));
    //Delay for 500us so 3V4 settles
    for(volatile uint32_t i = 0; i&amp;lt;32000; i++){
        __asm__ volatile(&amp;quot;nop&amp;quot;);
    }
    return 0;
}
//Initialize funtion to be executed before the kernel initializes
SYS_INIT(early_gpio_init, PRE_KERNEL_1, 0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. Before sleeping, disconnect Wi-Fi, drop Wi-Fi interface with&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;net_if_down&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;netIF&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;3. Switch off supply to the nRF7002 and then sleep&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;4. Wake from sleep and witch on supply to the nRF7002&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;4. Raise wifi interface with:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;net_if_up&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;netIF&lt;/span&gt;&lt;span&gt;);&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Do you think that this approach would work?&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: Delay Init wifi on nrf5340 and nrf7002</title><link>https://devzone.nordicsemi.com/thread/544029?ContentTypeID=1</link><pubDate>Wed, 30 Jul 2025 08:33:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01b674ff-b0c5-44e7-a4f4-87dd08c04ffc</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;It seems that there is an issue to initialize the nrf7002 on your design. This can be due to many factors, but it usually is some sort of connection issue or pin conflict.&lt;/p&gt;
&lt;p&gt;Q1: If this is a custom design, have you had it reviewed by us on a previous occasion?&lt;/p&gt;
&lt;p&gt;Q2: By default, pins P1.00-P1.05 are forwarded to the network core for uart prints. You seem to use P1.05 as the host irq.&lt;/p&gt;
&lt;p&gt;Have you ensured that the gpio-forwarder is disabled?&lt;/p&gt;
&lt;p&gt;This is done by adding this to your overlay:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;gpio_fwd {
	status = &amp;quot;disabled&amp;quot;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Q3: Do all nrf/samples/wifi examples behave like this?&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;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>