<?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>Work with Softdevice and RTC with internal RC oscillator on nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51176/work-with-softdevice-and-rtc-with-internal-rc-oscillator-on-nrf52832</link><description>Hi, 
 I need to run RTC simultaneously with Softdevice without external low frequency clock source (32.768kHz oscillator). 
 I used following settings to setup RTC, 
 RTC_ENABLED 1 RTC2_ENABLED 1 NRFX_RTC_ENABLED 1 NRFX_RTC2_ENABLED 1 NRFX_CLOCK_ENABLED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Aug 2019 03:31:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51176/work-with-softdevice-and-rtc-with-internal-rc-oscillator-on-nrf52832" /><item><title>RE: Work with Softdevice and RTC with internal RC oscillator on nRF52832</title><link>https://devzone.nordicsemi.com/thread/205728?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 03:31:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3888dcf-4b25-4be2-bef3-9612af084dba</guid><dc:creator>Prasad</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;As you suggested I have implemented RTC with SDK v3.2, now I&amp;#39;m able to use use softdevice with RTC without above provisioning issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;In here also I added below libraries to my project,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nrf_drv_clock.c&lt;/li&gt;
&lt;li&gt;nrfx_clock.c&lt;/li&gt;
&lt;li&gt;nrfx_rtc.c&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And used following settings to configure RTC and&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;RTC_ENABLED 1&lt;/li&gt;
&lt;li&gt;RTC2_ENABLED 1&lt;/li&gt;
&lt;li&gt;NRFX_RTC_ENABLED 1&lt;/li&gt;
&lt;li&gt;NRFX_RTC2_ENABLED 1&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Below settings for configure internal RC&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;NRF_SDH_CLOCK_LF_SRC 0&lt;/li&gt;
&lt;li&gt;NRF_SDH_CLOCK_LF_RC_CTIV 16&amp;nbsp;&lt;/li&gt;
&lt;li&gt;NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 0&lt;/li&gt;
&lt;li&gt;NRF_SDH_CLOCK_LF_ACCURACY 1&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank for your&amp;nbsp;to helping me to sort out this matter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Work with Softdevice and RTC with internal RC oscillator on nRF52832</title><link>https://devzone.nordicsemi.com/thread/205590?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 12:12:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:105d9ee1-5d5f-47df-a56c-af1f8801eb50</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m quite lost on what work and what wouldn&amp;#39;t work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please&amp;nbsp;test with SDK v3.2 and start with unmodified example and add the RTC configuration to it and let me know at which step it stopped working. I suspect that it could be related to other bug and you may have the same issue even without the RTC configuration.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please aware that when the softdevice is active the LFCLK is already started you don&amp;#39;t really need to call lfclk_config.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Work with Softdevice and RTC with internal RC oscillator on nRF52832</title><link>https://devzone.nordicsemi.com/thread/205426?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 05:25:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d0db8da-bea3-43c2-91fe-5cd2526314e7</guid><dc:creator>Prasad</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;I comment out the&amp;nbsp;&lt;strong&gt;rtc_config()&amp;nbsp;&lt;/strong&gt;function in &lt;strong&gt;initialize().&amp;nbsp;&lt;/strong&gt;And then try to provision node through app, but it also gave me the same issue.&lt;/p&gt;
&lt;p&gt;And that&amp;nbsp;&lt;strong&gt;lfclk_config()&amp;nbsp;&lt;/strong&gt;function which is in RTC example isn&amp;#39;t used in my mesh example code. Is that a problem.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/lfclk_5F00_config.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;With above lfclk_config function I got mesh assert error&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/lfclk_5F00_config-assert-log.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;But without this &lt;strong&gt;lfclk_config()&amp;nbsp;&lt;/strong&gt;I was able to run timer.&lt;/p&gt;
&lt;p&gt;As you suggested I&amp;#39;ll try to use SDK v3.2&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And this is my main.c file and sdk_config.h file configurations and libraries added as comments.&lt;/p&gt;
&lt;p&gt;Mesh SDK v3.0.0&lt;/p&gt;
&lt;p&gt;nRF5 SDK V15.2.0&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Main.c&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/* 

Added Libraries
nRF_Drivers
    nrf_drv_clock.c
    nrfx_clock.c
    nrfx_rtc.c

RTC Config
RTC_ENABLED 1
RTC2_ENABLED 1
NRFX_RTC_ENABLED 1
NRFX_RTC2_ENABLED 1
NRFX_CLOCK_ENABLED 1
NRF_CLOCK_ENABLED 1

Clock Config 
NRF_SDH_CLOCK_LF_SRC 0                
NRF_SDH_CLOCK_LF_RC_CTIV 16               
NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 0
NRF_SDH_CLOCK_LF_ACCURACY 1                 



The ending &amp;quot;UL&amp;quot; is a way to specify that a constant in C is of type Unsigned Long.

f_RTC [kHz] = 32.768 / (PRESCALER + 1 )


if (PRESCALER = 4095)
    f_RTC = 0.008kHz = 8 Hz


So this run in 8Hz frequency
So 8, 16, 24, 32, 40.... values can compare

if we want to compare 3 seconds we need to 3 * 8 = 24

Read
https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Frtc.html&amp;amp;cp=2_2_0_24_1&amp;amp;anchor=concept_iwc_1mj_sr


 */

#include &amp;lt;stdint.h&amp;gt;
#include &amp;lt;string.h&amp;gt;

/* HAL */
#include &amp;quot;boards.h&amp;quot;
#include &amp;quot;simple_hal.h&amp;quot;
#include &amp;quot;app_timer.h&amp;quot;

/* Core */
#include &amp;quot;nrf_mesh_config_core.h&amp;quot;
#include &amp;quot;nrf_mesh_configure.h&amp;quot;
#include &amp;quot;nrf_mesh.h&amp;quot;
#include &amp;quot;mesh_stack.h&amp;quot;
#include &amp;quot;device_state_manager.h&amp;quot;
#include &amp;quot;access_config.h&amp;quot;
#include &amp;quot;proxy.h&amp;quot;

/* Provisioning and configuration */
#include &amp;quot;mesh_provisionee.h&amp;quot;
#include &amp;quot;mesh_app_utils.h&amp;quot;

/* Models */
#include &amp;quot;generic_onoff_server.h&amp;quot;

/* Logging and RTT */
#include &amp;quot;log.h&amp;quot;
#include &amp;quot;rtt_input.h&amp;quot;

/* Example specific includes */
#include &amp;quot;app_config.h&amp;quot;
#include &amp;quot;example_common.h&amp;quot;
#include &amp;quot;nrf_mesh_config_examples.h&amp;quot;
#include &amp;quot;light_switch_example_common.h&amp;quot;
#include &amp;quot;app_onoff.h&amp;quot;
#include &amp;quot;ble_softdevice_support.h&amp;quot;


/* Newly Added*/
#include &amp;quot;nrf_drv_clock.h&amp;quot;
#include &amp;quot;nrf_drv_rtc.h&amp;quot;

#include &amp;quot;nrf_delay.h&amp;quot;

#define COMPARE_COUNTERTIME  (60UL)        
/* 60UL = 60s     10min = 10*60 = 600s --&amp;gt; 600UL
52min = 52*60 =

*/


#define ONOFF_SERVER_0_LED          (BSP_LED_0)
#define APP_ONOFF_ELEMENT_INDEX     (0)

/*************************************************************************************************/
const nrf_drv_rtc_t rtc = NRF_DRV_RTC_INSTANCE(2); /**&amp;lt; Declaring an instance of nrf_drv_rtc for RTC0. */



/*************************************************************************************************/


static bool m_device_provisioned;

/*************************************************************************************************/
static void app_onoff_server_set_cb(const app_onoff_server_t * p_server, bool onoff);
static void app_onoff_server_get_cb(const app_onoff_server_t * p_server, bool * p_present_onoff);

/* Generic OnOff server structure definition and initialization */
APP_ONOFF_SERVER_DEF(m_onoff_server_0,
                     APP_CONFIG_FORCE_SEGMENTATION,
                     APP_CONFIG_MIC_SIZE,
                     app_onoff_server_set_cb,
                     app_onoff_server_get_cb)

/* Callback for updating the hardware state */
static void app_onoff_server_set_cb(const app_onoff_server_t * p_server, bool onoff)
{
    /* Resolve the server instance here if required, this example uses only 1 instance. */

    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Setting GPIO value: %d\n&amp;quot;, onoff)

    hal_led_pin_set(ONOFF_SERVER_0_LED, onoff);
}

/* Callback for reading the hardware state */
static void app_onoff_server_get_cb(const app_onoff_server_t * p_server, bool * p_present_onoff)
{
    /* Resolve the server instance here if required, this example uses only 1 instance. */

    *p_present_onoff = hal_led_pin_get(ONOFF_SERVER_0_LED);
}

static void app_model_init(void)
{
    /* Instantiate onoff server on element index APP_ONOFF_ELEMENT_INDEX */
    ERROR_CHECK(app_onoff_init(&amp;amp;m_onoff_server_0, APP_ONOFF_ELEMENT_INDEX));
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;App OnOff Model Handle: %d\n&amp;quot;, m_onoff_server_0.server.model_handle);
}

/*************************************************************************************************/

static void node_reset(void)
{
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;----- Node reset  -----\n&amp;quot;);
    hal_led_blink_ms(LEDS_MASK, LED_BLINK_INTERVAL_MS, LED_BLINK_CNT_RESET);
    /* This function may return if there are ongoing flash operations. */
    mesh_stack_device_reset();
}

static void config_server_evt_cb(const config_server_evt_t * p_evt)
{
    if (p_evt-&amp;gt;type == CONFIG_SERVER_EVT_NODE_RESET)
    {
        node_reset();
    }
}

static void button_event_handler(uint32_t button_number)
{
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Button %u pressed\n&amp;quot;, button_number);
    switch (button_number)
    {
        /* Pressing SW1 on the Development Kit will result in LED state to toggle and trigger
        the STATUS message to inform client about the state change. This is a demonstration of
        state change publication due to local event. */
        case 0:
        {
            __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;User action \n&amp;quot;);
            hal_led_pin_set(ONOFF_SERVER_0_LED, !hal_led_pin_get(ONOFF_SERVER_0_LED));
            app_onoff_status_publish(&amp;amp;m_onoff_server_0);
            break;
        }

        case 1:
        {
            __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Timer\n&amp;quot;);
            uint32_t err_code;
            

            //Set compare channel to trigger interrupt after COMPARE_COUNTERTIME seconds
            err_code = nrf_drv_rtc_cc_set(&amp;amp;rtc,0,COMPARE_COUNTERTIME * 8,true);
            APP_ERROR_CHECK(err_code);

            //Power on RTC instance
            nrf_drv_rtc_enable(&amp;amp;rtc);
            break;
        }

        /* Initiate node reset */
        case 3:
        {
            /* Clear all the states to reset the node. */
            if (mesh_stack_is_device_provisioned())
            {
#if MESH_FEATURE_GATT_PROXY_ENABLED
                (void) proxy_stop();
#endif
                mesh_stack_config_clear();
                node_reset();
            }
            else
            {
                __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;The device is unprovisioned. Resetting has no effect.\n&amp;quot;);
            }
            break;
        }

        default:
            break;
    }
}

static void app_rtt_input_handler(int key)
{
    if (key &amp;gt;= &amp;#39;0&amp;#39; &amp;amp;&amp;amp; key &amp;lt;= &amp;#39;4&amp;#39;)
    {
        uint32_t button_number = key - &amp;#39;0&amp;#39;;
        button_event_handler(button_number);
    }
}

static void device_identification_start_cb(uint8_t attention_duration_s)
{
    hal_led_mask_set(LEDS_MASK, false);
    hal_led_blink_ms(BSP_LED_2_MASK  | BSP_LED_3_MASK, 
                     LED_BLINK_ATTENTION_INTERVAL_MS, 
                     LED_BLINK_ATTENTION_COUNT(attention_duration_s));
}

static void provisioning_aborted_cb(void)
{
    hal_led_blink_stop();
}

static void provisioning_complete_cb(void)
{
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Successfully provisioned\n&amp;quot;);

#if MESH_FEATURE_GATT_ENABLED
    /* Restores the application parameters after switching from the Provisioning
     * service to the Proxy  */
    gap_params_init();
    conn_params_init();
#endif

    dsm_local_unicast_address_t node_address;
    dsm_local_unicast_addresses_get(&amp;amp;node_address);
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Node Address: 0x%04x \n&amp;quot;, node_address.address_start);

    hal_led_blink_stop();
    hal_led_mask_set(LEDS_MASK, LED_MASK_STATE_OFF);
    hal_led_blink_ms(LEDS_MASK, LED_BLINK_INTERVAL_MS, LED_BLINK_CNT_PROV);
}

static void models_init_cb(void)
{
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Initializing and adding models\n&amp;quot;);
    app_model_init();
}

static void mesh_init(void)
{
    uint8_t dev_uuid[NRF_MESH_UUID_SIZE];
    uint8_t node_uuid_prefix[NODE_UUID_PREFIX_LEN] = SERVER_NODE_UUID_PREFIX;

    ERROR_CHECK(mesh_app_uuid_gen(dev_uuid, node_uuid_prefix, NODE_UUID_PREFIX_LEN));
    mesh_stack_init_params_t init_params =
    {
        .core.irq_priority       = NRF_MESH_IRQ_PRIORITY_LOWEST,
        .core.lfclksrc           = DEV_BOARD_LF_CLK_CFG,
        .core.p_uuid             = dev_uuid,
        .models.models_init_cb   = models_init_cb,
        .models.config_server_cb = config_server_evt_cb
    };
    ERROR_CHECK(mesh_stack_init(&amp;amp;init_params, &amp;amp;m_device_provisioned));
}

static void lfclk_config(void)
{
    ret_code_t err_code = nrf_drv_clock_init();
    APP_ERROR_CHECK(err_code);
    
    nrf_drv_clock_lfclk_request(NULL);

}

static void rtc_handler(nrf_drv_rtc_int_type_t int_type)
{
    if(int_type == NRF_DRV_RTC_INT_COMPARE0)
    {
        __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;----- RTC Handler -----\n&amp;quot;);
        hal_led_pin_set(BSP_LED_1, true);
        //nrf_delay_ms(2000);
        //hal_led_pin_set(BSP_LED_1, false);
    } 
}

static void rtc_config(void)
{
    uint32_t err_code;
    //Initialize RTC instance
    nrf_drv_rtc_config_t config = NRF_DRV_RTC_DEFAULT_CONFIG;
    config.prescaler = 4095;
    err_code = nrf_drv_rtc_init(&amp;amp;rtc, &amp;amp;config, rtc_handler);
    APP_ERROR_CHECK(err_code);

    nrf_drv_rtc_tick_enable(&amp;amp;rtc, true);
//
//    //Set compare channel to trigger interrupt after COMPARE_COUNTERTIME seconds
//    err_code = nrf_drv_rtc_cc_set(&amp;amp;rtc,0,COMPARE_COUNTERTIME * 8,true);
//    APP_ERROR_CHECK(err_code);
//
//    //Power on RTC instance
//    nrf_drv_rtc_enable(&amp;amp;rtc);
}

static void initialize(void)
{
    __LOG_INIT(LOG_SRC_APP | LOG_SRC_ACCESS | LOG_SRC_BEARER, LOG_LEVEL_INFO, LOG_CALLBACK_DEFAULT);
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;----- BLE Mesh Light Switch Server Demo -----\n&amp;quot;);

    ERROR_CHECK(app_timer_init());
    hal_leds_init();

#if BUTTON_BOARD
    ERROR_CHECK(hal_buttons_init(button_event_handler));
#endif

    ble_stack_init();

#if MESH_FEATURE_GATT_ENABLED
    gap_params_init();
    conn_params_init();
#endif

    mesh_init();
    
//    lfclk_config();
    rtc_config();
    
}

static void start(void)
{
    rtt_input_enable(app_rtt_input_handler, RTT_INPUT_POLL_PERIOD_MS);

    if (!m_device_provisioned)
    {
        static const uint8_t static_auth_data[NRF_MESH_KEY_SIZE] = STATIC_AUTH_DATA;
        mesh_provisionee_start_params_t prov_start_params =
        {
            .p_static_data    = static_auth_data,
            .prov_complete_cb = provisioning_complete_cb,
            .prov_device_identification_start_cb = device_identification_start_cb,
            .prov_device_identification_stop_cb = NULL,
            .prov_abort_cb = provisioning_aborted_cb,
            .p_device_uri = NULL
        };
        ERROR_CHECK(mesh_provisionee_prov_start(&amp;amp;prov_start_params));
    }
    

    const uint8_t *p_uuid = nrf_mesh_configure_device_uuid_get();
    UNUSED_VARIABLE(p_uuid);
    __LOG_XB(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Device UUID &amp;quot;, p_uuid, NRF_MESH_UUID_SIZE);

    ERROR_CHECK(mesh_stack_start());

    hal_led_mask_set(LEDS_MASK, LED_MASK_STATE_OFF);
    hal_led_blink_ms(LEDS_MASK, LED_BLINK_INTERVAL_MS, LED_BLINK_CNT_START);
}

int main(void)
{
    initialize();
    start();

    for (;;)
    {
        (void)sd_app_evt_wait();
    }
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Work with Softdevice and RTC with internal RC oscillator on nRF52832</title><link>https://devzone.nordicsemi.com/thread/205367?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 14:46:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9a89620-9875-4c89-a3ef-775253d5aa1a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Prasad,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This could be related to an issue we had that the softdevice after provisioning wasn&amp;#39;t restarted so that the app couldn&amp;#39;t connect to do configuration. But I&amp;#39;m not sure why it would related to the RTC2. If you don&amp;#39;t start the RTC but only configure it do you see the issue ?&lt;/p&gt;
&lt;p&gt;Could you reproduce the issue with SDK v3.2 ? Could you provide&amp;nbsp;a minimal example that we can test here to reproduce the issue ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Work with Softdevice and RTC with internal RC oscillator on nRF52832</title><link>https://devzone.nordicsemi.com/thread/205161?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 04:27:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:befa22a9-d64d-4f5b-9667-b0c434069eb4</guid><dc:creator>Prasad</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;I have&amp;nbsp;set configurations in&amp;nbsp;&lt;span&gt;sdk_config.h as follow for work with internal RC oscillator.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/sdh-clock-config.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Mesh system works with above settings without RTC configurations.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When provisioning through app following screens appear,&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/send-prove-data.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;After sending provisioning data,&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Disconnecting.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Then it try to find provisioned node,&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6567.scanning.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/discovering.PNG" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After this loading page app go back to main page with following message,&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/initial-config-fail.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;This the Initial Configuration Failed message.&lt;/p&gt;
&lt;p&gt;I tried to follow the steps shown in this page but I was&amp;#39;t able connect to the node that I have try to provision.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6076.log.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;This is the log window through debugger.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So I&amp;#39;m using Mesh SDK 3.0.0&lt;/p&gt;
&lt;p&gt;And I&amp;#39;m try to modify light_switch server example&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using GATT bearer&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Work with Softdevice and RTC with internal RC oscillator on nRF52832</title><link>https://devzone.nordicsemi.com/thread/205110?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 15:07:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:474d99fc-37ec-4239-b1d6-2d43cd578e0c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Prasad,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please be aware that your application and the mesh stack (including softdevice) share the same LFCLK. So if you configure the RTC with internal RC, you would need to make sure you configured the softdevice with the same configuration (NRF_SDH_CLOCK_LF_SRC in sdk_config.h)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you still have the issue, could you please provide :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- The Mesh SDK version you are using&lt;/p&gt;
&lt;p&gt;- Which example you are testing with ? provisioner or provisionee ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Which provisioning bearer you are doing ? ADV bearer or GATT bearer ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Please provide the screenshot of the log when the issues happen. (e.g&amp;nbsp;&lt;strong&gt;Initial Configuration Failed)&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>