<?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>Issue with 1.8V Control and DFU on nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118932/issue-with-1-8v-control-and-dfu-on-nrf5340</link><description>Dear Nordic Support Team, 
 We are using the nRF5340 together with the NPM1300 in our project. The 1.8V output is controlled via the NPM1300. 
 When performing a BLE DFU , if CONFIG_SERIAL=n in the prj.conf file, the device resets when the 1.8V output</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Feb 2025 10:35:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118932/issue-with-1-8v-control-and-dfu-on-nrf5340" /><item><title>RE: Issue with 1.8V Control and DFU on nRF5340</title><link>https://devzone.nordicsemi.com/thread/523463?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2025 10:35:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a02eaab3-fd59-441e-a8c9-07c62162125f</guid><dc:creator>erifat</dc:creator><description>&lt;p data-start="50" data-end="74"&gt;Yes, I mean that the reset issue does not occur when I set &amp;quot;CONFIG_SERIAL=y.&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with 1.8V Control and DFU on nRF5340</title><link>https://devzone.nordicsemi.com/thread/523395?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2025 07:05:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6b0cef6-ac51-4556-92da-ca5cab3517cb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You mean you don&amp;#39;t see the reset issue if you set&amp;nbsp;CONFIG_SERIAL=&lt;strong&gt;y&lt;/strong&gt;? It would also be good if you could check the reset source like here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/0d455a2454f4afb20d218cdec9c1922101e02d39/samples/nfc/system_off/src/main.c#L216"&gt;https://github.com/nrfconnect/sdk-nrf/blob/0d455a2454f4afb20d218cdec9c1922101e02d39/samples/nfc/system_off/src/main.c#L216&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with 1.8V Control and DFU on nRF5340</title><link>https://devzone.nordicsemi.com/thread/523276?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2025 13:21:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:549ac455-addd-40c2-8882-68801b3ebc49</guid><dc:creator>erifat</dc:creator><description>&lt;p data-start="40" data-end="233"&gt;Hello ,When I set &lt;strong data-start="51" data-end="70"&gt;CONFIG_SERIAL=n&lt;/strong&gt;, the issue occurs, and we only use the output for &lt;strong data-start="121" data-end="131"&gt;printf&lt;/strong&gt;. There is no UART usage in the project. When &lt;strong data-start="177" data-end="196"&gt;CONFIG_SERIAL=n&lt;/strong&gt;, I can&amp;#39;t even see the reset issue.&lt;/p&gt;
&lt;p data-start="235" data-end="424"&gt;After investigating further, it seems that rebooting the device while it is &lt;strong data-start="311" data-end="320"&gt;awake&lt;/strong&gt; resolves the issue. However, if I reboot while the device is in &lt;strong data-start="385" data-end="399"&gt;sleep mode&lt;/strong&gt;, the problem persists.&lt;/p&gt;
&lt;p data-start="426" data-end="454"&gt;Here is the relevant code:&lt;/p&gt;
&lt;p data-start="426" data-end="454"&gt;&lt;pre class="ui-code" data-mode="text"&gt;int system_sleep_wake(uint8_t new_state)
{
    if(sleepWakeFlag == new_state) return 0;

    printf(&amp;quot;System Sleep Wake\n&amp;quot;);
    buck1Control(new_state);
    printf(&amp;quot;Buck1 Control ok\n&amp;quot;);
    control_sensor_state(new_state);
    printf(&amp;quot;Control Sensor State ok\n&amp;quot;);
    control_afe_state(new_state);
    printf(&amp;quot;Control Afe State ok\n&amp;quot;);
    control_peripheral_state(new_state);
    printf(&amp;quot;Control Peripheral State ok\n&amp;quot;);
    //bt_conn_unref(!new_state);
    // pm_state_force(0, &amp;amp;(struct pm_state_info){PM_STATE_SUSPEND_TO_IDLE, 0, 0});
    sleepWakeFlag = new_state;

    if(new_state == true)
    {
        if(apk_init() != 0)
        {
            perp.Afe = 55;
            printf(&amp;quot;APK Init error\n&amp;quot;);
		}

        printf(&amp;quot;APK Init ok\n&amp;quot;);
    }
    else
    {
        printf(&amp;quot;APK Uninit\n&amp;quot;);
        apk_uninit();
    }

    return 0;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p data-start="426" data-end="454"&gt;&lt;pre class="ui-code" data-mode="text"&gt;void buck1Control(bool new_status)
{
    if(new_status == false)
    {
        if (regulator_is_enabled(buck1)) {
            regulator_disable(buck1);
            printf(&amp;quot;******************1.8V Disable\n&amp;quot;);
        }
    }
    else
    {
        if (!regulator_is_enabled(buck1)) {
                regulator_enable(buck1);
                printf(&amp;quot;************1.8V Enableee\n&amp;quot;);
        }
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p data-start="1316" data-end="1465"&gt;When I reset the device while it is &lt;strong data-start="1352" data-end="1361"&gt;awake&lt;/strong&gt;, it enters low-power mode correctly. However, if I reset it while in &lt;strong data-start="1431" data-end="1445"&gt;sleep mode&lt;/strong&gt;, nothing changes.&lt;/p&gt;
&lt;p data-start="1467" data-end="1559"&gt;Apologies if I am misinterpreting something. This issue has been quite challenging for me.&lt;/p&gt;
&lt;p data-start="1561" data-end="1570"&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with 1.8V Control and DFU on nRF5340</title><link>https://devzone.nordicsemi.com/thread/523062?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2025 13:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42c17823-ce60-4cb2-9a20-3ca4fe8f3ce9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you exposing any UART interfaces on your device, or did you just find that enabling the UARTE instance(s) in your bootloadermade the problem go away? Also, please check what the reset source was after the reset from the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/reset/doc/reset.html#ariaid-title13"&gt;RESETREAS&lt;/a&gt;&amp;nbsp;register.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>