<?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>Application Crashes When Enabling Both 1M and Coded PHY in BLE Scan Init</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123038/application-crashes-when-enabling-both-1m-and-coded-phy-in-ble-scan-init</link><description>Hi, 
 I&amp;#39;m using nRF SDK 16 for my application on the nRF52840 custome board. When I set both parameters (i.e., support for coded PHY and 1M PHY ) in the scan initialization function, my application hits a hard fault . However, if I configure and run scanning</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Jul 2025 07:56:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123038/application-crashes-when-enabling-both-1m-and-coded-phy-in-ble-scan-init" /><item><title>RE: Application Crashes When Enabling Both 1M and Coded PHY in BLE Scan Init</title><link>https://devzone.nordicsemi.com/thread/543111?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2025 07:56:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a81807f-c08d-4a7e-85ca-ce100fa138e5</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The error code&amp;nbsp;0x7&amp;nbsp;returned by&amp;nbsp;sd_ble_gap_scan_start&amp;nbsp;corresponds to&amp;nbsp;NRF_ERROR_INVALID_PARAM. Seems like you have zeroed out the init_scan struct and only initialized few variables in it. That seems wrong. This means that one or more of the parameters you are passing to the function are invalid. This error with this API has been discussed a lot on this forum, please try to read the forum to see if that helps, for example&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/111225/sd_ble_gap_scan_start-return-0x07-nrf_error_invalid_param?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt; this one &lt;/a&gt;and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/104979/sd_ble_gap_scan_start-return-0x07-nrf_error_invalid_param?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt;this one&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application Crashes When Enabling Both 1M and Coded PHY in BLE Scan Init</title><link>https://devzone.nordicsemi.com/thread/542953?ContentTypeID=1</link><pubDate>Mon, 21 Jul 2025 06:54:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34bb77c1-9f10-435e-bf06-284e283f7e3b</guid><dc:creator>Nikunj089</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;attched scrrenshot fyr.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1753080806707v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1753080830614v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;[00:00:10.000,366] &amp;lt;error&amp;gt; ble_scan: sd_ble_gap_scan_start returned 0x7&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Nikunj Patel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application Crashes When Enabling Both 1M and Coded PHY in BLE Scan Init</title><link>https://devzone.nordicsemi.com/thread/542932?ContentTypeID=1</link><pubDate>Sun, 20 Jul 2025 08:56:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b99ecb89-e9ea-4044-b8c2-e46aa66ccc0a</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Nikunj Kumar,&lt;/p&gt;
&lt;p&gt;What are the details of the hardfault? What are the code snippets and changes you made to enable those features. I strongly recommend you to use the latest SDK (nRF Connect SDK) while evaluating features.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>