<?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>Setting up whitelist in SDK V12.2.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18463/setting-up-whitelist-in-sdk-v12-2-0</link><description>ble_app_template.zip I need to setup whitelist. To achieve that while calling ble_advertising_init I specified 
 ble_adv_whitelist_enabled = true
 
 then, while handling BLE_ADV_EVT_WHITELIST_REQUEST I use: 
 uint32_t err_code;
 ble_gap_addr_t whitelist_addr</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Mar 2018 07:12:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18463/setting-up-whitelist-in-sdk-v12-2-0" /><item><title>RE: Setting up whitelist in SDK V12.2.0</title><link>https://devzone.nordicsemi.com/thread/122736?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2018 07:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0fa827e-b9b7-43d6-86e5-b5b4392c76d9</guid><dc:creator>wentj</dc:creator><description>&lt;p&gt;&lt;span&gt;hi SergeyP, I meet the same problem now, and this issue confused me several days.And after browsing the answer in this page, i can&amp;#39;t find any effective solution&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;D&lt;/span&gt;&lt;span&gt;o you mean you just do nothing but unzip the SDK again and the issue disappeared? or you just find other &lt;/span&gt;&lt;span&gt;reasons to explain this after do that? if so, &lt;/span&gt;&lt;span&gt;hopefully you can&lt;/span&gt;&lt;span&gt;&amp;nbsp;give me some tip? best wish!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up whitelist in SDK V12.2.0</title><link>https://devzone.nordicsemi.com/thread/71246?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2016 09:42:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56c30b79-24d2-40cf-90d7-903a7660fc42</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Np :) I converted my comment, maybe you can accept it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up whitelist in SDK V12.2.0</title><link>https://devzone.nordicsemi.com/thread/71247?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2016 07:32:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1695a1ab-d44c-4cec-aaff-3d3d0bbbfc00</guid><dc:creator>SergeyP</dc:creator><description>&lt;p&gt;I don&amp;#39;t remember making any changes to the library files but just in case decided to unzip the SDK again, once I did that the issue disappeared and I was able to see my whitelist settings in action.
Thank you very much for the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up whitelist in SDK V12.2.0</title><link>https://devzone.nordicsemi.com/thread/71245?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2016 11:42:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7862970-7590-4a7c-8add-763ae3d89e17</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Yes. If I uncomment the line, it is advertising with Sergey as device name. Your code looks correct, and it seems to be working fine here. Are you sure you haven&amp;#39;t changed any library files?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up whitelist in SDK V12.2.0</title><link>https://devzone.nordicsemi.com/thread/71244?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2016 10:28:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fbb30cd-2d5f-4046-940b-fe4372c64bb1</guid><dc:creator>SergeyP</dc:creator><description>&lt;p&gt;No, I just ran the project with that line uncommented to reproduce the problem.
Did you have the device advertising once you uncommented that line? My main goal is till to figure out what I did wrong while setting up the white list and that investigation around strange error come up as kind of secondary issue, so, looking at the code in the project, could you please tell me whether you see anything obviously wrong with my whitelist which would result in my device not advertising at all?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up whitelist in SDK V12.2.0</title><link>https://devzone.nordicsemi.com/thread/71243?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2016 13:52:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88f1269b-870b-4a15-bea1-2cb5bef02cc9</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I tested your project. Uncommented the line, but I don&amp;#39;t get any error. Do I have to do anything more?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up whitelist in SDK V12.2.0</title><link>https://devzone.nordicsemi.com/thread/71242?ContentTypeID=1</link><pubDate>Sat, 24 Dec 2016 04:54:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41a165b4-43f7-4dbe-89f8-c1d6c1aa767e</guid><dc:creator>SergeyP</dc:creator><description>&lt;p&gt;I&amp;#39;ve uploaded (to the original question) the project.
There is line #436 in the file main.c at
ble_app_template\ble_app_template\pca10040\s132\arm5_no_packs&lt;/p&gt;
&lt;p&gt;please uncomment there the line&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// err_code = ble_advertising_whitelist_reply(&amp;amp;whitelist_addr, 1, NULL, 0);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and the problem will be seen. So, just in case  I would like my end goal: I need to figure out what is wrong with the way I am enabling whitelist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up whitelist in SDK V12.2.0</title><link>https://devzone.nordicsemi.com/thread/71241?ContentTypeID=1</link><pubDate>Fri, 23 Dec 2016 10:13:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fffbb58d-c984-4e38-aaba-a996c3306274</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Ok. Could you upload your complete project so I can test it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up whitelist in SDK V12.2.0</title><link>https://devzone.nordicsemi.com/thread/71240?ContentTypeID=1</link><pubDate>Fri, 23 Dec 2016 09:36:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7f18eef-78c3-48f4-bca1-289eec77892e</guid><dc:creator>SergeyP</dc:creator><description>&lt;p&gt;The breakpoint was set in app_error_save_and_stop which is called from within&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;__WEAK void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info)
{
    NRF_LOG_ERROR(&amp;quot;Fatal\r\n&amp;quot;);
    NRF_LOG_FINAL_FLUSH();
    // On assert, the system can only recover with a reset.
#ifndef DEBUG
    NVIC_SystemReset();
#else
    app_error_save_and_stop(id, pc, info);
#endif // DEBUG
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Yes, I defined DEBUG and turned off optimization, in fact I did everything as was suggested in the 2nd answer by Vidar Berg in this post: &lt;a href="https://devzone.nordicsemi.com/question/80581/stuck-in-softdevice_handler_init/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up whitelist in SDK V12.2.0</title><link>https://devzone.nordicsemi.com/thread/71239?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2016 09:35:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2543b0be-2a6f-42a0-91b4-8a26abdcffbc</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Where are have set the breakpoint? Inside app_error_handler()? Or app_error_handler_bare()? You need to define DEBUG to get into app_error_handler(), what are line_num, p_file_name and error_code in it? Have you turned off optimizations?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up whitelist in SDK V12.2.0</title><link>https://devzone.nordicsemi.com/thread/71238?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2016 09:24:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb8d682d-6fff-4eea-a27e-f709b5e0fd34</guid><dc:creator>SergeyP</dc:creator><description>&lt;p&gt;No, I am not using PM, I have commented it out as was suggested &lt;a href="https://devzone.nordicsemi.com/question/106645/setting-nrf_log_enabled-to-1-results-in-too-big-image-when-uart-log-is-enabled/"&gt;here&lt;/a&gt;.
I have updated my original post with the screenshot and some explanation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up whitelist in SDK V12.2.0</title><link>https://devzone.nordicsemi.com/thread/71237?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2016 09:52:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72dba665-bf9a-49f0-ba11-dda357414779</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Are you using Peer Manager? Then you can have a look at ble_app_hids_keyboard for how a whitelist is enabled. Have you used the debugger to check what error code is given to APP_ERROR_CHECK()? I&amp;#39;m assuming that you get an error somewhere else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>