<?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>Sudden hardfault when scanning (S140 SoftDevice)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89804/sudden-hardfault-when-scanning-s140-softdevice</link><description>Hello, 
 
 We&amp;#39;re using a nRF52840 with S140 SoftDevice (v7.3.0) for a Central device but we&amp;#39;re having a disturbing issue when scanning: a hardfault occurs less than 2 seconds after having started scanning. 
 The scan configuration we are using is: 
 ble_gap_scan_params_t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Jul 2022 13:00:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89804/sudden-hardfault-when-scanning-s140-softdevice" /><item><title>RE: Sudden hardfault when scanning (S140 SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/376435?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 13:00:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cebef90-9055-42cc-810d-16a9e6add35d</guid><dc:creator>Mario Amigot</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks for your quick response.&lt;/p&gt;
&lt;p&gt;Indeed, the root cause was the processing of the advertising data in our application.&lt;/p&gt;
&lt;p&gt;Apparently it is possible to receive an advertising report whose advertising data length is 0 (and we have found that there is a device which advertises no data in our office).&amp;nbsp;The issue was that we had not implemented that case so as soon as this device&amp;#39;s advertising packet was received, a hardfault was triggered.&lt;/p&gt;
&lt;p&gt;The bug is fixed and the central device is working properly now.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Mario&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sudden hardfault when scanning (S140 SoftDevice)</title><link>https://devzone.nordicsemi.com/thread/376376?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 09:49:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f36b82ea-3651-47de-a58b-3abcf56b3f00</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Mario,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to find more information about the hardfault ? There are some guide on how to debug it &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/12291/what-can-cause-a-hardfault-and-how-to-catch-it"&gt;here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We would need to look into how you process the advertising data. I suspect that it could be the reason for a hardfault.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;We do have a very busy BLE environment here in our office and we haven&amp;#39;t seen any issue on our scanner.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Do you have the same problem when you test with one of our central examples in the SDK ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>