<?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>Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38000/peak-current-when-the-nrf52-is-in-the-system-on-mode</link><description>Hello, 
 I have done some consumption measurement but I have a strange behaviour while the nRF52840 is in the SYSTEM ON mode. 
 For the measurement, I send advertising packet each 1 second and then I put the nRF52840 in the SYSTEM ON mode. When the system</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Sep 2018 10:14:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38000/peak-current-when-the-nrf52-is-in-the-system-on-mode" /><item><title>RE: Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/thread/147752?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 10:14:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1af92028-8cf5-4154-916c-5593434a5c71</guid><dc:creator>Sylvain</dc:creator><description>&lt;p&gt;Thank you Sigurd !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/thread/147744?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 09:28:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5f360a7-d0bd-48b1-aea9-823ce3338282</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="68596" url="~/f/nordic-q-a/38000/peak-current-when-the-nrf52-is-in-the-system-on-mode/147640"]I guess the noise comes from the USB power supply as you previously mention.[/quote]
&lt;p&gt;Yes, this looks alot better.&lt;/p&gt;
[quote userid="68596" url="~/f/nordic-q-a/38000/peak-current-when-the-nrf52-is-in-the-system-on-mode/147640"]As you can see on the graph, I have some peaks at a frequency of approximately 38 Hz. Could be the internal regulator?[/quote]
&lt;p&gt;Yes, 38 Hz is&amp;nbsp;consistent with refresh spikes. So yes, this is the refresh spikes of the internal regulator.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/thread/147640?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 14:44:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c849784e-79b9-4f8e-b3db-bfce88018cdc</guid><dc:creator>Sylvain</dc:creator><description>&lt;p&gt;I performed measures with external power supply and now I have good results. I guess the noise comes from the USB power supply as you previously mention.&lt;/p&gt;
&lt;p&gt;As you can see on the graph, I have some peaks at a frequency of approximately 38 Hz. Could be the internal regulator?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/nRF52_5F00_Broadcast_5F00_Consumption.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot for your support.&lt;/p&gt;
&lt;p&gt;Sylvain.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/thread/147578?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 12:12:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d821a60-bc55-4e66-934c-38a2f542f30b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;&lt;span&gt;I also tested the main.c you posted with a KeySight N6705B also, and it didn&amp;rsquo;t show these peaks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There is something called refresh spikes in the internal regulator, but that is not what is shown in your plot. The behavior you see is not normal.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It could maybe be USB noise. Could you do a test where you power the board with &amp;ldquo;External supply&amp;rdquo;(P21) or with a battery instead.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/thread/147412?ContentTypeID=1</link><pubDate>Wed, 05 Sep 2018 14:24:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4061a28-f5b7-4dfb-80fc-d1f10abc8251</guid><dc:creator>Sylvain</dc:creator><description>&lt;p&gt;Unfortunately, I think&amp;nbsp;the dynamic of the PPK is not wide enough to measure the same behaviour as me. Furthermore, the slow sampling frequency probably smooths the signal.&lt;/p&gt;
&lt;p&gt;I have the same behaviour as previously. My sampling rate is 1 Mbps. I expect a sort of refreshment from the nRF52 to maintain this System On mode. I think is like that with the CC2642 ...&lt;/p&gt;
&lt;p&gt;I&amp;#39;m just asking myself if this behaviour is normal because it changes the average consumption ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/thread/147223?ContentTypeID=1</link><pubDate>Tue, 04 Sep 2018 15:15:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e5b1afc-0483-48f1-bb91-096f49fa1fac</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The s&lt;span&gt;ampling frequency&amp;nbsp;for the PPK is 77 kHz.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/thread/147218?ContentTypeID=1</link><pubDate>Tue, 04 Sep 2018 14:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60dee298-610d-4dce-bd5d-b70afed60582</guid><dc:creator>Sylvain</dc:creator><description>&lt;p&gt;I&amp;#39;ll perfom new measurements in the following days to be sure of the test condition.&lt;/p&gt;
&lt;p&gt;What&amp;#39;s the sampling frequency of the Nordic PPK ?&lt;/p&gt;
&lt;p&gt;Yes, I saw the same result on the DMM7510.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/thread/147038?ContentTypeID=1</link><pubDate>Mon, 03 Sep 2018 16:58:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:def42d1b-3bbc-4101-bec4-026e073d450c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;I tested your code on a nRF52840-PDK, and it didn&amp;#39;t show any of these peaks here.&lt;/p&gt;
&lt;p&gt;Image from &lt;a href="https://www.nordicsemi.com/eng/Products/Power-Profiler-Kit"&gt;Nordic PPK&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/480x360/__key/communityserver-discussions-components-files/4/0830.Capture.png" /&gt;&lt;/p&gt;
&lt;p&gt;* If the PDK is connected to a USB-hub, could you try to connect it directly to the computer?&lt;/p&gt;
&lt;p&gt;* Have you connected any external sensors to the PDK ?&lt;/p&gt;
&lt;p&gt;* I see that you have plotted the measurement in Matlab or something similar, did you see the same peaks&amp;nbsp;directly&amp;nbsp;on the&amp;nbsp;Tektronix DMM7510&amp;nbsp;display&amp;nbsp;also?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/thread/147035?ContentTypeID=1</link><pubDate>Mon, 03 Sep 2018 16:11:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12ada9ce-95bc-4efe-adcb-bcfad6ced9fe</guid><dc:creator>Sylvain</dc:creator><description>&lt;p&gt;I will check to post the main.c, but uncomfortable because it is part of a whole project. I don&amp;#39;t know if it&amp;#39;ll work.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7077.main-_2D00_-Copy.c"&gt;devzone.nordicsemi.com/.../7077.main-_2D00_-Copy.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;- I used a USB supply with nRF only switch ON.&lt;br /&gt;- Tektronix DMM7510&lt;br /&gt;- Yes I measure the current through P22&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/thread/147033?ContentTypeID=1</link><pubDate>Mon, 03 Sep 2018 15:42:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3014964-49c8-4ebf-9f38-f0b74c368fb5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you post the whole main.c file ?&lt;/p&gt;
&lt;p&gt;How are you powering the board? USB or external supply?&lt;/p&gt;
&lt;p&gt;What device are you using to measure the current?&lt;/p&gt;
&lt;p&gt;Are you measuring on P22? Could you&amp;nbsp;&lt;span&gt;cut the PCB track shorting solder bridge&amp;nbsp;&lt;/span&gt;&lt;span class="keyword pcb"&gt;SB40 and SB41 ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/thread/146956?ContentTypeID=1</link><pubDate>Mon, 03 Sep 2018 11:41:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:459077fe-c111-4e41-ad77-1801a4ace541</guid><dc:creator>Sylvain</dc:creator><description>&lt;p&gt;This is a broadcaster so there&amp;#39;re no connection.&lt;/p&gt;
&lt;p&gt;Yes, same result with beacon example. In fact, I use the same principle ...&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the basic test code :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void advertising_init(void){
    uint32_t      err_code;
    int8_t tx_power = 0;
    ble_gap_conn_sec_mode_t sec_mode;
    
    ble_advdata_manuf_data_t manuf_specific_data;
    ble_advdata_t advdata;
    
    BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;sec_mode);
    err_code = sd_ble_gap_device_name_set(&amp;amp;sec_mode,
                                          (const uint8_t *) DEVICE_NAME,
                                          strlen(DEVICE_NAME));
    APP_ERROR_CHECK(err_code);

    err_code = sd_ble_gap_tx_power_set(tx_power);//Set the radio&amp;#39;s transmit power in dBm.
        
    sd_power_dcdc_mode_set(1);
    
    manuf_specific_data.company_identifier = APP_COMPANY_IDENTIFIER;
    manuf_specific_data.data.p_data = (uint8_t *) BLE_data;
    manuf_specific_data.data.size   = sizeof(BLE_data);

    // Build and set advertising data.
    memset(&amp;amp;advdata, 0, sizeof(advdata));

    advdata.name_type             = BLE_ADVDATA_FULL_NAME;
    //advdata.short_name_len        = strlen(DEVICE_NAME)-3;
    advdata.flags                 = BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED;
    advdata.p_manuf_specific_data = &amp;amp;manuf_specific_data;

    err_code = ble_advdata_set(&amp;amp;advdata, NULL);
    APP_ERROR_CHECK(err_code);
    // Initialize advertising parameters (used when starting advertising).
    memset(&amp;amp;m_adv_params, 0, sizeof(m_adv_params));

    m_adv_params.type            = BLE_GAP_ADV_TYPE_ADV_NONCONN_IND;//BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED;//
    m_adv_params.p_peer_addr     = NULL;    // Undirected advertisement.
    m_adv_params.fp              = BLE_GAP_ADV_FP_ANY;
    m_adv_params.interval        = NON_CONNECTABLE_ADV_INTERVAL;
    m_adv_params.timeout         = 0;       // Never time out.
}

/**@brief Function for initializing the BLE stack.
 *
 * @details Initializes the SoftDevice and the BLE event interrupt.
 */
static void ble_stack_init(void){

    ret_code_t err_code;

    err_code = nrf_sdh_enable_request();
    APP_ERROR_CHECK(err_code);

    // Configure the BLE stack using the default settings.
    // Fetch the start address of the application RAM.
    uint32_t ram_start = 0;
    err_code = nrf_sdh_ble_default_cfg_set(APP_BLE_CONN_CFG_TAG, &amp;amp;ram_start);
    APP_ERROR_CHECK(err_code);

    // Enable BLE stack.
    err_code = nrf_sdh_ble_enable(&amp;amp;ram_start);
    APP_ERROR_CHECK(err_code);
}

static void advertising_start(void){
    ret_code_t err_code;

    err_code = sd_ble_gap_adv_start(&amp;amp;m_adv_params, APP_BLE_CONN_CFG_TAG);
    APP_ERROR_CHECK(err_code);
}

int main(void)
{    
  
  ble_stack_init();
  advertising_init();
  advertising_start();

while (1){
    
            power_manage();
    }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/thread/146809?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 14:30:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81b0ddf6-d113-405d-89b8-e56adc909ec6</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;It looks like spikes casued by interrupts.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you able to connect to the device with a BLE central?&lt;/p&gt;
[quote]I use my own code.[/quote]
&lt;p&gt;&amp;nbsp;Do you see the same spikes with the BLE SDK examples?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/thread/146521?ContentTypeID=1</link><pubDate>Thu, 30 Aug 2018 13:05:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d50495d2-bf0a-4ad8-8433-c594f2faf4f3</guid><dc:creator>Sylvain</dc:creator><description>&lt;p&gt;I use my own code.&lt;br /&gt;&lt;br /&gt;I simply configure the Advertising and then advertise each second. On infinite loop side I use the power_manage(); function to manage the power. That&amp;#39;s all.&lt;br /&gt;&lt;br /&gt;Is it possible that when the MCU is in System On mode it performs a refresh memory ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/thread/146513?ContentTypeID=1</link><pubDate>Thu, 30 Aug 2018 12:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99b049c1-8f9c-4d1f-8450-f4e2494b1dba</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Ok, I understand. These other peaks at around 3-4 mA could be some interrupt that is triggered, the CPU will then wake up, and then go back to idle mode again after the interrupt has been served.&lt;/p&gt;
&lt;p&gt;What example in the SDK are you testing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/thread/146497?ContentTypeID=1</link><pubDate>Thu, 30 Aug 2018 12:00:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3471a5c6-96a6-444e-8833-ec7669069e9b</guid><dc:creator>Sylvain</dc:creator><description>&lt;p&gt;Sigurd,&lt;/p&gt;
&lt;p&gt;I know how the System ON mode and how the advertising work. You don&amp;#39;t answer my question. Maybe it was not clear. So, my question is about the peak that occur when my mcu is in System On mode. So, I talk about the peaks after the data transmission. In resume, why I measure peaks between 31.5 and 31.88 s and also 32.2 and 32.5 (MCU is in System On mode between these intervals).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peak current when the nRF52 is in the SYSTEM ON mode</title><link>https://devzone.nordicsemi.com/thread/146486?ContentTypeID=1</link><pubDate>Thu, 30 Aug 2018 11:05:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1da0d0b4-e492-46b9-b361-bdb4a8adddcf</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SoftDevice will&amp;nbsp;continue to advertise in System ON mode. You can read more about System ON mode &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52840.ps/power.html?cp=2_0_0_4_2_3#unique_1815669492"&gt;here.&lt;/a&gt; What you see in the plot is first the&amp;nbsp;pre-processing and&amp;nbsp;&lt;span&gt;HFXO ramp, then you have 3 radio TX peaks when you advertise on the 3&amp;nbsp;advertising channels. You can also see this using our&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/power/"&gt;Online Power Profiler&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>