<?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>Whitelist advertising with BLE_GAP_ADV_FP_FILTER_CONNREQ leads to HardFault</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9223/whitelist-advertising-with-ble_gap_adv_fp_filter_connreq-leads-to-hardfault</link><description>Hi,
Next problem I&amp;#39;ve experienced is jumping processor to Hardfault state at sd_ble_gap_adv_start 
with whitelist and BLE_GAP_ADV_FP_FILTER_CONNREQ .
In case adv_params.fp = BLE_GAP_ADV_FP_ANY; it works normally but no filtering applied.
Device: nRF51422QFAA</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Jun 2016 19:51:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9223/whitelist-advertising-with-ble_gap_adv_fp_filter_connreq-leads-to-hardfault" /><item><title>RE: Whitelist advertising with BLE_GAP_ADV_FP_FILTER_CONNREQ leads to HardFault</title><link>https://devzone.nordicsemi.com/thread/34033?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 19:51:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75772196-dc45-48b0-8870-37b32e201326</guid><dc:creator>sbailes</dc:creator><description>&lt;p&gt;Would you put this code in the advertising_init() function? Or somewhere else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Whitelist advertising with BLE_GAP_ADV_FP_FILTER_CONNREQ leads to HardFault</title><link>https://devzone.nordicsemi.com/thread/34032?ContentTypeID=1</link><pubDate>Fri, 06 May 2016 12:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6af0f305-6962-4d22-8bbb-6da356189b6a</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;hye Carles, I have same issue, I posted my question &lt;a href="https://devzone.nordicsemi.com/question/78556/how-can-i-implement-whitelist-sdk-10/"&gt;here&lt;/a&gt;, I dont understand what I missed , any help please&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Whitelist advertising with BLE_GAP_ADV_FP_FILTER_CONNREQ leads to HardFault</title><link>https://devzone.nordicsemi.com/thread/34031?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2015 14:12:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5a6e0be-4ed0-4c62-beed-2cf5ab9cb191</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;Thanks you  Carles, as usual here I&amp;#39;ve done almost the same before reading your answer. I confirm that it helped.
But solution of the problem generates at least two new.))) So I kindly invite you for discussion in my next question: &lt;a href="https://devzone.nordicsemi.com/question/51493/whitelist-advertisingconnection-cases/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Whitelist advertising with BLE_GAP_ADV_FP_FILTER_CONNREQ leads to HardFault</title><link>https://devzone.nordicsemi.com/thread/34030?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2015 10:55:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b206911b-af6f-4318-be43-0fa601a2fada</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;You are missing a pointer table, that&amp;#39;s probably why you hardfault. Here&amp;#39;s an example on how to properly setup a 1-addr whitelist:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  ble_gap_addr_t  peer_addr;
  ble_gap_addr_t *     p_whitelist_addr[1];
  ble_gap_whitelist_t  whitelist;
  ble_gap_adv_params_t adv_params = {0};

  p_whitelist_addr[0]   = &amp;amp;peer_addr;

  whitelist.pp_addrs    = p_whitelist_addr;
  whitelist.addr_count  = 1;
  whitelist.irk_count   = 0;

  adv_params.type        = BLE_GAP_ADV_TYPE_ADV_IND;
  adv_params.p_peer_addr = 0;
  adv_params.fp          = BLE_GAP_ADV_FP_FILTER_SCANREQ;
  adv_params.interval    = 0x20;
  adv_params.timeout     = 180;
  adv_params.p_whitelist = &amp;amp;whitelist;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Carles&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Whitelist advertising with BLE_GAP_ADV_FP_FILTER_CONNREQ leads to HardFault</title><link>https://devzone.nordicsemi.com/thread/34029?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2015 21:49:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b0b1490-8b02-4818-97e7-70a843b34de5</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;Hello,
Thank you for the test. I do not use SDK modules because of tight memory budget. Chip is nRF51422QFAAE0. My application is quite heavy and I suspect the RAM limit issue (SD130 takes 10 out of 16kB of RAM). Now I plan to try ble_app_template to confirm this code on my side.
Is it possible for softdevice to cross 10kB RAM region usage in some cases or any bugreport concerning this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Whitelist advertising with BLE_GAP_ADV_FP_FILTER_CONNREQ leads to HardFault</title><link>https://devzone.nordicsemi.com/thread/34028?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2015 10:51:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9861460d-a4c4-4d75-b11f-dbab63e5e452</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi.
I tested your code using:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Both an nRF51422QFAC (3rd revision IC) and a nRF51422QFAAE0 (2nd revision IC).&lt;/li&gt;
&lt;li&gt;Both S110 V8.0.0 and S130 V1.0.0.&lt;/li&gt;
&lt;li&gt;Both with &lt;code&gt;BLE_GAP_ADV_FP_FILTER_CONNREQ&lt;/code&gt; and &lt;code&gt;BLE_GAP_ADV_FP_FILTER_CONNREQ&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It seemed to work fine.&lt;/p&gt;
&lt;p&gt;I used the ble_app_template example in SDK 9.0.0 as a starting point and copy/pasted your code into the usual generic &lt;code&gt;advertising_init()&lt;/code&gt; function. What is your setup exactly? SDK and IC revision?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>