<?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>nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120350/nrf5-sdk-system-power-off-mode-wake-up-issue</link><description>Hi, 
 I&amp;#39;m working on an application where the system should enter System OFF mode after some button activity and wake up (restart) on a button press or USB connection. 
 When I flash the application using Segger Embedded Studio, it works as expected.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Apr 2025 06:18:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120350/nrf5-sdk-system-power-off-mode-wake-up-issue" /><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532719?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2025 06:18:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39dacba7-f29e-4bb4-91c6-e15ff8e6e18f</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hi Berg,&lt;/p&gt;
&lt;p&gt;Thank you for your assistance. It worked perfectly! and I truly appreciate your support!&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Theja&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532511?ContentTypeID=1</link><pubDate>Wed, 23 Apr 2025 07:30:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf1b3b04-842d-43a9-b83e-d2c59005b648</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The device will always wake up from system OFF when voltage is detected on the VBUS. The problem seems to be that the bootloader is entering DFU mode&amp;nbsp;after it wakes up from System OFF. Likely because you still have the&amp;nbsp;&lt;span&gt;NRF_BL_DFU_ENTER_METHOD_BUTTON flag enabled in your bootloader&amp;#39;s sdk_config header.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532508?ContentTypeID=1</link><pubDate>Wed, 23 Apr 2025 07:25:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c62b6b22-162d-41f3-a1a4-1ae6a015c22d</guid><dc:creator>Theja</dc:creator><description>[quote userid="126494" url="~/f/nordic-q-a/120350/nrf5-sdk-system-power-off-mode-wake-up-issue/532475"]I just wanted to is there any USB configurations are required to wake from USB VBUS[/quote]
&lt;p&gt;What about this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532479?ContentTypeID=1</link><pubDate>Wed, 23 Apr 2025 05:22:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad79e186-b267-4daa-9533-e071e9811656</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please upload the sdk_config.h file for your bootloader project here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532475?ContentTypeID=1</link><pubDate>Wed, 23 Apr 2025 05:15:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acbe7997-2ce9-4183-96d9-2b8ec39f9fa1</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;I didn&amp;#39;t find that command in&amp;nbsp;&lt;span&gt;sdk_config.h, and I just wanted to is there any USB configurations are required to wake from USB VBUS? If so kindly let me know.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532358?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 12:56:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:483be7a9-6d0d-4e7c-8a7c-f47b89141a57</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The original bootloader code will only configure this pin as an input if&amp;nbsp;NRF_BL_DFU_ENTER_METHOD_BUTTON is enabled in sdk_config.h.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532344?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 12:35:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84d97960-53e9-48dc-bf93-11b7e79d2bf3</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;I tried reading that gpio resgister got &amp;quot;0003000C&amp;quot; as a response indicating it&amp;#39;s in input.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532338?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 12:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75e29479-063d-4bf6-b99f-4fd1af85f8af</guid><dc:creator>Vidar Berg</dc:creator><description>[quote userid="126494" url="~/f/nordic-q-a/120350/nrf5-sdk-system-power-off-mode-wake-up-issue/532336"]I searched for the &lt;code data-start="91" data-end="110"&gt;sd_app_evt_wait()&lt;/code&gt; function throughout the entire project and found it in &lt;code data-start="166" data-end="182"&gt;nrf_pwr_mgmt.c&lt;/code&gt;. I also tried commenting out the call to this function, but the issue still persists.[/quote]
&lt;p&gt;This was to help troubleshoot the problem. Where is the Program counter (PC) at after you commented this function? You may also want to read the GPIO configuration register to confirm that P0.25 is not configured as an input.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532336?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 12:17:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b515f6a-a58f-4d6c-9862-c2cdef61fdb3</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/120350/nrf5-sdk-system-power-off-mode-wake-up-issue/532303"]Is&amp;nbsp;this signal is asserted when you have the USB cable inserted?[/quote]
&lt;p&gt;Yes!&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/120350/nrf5-sdk-system-power-off-mode-wake-up-issue/532303"]Then you can comment the wait for event function in the bootloader and read the CPU regs again to find out why it hangs in the bootloader.[/quote]
&lt;p&gt;I searched for the &lt;code data-start="91" data-end="110"&gt;sd_app_evt_wait()&lt;/code&gt; function throughout the entire project and found it in &lt;code data-start="166" data-end="182"&gt;nrf_pwr_mgmt.c&lt;/code&gt;. I also tried commenting out the call to this function, but the issue still persists.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532303?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 10:02:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f3b19d2-557f-4ca1-ad16-26e445886b70</guid><dc:creator>Vidar Berg</dc:creator><description>[quote userid="126494" url="~/f/nordic-q-a/120350/nrf5-sdk-system-power-off-mode-wake-up-issue/532300"]We&amp;#39;re not using any custom bootloader[/quote]
&lt;p&gt;No, but you may need to adapt the configuration for your board.&lt;/p&gt;
[quote userid="126494" url="~/f/nordic-q-a/120350/nrf5-sdk-system-power-off-mode-wake-up-issue/532300"]The pin you marked is used to detect the battery charging status—whether it&amp;#39;s charging or fully charged.[/quote]
&lt;p&gt;Is&amp;nbsp;this signal is asserted when you have the USB cable inserted?&lt;/p&gt;
[quote userid="126494" url="~/f/nordic-q-a/120350/nrf5-sdk-system-power-off-mode-wake-up-issue/532300"]I also tried setting &lt;code data-start="297" data-end="331"&gt;NRF_BL_DFU_ENTER_METHOD_BUTTON=0&lt;/code&gt; in the preprocessor, but the issue still persists.[/quote]
&lt;p&gt;Then you can comment the wait for event function in the bootloader and read the CPU regs again to find out why it hangs in the bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532300?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 09:47:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:904ea2a4-ac86-4da9-bffa-07a9ec6a7a73</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We&amp;#39;re not using any custom bootloader; we&amp;#39;re using &lt;code data-start="105" data-end="114"&gt;ble_dfu&lt;/code&gt; for our applications, and it&amp;#39;s working as expected.&lt;br data-start="166" data-end="169" /&gt; The pin you marked is used to detect the battery charging status&amp;mdash;whether it&amp;#39;s charging or fully charged.&lt;br data-start="273" data-end="276" /&gt; I also tried setting &lt;code data-start="297" data-end="331"&gt;NRF_BL_DFU_ENTER_METHOD_BUTTON=0&lt;/code&gt; in the preprocessor, but the issue still persists.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532286?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 08:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efe21508-8315-4bb4-a2fd-58f5beb17dad</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Everything indicates that it enters DFU mode after wake up.&amp;nbsp;In your bootloader project&amp;#39;s sdk_config.h header, please ensure that&amp;nbsp;NRF_BL_DFU_ENTER_METHOD_BUTTON is not enabled. By default, it is enabled on pin P0.25, which I see is connected to a charge status signal in your schematic.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1745311389155v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532277?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 07:45:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd4eaa91-c9f5-46ed-9de7-737a8141383f</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Our requiremnt is to wake the device immediately after USB connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532276?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 07:38:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cee1e9bf-59d2-49c7-b8fb-bd4e1e81bedb</guid><dc:creator>Theja</dc:creator><description>[quote userid="126494" url="~/f/nordic-q-a/120350/nrf5-sdk-system-power-off-mode-wake-up-issue/532275"]During the failure cases, even though the device doesn’t wake immediately after USB connection, it eventually wakes up after some time and then operates as expected.[/quote]
&lt;p&gt;Means, It enters to application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532275?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 07:37:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6c0332d-3dda-42eb-970b-7a0156284fd8</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/120350/nrf5-sdk-system-power-off-mode-wake-up-issue/532271"]I&amp;#39;m asking about the failing case.&amp;nbsp;[/quote]
&lt;p class="" data-start="76" data-end="220"&gt;During the failure cases, even though the device doesn&amp;rsquo;t wake immediately after USB connection, it eventually wakes up after some time and then operates as expected.&lt;/p&gt;
&lt;p class="" data-start="222" data-end="355"&gt;If you&amp;#39;d like to check whether the device is in DFU mode during that unknown state, could you please advise on how I can verify that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532271?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 07:29:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22f528b1-531c-4eef-a76a-0dbddaeaf8aa</guid><dc:creator>Vidar Berg</dc:creator><description>[quote userid="126494" url="~/f/nordic-q-a/120350/nrf5-sdk-system-power-off-mode-wake-up-issue/532264"]No, after waking up, it enters the application and works as expected.[/quote]
&lt;p&gt;I&amp;#39;m asking about the failing case.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532264?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 07:17:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:912957fc-86a7-4310-b510-3a3610a91df0</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/120350/nrf5-sdk-system-power-off-mode-wake-up-issue/532250"]Are you able to check if the device may be entering bootloader DFU mode after the wake up?[/quote]
&lt;p&gt;No, after waking up, it enters the application and works as expected.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To ensure we&amp;#39;re on the same page, let me repeat the issue we&amp;#39;re facing:&lt;/p&gt;
&lt;p&gt;Using a button action, I put the device into deep sleep (system OFF mode). Before entering deep sleep, I configure the button as a wake-up source.&lt;/p&gt;
&lt;p&gt;The problem is that after entering deep sleep, when I connect the USB, the device wakes up immediately in some cases, but other times it takes over 5 minutes to wake up (the timing varies). Once the device wakes up&amp;mdash;even after the delay&amp;mdash;it works as expected.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve attached the deep sleep-related code for your reference.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void enter_deepSleep()
{
    ret_code_t  err_code;
    
    nrf_gpio_pin_clear(SHDN);
    nrf_gpio_cfg_input(SHDN, NRF_GPIO_PIN_NOPULL);

    nrf_drv_gpiote_in_uninit(BUTTON_PIN_NO);             //UnInitialize the wake-up pin

    turn_off_LED(GREEN);
    turn_off_LED(BLUE);
    turn_off_LED(RED);
   
    nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_TOGGLE(false);     //Configure to generate interrupt and wakeup on pin signal low. &amp;quot;false&amp;quot; means that gpiote will use the PORT event, which is low power, i.e. does not add any noticable current consumption (&amp;lt;&amp;lt;1uA). Setting this to &amp;quot;true&amp;quot; will make the gpiote module use GPIOTE-&amp;gt;IN events which add ~8uA for nRF52 and ~1mA for nRF51.
    in_config.pull = NRF_GPIO_PIN_PULLUP;                                            //Configure pullup for input pin to prevent it from floting. Pin is pulled down when button is pressed on nRF5x-DK boards, see figure two in http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/dev_kit_v1.1.0/hw_btns_leds.html?cp=2_0_0_1_4
   
    err_code = nrf_drv_gpiote_in_init(BUTTON_PIN_NO, &amp;amp;in_config, NULL);             //Initialize the wake-up pin
    APP_ERROR_CHECK(err_code);                                                       //Check error code returned
    
    nrf_drv_gpiote_in_event_enable(BUTTON_PIN_NO, true);                            //Enable event and interrupt for the wakeup pin   
    
    //StartBlinkTimer(BlinkThrice);
    nrf_delay_ms(2000);
    NRF_POWER-&amp;gt;SYSTEMOFF = 1;
}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Also, please note that I haven&amp;rsquo;t done any explicit USB wake-up configuration during deep sleep, as the controller is already connected to USB VBUS.&lt;br /&gt;&lt;br /&gt;regards,&lt;br /&gt;Theja&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532250?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 06:36:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84071d16-e741-4ce0-aabb-e96914b69264</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The readout shows that the program has entered the wait for event loop inside the softdevice which is where a typical application will spent most of its time in. This loop is entered when the application or bootloader calls&amp;nbsp;sd_app_evt_wait(). Are you able to check if the device may be entering bootloader DFU mode after the wake up?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/532245?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 05:41:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11274eea-076d-41c2-bfcc-feab9eac5b4a</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the delayed response. I&amp;rsquo;ve read the registers while the device was in the unknown state, and I&amp;rsquo;ve attached the data below for your reference.&lt;pre class="ui-code" data-mode="text"&gt;R0: 0x00025F40
R1: 0x2003FFB8
R2: 0x00000000
R3: 0x00000000
R4: 0x200000B8
R5: 0x00000000
R6: 0xE000E000
R7: 0x00000000
R8: 0x00000000
R9: 0x00000000
R10: 0x00000000
R11: 0x00000000
R12: 0x2003FF80
SP: 0x2003FFB8
LR: 0x0001671D
PC: 0x00025F40
xPSR: 0x61000000
MSP: 0x2003FFB8
PSP: 0x00000000
RAZ: 0x00000000
CFBP: 0x00000000
APSR: 0x60000000
EPSR: 0x01000000
IPSR: 0x00000000&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Also, please note a few changes compared to previous observations. The device tends to enter the unknown state after being connected to USB. This behavior appears to be random and is not specific to the IDE or the hex file &amp;mdash; it&amp;#39;s occurring in both cases approximately 5 to 6 times out of 10.&lt;br /&gt;&lt;br /&gt;I&amp;rsquo;ve also attached the schematic for your reference.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/POWER_5F00_SCH-_2800_1_2900_.pdf"&gt;devzone.nordicsemi.com/.../POWER_5F00_SCH-_2800_1_2900_.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To set the GPIO output to 3.3V, I made the following changes. Could this have anything to do with the issue?&lt;pre class="ui-code" data-mode="text"&gt;    {
        NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Wen;
        while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy){}

        NRF_UICR-&amp;gt;REGOUT0 = (NRF_UICR-&amp;gt;REGOUT0 &amp;amp; ~((uint32_t)UICR_REGOUT0_VOUT_Msk)) |
                            (UICR_REGOUT0_VOUT_3V3 &amp;lt;&amp;lt; UICR_REGOUT0_VOUT_Pos);  

        NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Ren;
        while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy){}
    }&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK System power off MODE wake up issue.</title><link>https://devzone.nordicsemi.com/thread/529996?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2025 12:34:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de4ea1b7-fd24-45bc-8403-0a49014b8fce</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Theja,&lt;/p&gt;
[quote user=""]If I connect the USB while in System OFF mode, it enters an unknown state where nothing functions.[/quote]
&lt;p&gt;Please run &amp;#39;nrfjprog --readregs&amp;#39; when the chip is in this state to see if the register readout may reveal what state the device is in.&lt;/p&gt;
[quote user=""]I compared the HEX files — one read back from the device (flashed via IDE) and the other generated through the post-build commands — and found differences.[/quote]
&lt;p&gt;Does the application region in flash contain different data when you check the flash contents after using these two different methods?&lt;/p&gt;
&lt;p&gt;nrfjprog --memrd 0x0 --n 0x1000000 &amp;gt; memory_content.txt&lt;/p&gt;
[quote user=""]call nrfutil settings generate --family NRF52840 --application CenSyn_EEG.hex --application-version 1 --bootloader-version 1 --bl-settings-version 2 bootloader_settings.hex&lt;br /&gt;call mergehex --merge bootloader_settings.hex secure_bootloader.hex --output Combined_bootloader.hex&lt;br /&gt;call mergehex --merge s140_nrf52_7.2.0_softdevice.hex Combined_bootloader.hex --output SD_FBL.hex&lt;br /&gt;call mergehex --merge CenSyn_EEG.hex SD_FBL.hex --output Final_Hex.hex&lt;br /&gt;call nrfutil pkg generate --hw-version 52 --application-version 2 --application CenSyn_EEG.hex --sd-req 0x100 --key-file private.key CenSyn_EEG_DFU.zip[/quote]
&lt;p&gt;Is there a flash command that comes after this?&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>