<?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>nRF52840 PHY CODED</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38166/nrf52840-phy-coded</link><description>I installed the nRF5_SDK_15.1.0 compiled and ran the ble_app_att_mtu-throughput example. 
 The first run was using the default settings all went as expected. For the second test I set the phy to coded. When I typed run I saw the connection request messages</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Sep 2018 07:32:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38166/nrf52840-phy-coded" /><item><title>RE: nRF52840 PHY CODED</title><link>https://devzone.nordicsemi.com/thread/147932?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 07:32:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65267a2a-bc15-49c7-aa3b-4867402287da</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Running the below function on our side did not give any errors , Make sure the rest of the uninitialized parameters does not contain random value.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void advertising_data_set(void)
{
    ret_code_t ret;

    ble_gap_adv_params_t const adv_params =
    {
        .properties    =
        {
          .type = BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED,
        },
        .p_peer_addr   = NULL,
        .filter_policy = BLE_GAP_ADV_FP_ANY,
        .interval      = ADV_INTERVAL,
        .duration      = 0,

        .primary_phy   = BLE_GAP_PHY_1MBPS, // Must be changed to connect in long range. (BLE_GAP_PHY_CODED)
        .secondary_phy = BLE_GAP_PHY_1MBPS,
    };

    ble_advdata_t const adv_data =
    {
        .name_type          = BLE_ADVDATA_FULL_NAME,
        .flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE,
        .include_appearance = false,
    };

    ret = ble_advdata_encode(&amp;amp;adv_data, m_adv_data.adv_data.p_data, &amp;amp;m_adv_data.adv_data.len);
    APP_ERROR_CHECK(ret);

    ret = sd_ble_gap_adv_set_configure(&amp;amp;m_adv_handle, &amp;amp;m_adv_data, &amp;amp;adv_params);
    APP_ERROR_CHECK(ret);
}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 PHY CODED</title><link>https://devzone.nordicsemi.com/thread/147784?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 11:38:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffe315f9-861c-4fb5-acd7-001f709f829f</guid><dc:creator>Jeff Seaman</dc:creator><description>&lt;p&gt;Hi Aryan&lt;/p&gt;
&lt;p&gt;I did as you suggested&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;adv_params.primary_phy = BLE_GAP_PHY_CODED; // BLE_GAP_PHY_1MBPS;&lt;br /&gt; adv_params.duration = APP_ADV_DURATION;&lt;br /&gt; adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED; //BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED;&lt;br /&gt; adv_params.p_peer_addr = NULL;&lt;br /&gt; adv_params.filter_policy = BLE_GAP_ADV_FP_ANY;&lt;br /&gt; adv_params.interval = APP_ADV_INTERVAL;&lt;/p&gt;
&lt;p&gt;err_code = sd_ble_gap_adv_set_configure(&amp;amp;m_adv_handle, &amp;amp;m_adv_data, &amp;amp;adv_params);&lt;br /&gt; NRF_LOG_INFO(&amp;quot;err_code = %d&amp;quot;, err_code);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;to look at the error code&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: err_code = 7&lt;br /&gt;&amp;lt;error&amp;gt; app: Fatal error&lt;/p&gt;
&lt;p&gt;and looking up error code 7 I find&lt;/p&gt;
&lt;p&gt;#define NRF_ERROR_INVALID_PARAM&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(NRF_ERROR_BASE_NUM + 7)&amp;nbsp; ///&amp;lt; Invalid Parameter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 PHY CODED</title><link>https://devzone.nordicsemi.com/thread/147333?ContentTypeID=1</link><pubDate>Wed, 05 Sep 2018 09:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62109e29-6eee-4b35-b5fb-de6c69d0230b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Please start the application in the debugger and step through to code&amp;nbsp;by putting a breakpoint in app_error_handler function.&lt;/p&gt;
&lt;p&gt;You system is restarting due to some APP_ERROR_CHECK. failure. You should find which check failed by debugging as mentioned above and fix the function parameters that caused it to return error. When a function returns error then the line APP_ERROR_CHECK(err_code) will reset your device when not in debug mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>