<?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>After power turn off and on. Chip is not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53551/after-power-turn-off-and-on-chip-is-not-working</link><description>Hi 
 I made a custom board. (using nrRF52832) 
 At frist, I tested my code on 52DK(PCCA10040). It is worked. 
 And then I tested my code on custom board. I changed my code in &amp;lt;sdk_config.h&amp;gt;. Because my custom board haven`t optional 32kHz crystal. 
 /</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Nov 2019 06:59:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53551/after-power-turn-off-and-on-chip-is-not-working" /><item><title>RE: After power turn off and on. Chip is not working</title><link>https://devzone.nordicsemi.com/thread/218134?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 06:59:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4f53fea-3184-4a64-bdfe-080a4405322c</guid><dc:creator>Seng ju Han</dc:creator><description>&lt;p&gt;Hi, Simon&lt;/p&gt;
&lt;p&gt;I found a error. but I don`t know why don`t work the sensor.&lt;/p&gt;
&lt;p&gt;I write the delay 1ms after mpu_init. (Code of mpu_setup)&lt;/p&gt;
&lt;p&gt;It works. :)&lt;/p&gt;
&lt;p&gt;I think that sending sensor values need more time after the sensor initialized.&lt;/p&gt;
&lt;p&gt;Thank you for your help. Simon.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Han&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After power turn off and on. Chip is not working</title><link>https://devzone.nordicsemi.com/thread/217742?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 11:56:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d949941f-4d8d-4a11-a0da-3e7678f40ba6</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;[quote user="Seng ju Han"][/quote]&lt;/p&gt;
&lt;p&gt;I tested the board.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;I turn off the board. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The nRF connect on my cell phone has disappeared advertising.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This makes it seem like your application works when the DK is running, which suggests that it is the DK running the application and not the module. Can you please specify, as I&amp;#39;m not sure I understand what you mean.&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: After power turn off and on. Chip is not working</title><link>https://devzone.nordicsemi.com/thread/217686?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 08:29:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c70b9da-cc2e-4c4f-944b-37c16ab8f95a</guid><dc:creator>Seng ju Han</dc:creator><description>&lt;p&gt;Hi Simon.&lt;/p&gt;
&lt;p&gt;I tested the board.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;I turn off the board. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The nRF connect on my cell phone has disappeared advertising.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;I don&amp;#39;t think it&amp;#39;s a matter of communication.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Maybe...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you happen to solve the problem, I&amp;#39;ll leave a reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;First. Let me check the layout again to see if there are any problems with the hardware.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Of course, it&amp;#39;s more likely that there&amp;#39;s no problem with the circuit. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you ever thought about any other possibilities?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Han&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After power turn off and on. Chip is not working</title><link>https://devzone.nordicsemi.com/thread/217459?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 08:51:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:328e749f-7a5f-47ef-99ef-78df0b5844ab</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Han&lt;/p&gt;
&lt;p&gt;Thank you, the advertising_init() and advertising_start() functions were what I wanted to see. I don&amp;#39;t see any issues with your advertising, so that&amp;#39;s not it. Could it be that the reason it works while you debug is that the DK is the board that is advertising, and not the module? Can you check if you see the advertisement when powering the board and not the module? It should be easy to determine if the DK is the one advertising by checking the RSSI value of it in the nRFConnect app when you bring it closer to/further away from the phone.&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: After power turn off and on. Chip is not working</title><link>https://devzone.nordicsemi.com/thread/217413?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 00:25:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b975b8a7-799a-4cfa-808b-537560aadc23</guid><dc:creator>Seng ju Han</dc:creator><description>&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;span&gt;Hi&lt;/span&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;span&gt;First,&amp;nbsp;&lt;/span&gt;&lt;span&gt;I&amp;#39;m sorry for using the expression &amp;quot;it doesn`t matter&amp;quot; to exclude the answer to check the connection of the mpu6050 from my custom board.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;The&amp;nbsp;sensor&amp;nbsp;is working. I succeeded in getting data through the line in the&amp;nbsp;sensor of the custom board in Arduino.&lt;/span&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;span&gt;I don`t know how to &amp;quot;Also, if you could post a snippet showing the advertising initialization that would be great!&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;span&gt;If it is related to &amp;quot;advertising_init&amp;quot; and &amp;quot;advertising_star&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
uint32_t ble_advertising_init(ble_advertising_t * const p_advertising,
ble_advertising_init_t const * const p_init)
   {
uint32_t ret;
if ((p_init == NULL) || (p_advertising == NULL))
   {
        return NRF_ERROR_NULL;
   }

p_advertising-&amp;gt;initialized = true;
p_advertising-&amp;gt;adv_mode_current = BLE_ADV_MODE_IDLE;
p_advertising-&amp;gt;adv_modes_config = p_init-&amp;gt;config;
p_advertising-&amp;gt;conn_cfg_tag = BLE_CONN_CFG_TAG_DEFAULT;
p_advertising-&amp;gt;evt_handler = p_init-&amp;gt;evt_handler;
p_advertising-&amp;gt;error_handler = p_init-&amp;gt;error_handler;
p_advertising-&amp;gt;current_slave_link_conn_handle = BLE_CONN_HANDLE_INVALID;

memset(&amp;amp;p_advertising-&amp;gt;peer_address, 0, sizeof(p_advertising-&amp;gt;peer_address));
memset(&amp;amp;p_advertising-&amp;gt;advdata, 0, sizeof(p_advertising-&amp;gt;advdata));

// Copy advertising data.
p_advertising-&amp;gt;advdata.name_type = p_init-&amp;gt;advdata.name_type;
p_advertising-&amp;gt;advdata.include_appearance = p_init-&amp;gt;advdata.include_appearance;
p_advertising-&amp;gt;advdata.flags = p_init-&amp;gt;advdata.flags;
p_advertising-&amp;gt;advdata.short_name_len = p_init-&amp;gt;advdata.short_name_len;

p_advertising-&amp;gt;advdata.uuids_complete = p_init-&amp;gt;advdata.uuids_complete;
p_advertising-&amp;gt;advdata.uuids_more_available = p_init-&amp;gt;advdata.uuids_more_available;
p_advertising-&amp;gt;advdata.uuids_solicited = p_init-&amp;gt;advdata.uuids_solicited;
p_advertising-&amp;gt;advdata.include_ble_device_addr = p_init-&amp;gt;advdata.include_ble_device_addr;

if (p_init-&amp;gt;advdata.p_manuf_specific_data != NULL)
{
p_advertising-&amp;gt;advdata.p_manuf_specific_data = &amp;amp;(p_advertising-&amp;gt;manuf_specific_data);
p_advertising-&amp;gt;manuf_specific_data.data.p_data = p_advertising-&amp;gt;manuf_data_array;
p_advertising-&amp;gt;advdata.p_manuf_specific_data-&amp;gt;company_identifier =
p_init-&amp;gt;advdata.p_manuf_specific_data-&amp;gt;company_identifier;
p_advertising-&amp;gt;advdata.p_manuf_specific_data-&amp;gt;data.size = p_init-&amp;gt;advdata.p_manuf_specific_data-&amp;gt;data.size;

for (uint32_t i = 0; i &amp;lt; p_advertising-&amp;gt;advdata.p_manuf_specific_data-&amp;gt;data.size; i++)
{
p_advertising-&amp;gt;manuf_data_array[i] = p_init-&amp;gt;advdata.p_manuf_specific_data-&amp;gt;data.p_data[i];
}
}

if (p_init-&amp;gt;advdata.p_service_data_array != NULL)
{
p_advertising-&amp;gt;service_data.data.p_data = p_advertising-&amp;gt;service_data_array;
p_advertising-&amp;gt;advdata.p_service_data_array = &amp;amp;(p_advertising-&amp;gt;service_data);
p_advertising-&amp;gt;advdata.p_service_data_array-&amp;gt;data.p_data = p_advertising-&amp;gt;service_data_array;
p_advertising-&amp;gt;advdata.p_service_data_array-&amp;gt;data.size = p_init-&amp;gt;advdata.p_service_data_array-&amp;gt;data.size;
p_advertising-&amp;gt;advdata.p_service_data_array-&amp;gt;service_uuid = p_init-&amp;gt;advdata.p_service_data_array-&amp;gt;service_uuid;

for (uint32_t i = 0; i &amp;lt; p_advertising-&amp;gt;advdata.p_service_data_array-&amp;gt;data.size; i++)
{
p_advertising-&amp;gt;service_data_array[i] = p_init-&amp;gt;advdata.p_service_data_array-&amp;gt;data.p_data[i];
}

p_advertising-&amp;gt;advdata.service_data_count = p_init-&amp;gt;advdata.service_data_count;
}

if (p_init-&amp;gt;advdata.p_slave_conn_int != NULL)
{
p_advertising-&amp;gt;advdata.p_slave_conn_int = &amp;amp;(p_advertising-&amp;gt;slave_conn_int);
p_advertising-&amp;gt;advdata.p_slave_conn_int-&amp;gt;max_conn_interval = p_init-&amp;gt;advdata.p_slave_conn_int-&amp;gt;max_conn_interval;
p_advertising-&amp;gt;advdata.p_slave_conn_int-&amp;gt;min_conn_interval = p_init-&amp;gt;advdata.p_slave_conn_int-&amp;gt;min_conn_interval;
}

if (p_init-&amp;gt;advdata.p_tx_power_level != NULL)
{
p_advertising-&amp;gt;advdata.p_tx_power_level = p_init-&amp;gt;advdata.p_tx_power_level;
}

#if (NRF_SD_BLE_API_VERSION &amp;lt;= 2)
for (int i = 0; i &amp;lt;BLE_GAP_WHITELIST_ADDR_MAX_COUNT ; i++)
{
p_advertising-&amp;gt;whitelist.pp_addrs[i] = &amp;amp;p_advertising-&amp;gt;whitelist_addrs[i];
}

for (int i = 0; i &amp;lt;BLE_GAP_WHITELIST_IRK_MAX_COUNT ; i++)
{
p_advertising-&amp;gt;whitelist.pp_irks[i] = &amp;amp;p_advertising-&amp;gt;whitelist_irks[i];
}
#endif
ret = ble_advdata_set(&amp;amp;(p_advertising-&amp;gt;advdata), &amp;amp;(p_init-&amp;gt;srdata));
return ret;
}


uint32_t ble_advertising_start(ble_advertising_t * const p_advertising,
ble_adv_mode_t advertising_mode)
{
uint32_t ret;
ble_gap_adv_params_t adv_params;

if (p_advertising-&amp;gt;initialized == false)
{
return NRF_ERROR_INVALID_STATE;
}

p_advertising-&amp;gt;adv_mode_current = advertising_mode;

// Delay starting advertising until the flash operations are complete.
if (flash_access_in_progress())
{
p_advertising-&amp;gt;advertising_start_pending = true;
return NRF_SUCCESS;
}

memset(&amp;amp;p_advertising-&amp;gt;peer_address, 0, sizeof(p_advertising-&amp;gt;peer_address));

if ( ((p_advertising-&amp;gt;adv_modes_config.ble_adv_directed_enabled) &amp;amp;&amp;amp; (p_advertising-&amp;gt;adv_mode_current == BLE_ADV_MODE_DIRECTED))
||((p_advertising-&amp;gt;adv_modes_config.ble_adv_directed_slow_enabled) &amp;amp;&amp;amp; (p_advertising-&amp;gt;adv_mode_current == BLE_ADV_MODE_DIRECTED))
||((p_advertising-&amp;gt;adv_modes_config.ble_adv_directed_slow_enabled) &amp;amp;&amp;amp; (p_advertising-&amp;gt;adv_mode_current == BLE_ADV_MODE_DIRECTED_SLOW))
)
{
if (p_advertising-&amp;gt;evt_handler != NULL)
{
p_advertising-&amp;gt;peer_addr_reply_expected = true;
p_advertising-&amp;gt;evt_handler(BLE_ADV_EVT_PEER_ADDR_REQUEST);
}
else
{
p_advertising-&amp;gt;peer_addr_reply_expected = false;
}
}

p_advertising-&amp;gt;adv_mode_current = adv_mode_next_avail_get(p_advertising, advertising_mode);

// Fetch the whitelist.
if ((p_advertising-&amp;gt;evt_handler != NULL) &amp;amp;&amp;amp;
(p_advertising-&amp;gt;adv_mode_current == BLE_ADV_MODE_FAST || p_advertising-&amp;gt;adv_mode_current == BLE_ADV_MODE_SLOW) &amp;amp;&amp;amp;
(p_advertising-&amp;gt;adv_modes_config.ble_adv_whitelist_enabled) &amp;amp;&amp;amp;
(!p_advertising-&amp;gt;whitelist_temporarily_disabled))
{
#if (NRF_SD_BLE_API_VERSION &amp;gt;= 3)
p_advertising-&amp;gt;whitelist_in_use = false;
#endif
p_advertising-&amp;gt;whitelist_reply_expected = true;
p_advertising-&amp;gt;evt_handler(BLE_ADV_EVT_WHITELIST_REQUEST);
}
else
{
p_advertising-&amp;gt;whitelist_reply_expected = false;
}

// Initialize advertising parameters with default values.
memset(&amp;amp;adv_params, 0, sizeof(adv_params));

adv_params.type = BLE_GAP_ADV_TYPE_ADV_IND;
adv_params.fp = BLE_GAP_ADV_FP_ANY;

// Set advertising parameters and events according to selected advertising mode.
switch (p_advertising-&amp;gt;adv_mode_current)
{
case BLE_ADV_MODE_DIRECTED:
ret = set_adv_mode_directed(p_advertising, &amp;amp;adv_params);
break;

case BLE_ADV_MODE_DIRECTED_SLOW:
ret = set_adv_mode_directed_slow(p_advertising, &amp;amp;adv_params);
break;

case BLE_ADV_MODE_FAST:
ret = set_adv_mode_fast(p_advertising, &amp;amp;adv_params);
break;

case BLE_ADV_MODE_SLOW:
ret = set_adv_mode_slow(p_advertising, &amp;amp;adv_params);
break;

case BLE_ADV_MODE_IDLE:
p_advertising-&amp;gt;adv_evt = BLE_ADV_EVT_IDLE;
break;

default:
break;
}

if (p_advertising-&amp;gt;adv_mode_current != BLE_ADV_MODE_IDLE)
{
ret = sd_ble_gap_adv_start(&amp;amp;adv_params, p_advertising-&amp;gt;conn_cfg_tag);
if (ret != NRF_SUCCESS)
{
return ret;
}
}

if (p_advertising-&amp;gt;evt_handler != NULL)
{
p_advertising-&amp;gt;evt_handler(p_advertising-&amp;gt;adv_evt);
}

return NRF_SUCCESS;
} 
&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;OR?&amp;nbsp;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void advertising_init(void)
{
    ret_code_t             err_code;
    ble_advertising_init_t init;

    memset(&amp;amp;init, 0, sizeof(init));

    init.advdata.name_type               = BLE_ADVDATA_FULL_NAME;
    init.advdata.include_appearance      = true;
    init.advdata.flags                   = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
    init.advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
    init.advdata.uuids_complete.p_uuids  = m_adv_uuids;

    init.config.ble_adv_fast_enabled  = true;
    init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;
    init.config.ble_adv_fast_timeout  = APP_ADV_TIMEOUT_IN_SECONDS;

    init.evt_handler = on_adv_evt;

    err_code = ble_advertising_init(&amp;amp;m_advertising, &amp;amp;init);
    APP_ERROR_CHECK(err_code);

    ble_advertising_conn_cfg_tag_set(&amp;amp;m_advertising, APP_BLE_CONN_CFG_TAG);
    
    
    
    
static void advertising_start(bool erase_bonds)
{
    if (erase_bonds == true)
    {
        delete_bonds();
        // Advertising is started by PM_EVT_PEERS_DELETED_SUCEEDED evetnt
    }
    else
    {
        ret_code_t err_code = ble_advertising_start(&amp;amp;m_advertising, BLE_ADV_MODE_FAST);

        APP_ERROR_CHECK(err_code);
    }
}
}&lt;/pre&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;I`m right?&amp;nbsp;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;span&gt;I hope that&amp;#39;s the answer you want.&lt;/span&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;Today as well, Thank you for reply.&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;Best regards,&amp;nbsp;&lt;/div&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;Han&amp;nbsp;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After power turn off and on. Chip is not working</title><link>https://devzone.nordicsemi.com/thread/217356?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 14:19:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f71b32b-5918-4f90-a379-6110577d6571</guid><dc:creator>Simonr</dc:creator><description>[quote user="Seng ju Han"]However, when debugging, it doesn&amp;#39;t matter.[/quote]
&lt;p&gt;&amp;nbsp;What do you mean that it &amp;quot;doesn&amp;#39;t matter&amp;quot;? Does the application skip it, or what. Please clarify. Also, if you could post a snippet showing the advertising initialization that would be great!&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: After power turn off and on. Chip is not working</title><link>https://devzone.nordicsemi.com/thread/217307?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 11:58:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eefa693f-4bb7-4998-8557-45f4b0e73f23</guid><dc:creator>Seng ju Han</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(void)
{
bool erase_bonds;

// Initialize.

timers_init();

ble_stack_init();
gap_params_init();
gatt_init();
advertising_init();
services_init();
conn_params_init();
peer_manager_init();
mpu_setup();


advertising_start(erase_bonds);

sum_values_t sum_values;

// Enter main loop.
for (;;)
  {
 &amp;#160; &amp;#160;  if (NRF_LOG_PROCESS() == false)
 &amp;#160; &amp;#160; &amp;#160; &amp;#160; {
 &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  power_manage();
 &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  if(start_accel_update_flag == true)
 &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  {

 &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  mpu_read_sum(&amp;amp;sum_values);
 &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  ble_mpu_update(&amp;amp;m_mpu, &amp;amp;sum_values);


 &amp;#160; &amp;#160; &amp;#160; &amp;#160;        start_accel_update_flag = false;

 &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  }
 &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; }
   }
}

&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the middle, there is a part that initializes mpu6050. However, when debugging, it doesn&amp;#39;t matter.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After power turn off and on. Chip is not working</title><link>https://devzone.nordicsemi.com/thread/216988?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 07:22:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb3c907a-8090-42b3-a8bd-b7762d85741b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, so there&amp;#39;s definitely your project code that is causing this. Can you upload a snippet of where in your code you do advertising initialization and where you start advertising?&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: After power turn off and on. Chip is not working</title><link>https://devzone.nordicsemi.com/thread/216782?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2019 09:10:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a72f4dd-c852-4b27-b016-86a3c3b72118</guid><dc:creator>Seng ju Han</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I used this power supply.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5670.key.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;I tested 52DK board. (sdk v15.3 ble_app_blink_pca_s132)&lt;/p&gt;
&lt;p&gt;after Debug -&amp;gt; It is works.&lt;/p&gt;
&lt;p&gt;and dk board turn off and connect p21 to power supply. -&amp;gt; it is works.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but my code .... I tested 52Dk board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;after Debug -&amp;gt; it is works.&lt;/p&gt;
&lt;p&gt;board turn off and connect p21 to power supply -&amp;gt; it is not working&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I think my code is wrong...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The last changes code is data structure.&lt;/p&gt;
&lt;div class="rwd_box___1ysJh"&gt;
&lt;div class="translate_area___3xdxa"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="rwd_box___1ysJh"&gt;
&lt;div class="translate_area___3xdxa translate_result___21ZBH mo_show___GaMYQ"&gt;
&lt;div class="edit_area___2iv-G" id="targetEditArea"&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL" id="txtTarget"&gt;&lt;span&gt;It doesn&amp;#39;t mean much.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;typedef&lt;br /&gt;{ &lt;br /&gt; int16_t accel_x;&lt;br /&gt; int16_t accel_y;&lt;br /&gt; int16_t accel_z;&lt;br /&gt; int16_t gyro_x;&lt;br /&gt; int16_t gyro_y;&lt;br /&gt; int16_t gyro_z;&lt;/p&gt;
&lt;p&gt;}sum_value_t&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;-&amp;gt; change&lt;/p&gt;
&lt;p&gt;typedef&lt;br /&gt;{ &lt;br /&gt; int16_t gyro_z;&lt;br /&gt; int16_t gyro_y;&lt;br /&gt; int16_t gyro_x;&lt;br /&gt; int16_t accel_z;&lt;br /&gt; int16_t accel_y;&lt;br /&gt; int16_t accel_x;&lt;br /&gt;}sum_value_t&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I connected custom board -&amp;gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/picture.jpg" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/picture2.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;ps.&amp;nbsp;I disconnected with computer to Dk board for photo.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regard,&lt;/p&gt;
&lt;p&gt;Han&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After power turn off and on. Chip is not working</title><link>https://devzone.nordicsemi.com/thread/216726?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2019 06:15:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13fd2a32-acf2-4c07-9091-8ece89348219</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;These settings seem correct. What were the last changes you made to your application code? There must have been something that causes the devices to not work with the power supply. Also, what exactly is this power supply, and how do you connect it to the custom boards? Are you able to power your DK with this power supply using the External supply pins on header P21?&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: After power turn off and on. Chip is not working</title><link>https://devzone.nordicsemi.com/thread/216597?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 11:41:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7c33dae-939c-4ff1-95ed-803c68c8e5e0</guid><dc:creator>Seng ju Han</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;#define CLOCK_CONFIG_LF_SRC 0&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve already done it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The following is a difference in configuration.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Debug&amp;nbsp;&lt;span&gt;configuration&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;BOARD_PCA10040;CONFIG_GPIO_AS_PINRESET;FLOAT_ABI_HARD;INITIALIZE_USER_SECTIONS;NO_VTOR_CONFIG;NRF52;NRF52832_XXAA;NRF52_PAN_74;NRF_SD_BLE_API_VERSION=5;S132;SOFTDEVICE_PRESENT;MPU_USES_TWI;MPU60x0&amp;quot; from project in Common configuration&lt;br /&gt;&amp;quot;DEBUG; DEBUG_NRF&amp;quot; from solution in Debug configuration&lt;/p&gt;
&lt;p&gt;Release&amp;nbsp;&lt;span&gt;configuration&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;BOARD_PCA10040;CONFIG_GPIO_AS_PINRESET;FLOAT_ABI_HARD;INITIALIZE_USER_SECTIONS;NO_VTOR_CONFIG;NRF52;NRF52832_XXAA;NRF52_PAN_74;NRF_SD_BLE_API_VERSION=5;S132;SOFTDEVICE_PRESENT;MPU_USES_TWI;MPU60x0&amp;quot; from project in Common configuration&lt;br /&gt;&amp;quot;NDEBUG&amp;quot; from solution in Release configuration&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Debugging level&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Debug configuration- &amp;gt; Debugging level 3&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Release &lt;span&gt;configuration&lt;/span&gt;- &amp;gt; Debugging level&amp;nbsp; None&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Optimization level&lt;/p&gt;
&lt;p&gt;Debug configuration- &amp;gt; None&lt;/p&gt;
&lt;p&gt;Release&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;configuration&lt;/span&gt;- &amp;gt;&amp;nbsp;Optimize For Size&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How should I change it?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and I don`t understand pre-processor flags.. I cann`t find it .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I was really frustrated, but I&amp;#39;m glad I could talk about this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for leaving me a reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Han&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After power turn off and on. Chip is not working</title><link>https://devzone.nordicsemi.com/thread/216537?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 09:03:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d539aaf5-e016-4f97-9249-d0616e296b8b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;For SDK v.14.2, please change #define CLOCK_CONFIG_LF_SRC to 0 in your sdk_config.h file and see if that helps. You can also try comparing the Release and Debug configuration in SES to see if there are any differences apart from optimization level and pre-processor flags, also, check if the flash_placement.xml file is the same for Release and Debug.&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: After power turn off and on. Chip is not working</title><link>https://devzone.nordicsemi.com/thread/216465?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 00:01:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6377f11c-b443-4571-b509-7e6965ea905a</guid><dc:creator>Seng ju Han</dc:creator><description>&lt;p&gt;Hi Simon.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I used SDK v.14.2 .&amp;nbsp;When I use version 15.3, I will consider your advice.&lt;/p&gt;
&lt;p&gt;Thank you Simon. But&amp;nbsp;&lt;span&gt;I haven&amp;#39;t solved it yet.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Han&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After power turn off and on. Chip is not working</title><link>https://devzone.nordicsemi.com/thread/216305?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 08:41:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:821c408e-9689-46bd-8c7f-6f3796888884</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What SDK version are you using? Assuming you&amp;#39;re using SDK v.15.3.0, please change the following defines in your sdk_config file to the following:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NRFX_CLOCK_CONFIG_LF_SRC 0

#define CLOCK_CONFIG_LF_SRC 0

#define CLOCK_CONFIG_LF_CAL_ENABLED 1&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>