<?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>Multirole extended scanning issues.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112531/multirole-extended-scanning-issues</link><description>I&amp;#39;m using nRF52840 with nRF5_SDK_17.1.0_ddde560, using the ble_app_multirole_lesc example file. 
 When I set extended = 1 in scan_init , the debug session jumps to NRF_BREAKPOINT_COND with the message:// On assert, the system can only recover with a reset</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Jun 2024 09:28:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112531/multirole-extended-scanning-issues" /><item><title>RE: Multirole extended scanning issues.</title><link>https://devzone.nordicsemi.com/thread/491268?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 09:28:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bad2b18-50e3-42e1-97f9-a5f9ec70dc7b</guid><dc:creator>Player777</dc:creator><description>&lt;p&gt;Oh! I see!&lt;/p&gt;
&lt;p&gt;I thought my NRF_BLE_SCAN_BUFFER was already set to 255.&lt;/p&gt;
&lt;p&gt;This is my mistake.Thank you for your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multirole extended scanning issues.</title><link>https://devzone.nordicsemi.com/thread/491241?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 08:24:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02493f5e-bae5-4b6b-b151-55353736aded</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If&amp;nbsp;&lt;span&gt;sd_ble_gap_scan_start() is at line 318 in main,c and it returns NRF_ERROR_INVALID_LENGTH, then it means:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt; The provided buffer length is invalid. See BLE_GAP_SCAN_BUFFER_MIN.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Where&amp;nbsp;BLE_GAP_SCAN_BUFFER_MIN is:&amp;nbsp; #define BLE_GAP_SCAN_BUFFER_MIN&amp;nbsp;&amp;nbsp;&amp;nbsp;(31)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;What do you set the length of the buffer too in the second parameter passed to&amp;nbsp;&lt;span&gt;sd_ble_gap_scan_start()?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multirole extended scanning issues.</title><link>https://devzone.nordicsemi.com/thread/491230?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 07:50:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce791b90-e31a-440a-9443-cc3a29c70412</guid><dc:creator>Player777</dc:creator><description>&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;If I set extended = 1, the RTT viewer will report:&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; ble_scan: sd_ble_gap_scan_start returned 0x9&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; app: ERROR 9 [NRF_ERROR_INVALID_LENGTH] at ..\..\..\main.c:318&lt;/p&gt;
&lt;p&gt;PC at: 0x0003A939&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; app: End of error report&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multirole extended scanning issues.</title><link>https://devzone.nordicsemi.com/thread/491082?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 11:30:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53e3fbfa-c6ec-4407-909a-a98e50165629</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is there any log output that specifies the error code, can you share the call stack that shows where the program enters the error handler?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>