<?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>APP_ERROR_CHECK errors</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37334/app_error_check-errors</link><description>Hello! 
 I have been working on a code using ble_app_blinky and try to insert whitelist on it using ble_app_hids_keyboard as reference. After the APP_ERROR_CHECK i get a NRF_BREAKPOINT_COND. 
 ret = pm_whitelist_set(m_whitelist_peers, m_whitelist_peer_cnt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Aug 2018 19:21:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37334/app_error_check-errors" /><item><title>RE: APP_ERROR_CHECK errors</title><link>https://devzone.nordicsemi.com/thread/144238?ContentTypeID=1</link><pubDate>Tue, 14 Aug 2018 19:21:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d74f17a5-c1ed-49c7-80cd-9a8676eec9b9</guid><dc:creator>gercer</dc:creator><description>&lt;p&gt;Oh, ok. I understand now how to know what the error is.&lt;/p&gt;
&lt;p&gt;Thanks so much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_ERROR_CHECK errors</title><link>https://devzone.nordicsemi.com/thread/144058?ContentTypeID=1</link><pubDate>Tue, 14 Aug 2018 06:39:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:026ba01a-69b1-417c-972d-ac8089063458</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Error code 0x04 is&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group__nrf__error.html#ga7ef4d466b79b31c6325f8b7af5d4f75f"&gt;NRF_ERROR_NO_MEM&lt;/a&gt;, which is returned when there is not enough memory to configure a new advertising handle. You need to update an existing advertising handle instead, see&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#ga9969047f4e7485c3f856c841978cc31a"&gt;sd_ble_gap_adv_set_configure&lt;/a&gt;&amp;nbsp;documention on Infocenter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_ERROR_CHECK errors</title><link>https://devzone.nordicsemi.com/thread/144022?ContentTypeID=1</link><pubDate>Mon, 13 Aug 2018 19:03:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df436453-b11d-4acc-8537-bebec5d68fd4</guid><dc:creator>gercer</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The error code i get is 0x00000004.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_ERROR_CHECK errors</title><link>https://devzone.nordicsemi.com/thread/143819?ContentTypeID=1</link><pubDate>Sun, 12 Aug 2018 19:33:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85ca279b-80b7-4de6-b13a-b2758b9bec01</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Gerardo,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;what error code does&amp;nbsp;sd_ble_gap_adv_set_configure() return when you call it a second time( the first is in&amp;nbsp;advertising_init()) to modify the advertisment parameters?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_ERROR_CHECK errors</title><link>https://devzone.nordicsemi.com/thread/143766?ContentTypeID=1</link><pubDate>Fri, 10 Aug 2018 19:10:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:491f1aa3-4cd0-4053-aa6d-c7b768fa3a4e</guid><dc:creator>gercer</dc:creator><description>&lt;p&gt;Hi Bj&amp;oslash;rn,&lt;/p&gt;
&lt;p&gt;Thanks for the answer, i realized i never called the peer_manager_init function after reading your reply. I was trying to solve the problem checking on the sdk_config and checking if all the libraries needed were added.&lt;/p&gt;
&lt;p&gt;About the&amp;nbsp;&lt;em&gt;sd_ble_gap_adv_set_configure(&amp;amp;m_adv_handle, &amp;amp;m_adv_data, &amp;amp;adv_params)&amp;nbsp;&lt;/em&gt;APP_ERROR i guessed the problem was that i was using&amp;nbsp;&lt;em&gt;ble_advertising_init&amp;nbsp;&lt;/em&gt; and i wanted to use&amp;nbsp;&lt;em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;sd_ble_gap_adv_set_configure&amp;nbsp;&lt;/em&gt;to modify the adv_params. Any idea why the code crashes if both are used?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_ERROR_CHECK errors</title><link>https://devzone.nordicsemi.com/thread/143755?ContentTypeID=1</link><pubDate>Fri, 10 Aug 2018 15:17:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:840bcbb4-9cc7-4988-81d6-b179b32cbecf</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;OKay, so its&amp;nbsp;pm_whitelist_set that returns an error code that is not NRF_SUCCESS.&amp;nbsp;Looking at the&amp;nbsp;VERIFY_MODULE_INITIALIZED macro you&amp;#39;ll see that it will return&amp;nbsp;NRF_ERROR_INVALID_STATE if the module, i.e. Peer Manager is not initialized.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;VERIFY_MODULE_INITIALIZED() VERIFY_TRUE((MODULE_INITIALIZED), NRF_ERROR_INVALID_STATE)&lt;/p&gt;
&lt;p&gt;Have you called&amp;nbsp;pm_init() which sets the&amp;nbsp;m_module_initialized&amp;nbsp;flag in pper_manager.c to true?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_ERROR_CHECK errors</title><link>https://devzone.nordicsemi.com/thread/143634?ContentTypeID=1</link><pubDate>Thu, 09 Aug 2018 19:26:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:533d7152-59d5-4e24-a3d7-b39301939379</guid><dc:creator>gercer</dc:creator><description>&lt;p&gt;UPDATE:&lt;br /&gt;Doing some tests:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;ret_code_t pm_whitelist_set(pm_peer_id_t const * p_peers,
                            uint32_t             peer_cnt)
{
    VERIFY_MODULE_INITIALIZED();
    return im_whitelist_set(p_peers, peer_cnt);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;in my custom code the last line in that code is never executed and it goes directly to to APP_ERROR_CHECK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>