<?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>Encountering NRF_FAULT_ID_SDK_ERROR, error code 7 (INVALID_PARAM) when moving from nRF52-DK to BM832A module</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59076/encountering-nrf_fault_id_sdk_error-error-code-7-invalid_param-when-moving-from-nrf52-dk-to-bm832a-module</link><description>Hello, we have developed an BLE application based on the ble_peripheral/ble_app_uart example on an nRF52-DK dev kit with an nrf52832. It works great. 
 On our production board, we are using a BM832A module, which is a module that includes an nrf52832</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Mar 2020 09:03:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59076/encountering-nrf_fault_id_sdk_error-error-code-7-invalid_param-when-moving-from-nrf52-dk-to-bm832a-module" /><item><title>RE: Encountering NRF_FAULT_ID_SDK_ERROR, error code 7 (INVALID_PARAM) when moving from nRF52-DK to BM832A module</title><link>https://devzone.nordicsemi.com/thread/240778?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 09:03:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:981b8d4c-8c4b-4402-bbd3-fd8640743e49</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Happy to help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encountering NRF_FAULT_ID_SDK_ERROR, error code 7 (INVALID_PARAM) when moving from nRF52-DK to BM832A module</title><link>https://devzone.nordicsemi.com/thread/240748?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 06:18:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:721049b7-57d1-4773-81a4-46a58d585ec2</guid><dc:creator>riceman0</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encountering NRF_FAULT_ID_SDK_ERROR, error code 7 (INVALID_PARAM) when moving from nRF52-DK to BM832A module</title><link>https://devzone.nordicsemi.com/thread/240171?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 08:35:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:702881f0-9f9b-41b3-bfed-55104917ed26</guid><dc:creator>bjorn-spockeli</dc:creator><description>[quote user="riceman0"]I see now at the link and excerpt below, that we needed to change the flags as well to make the duration 0.&amp;nbsp; Why is that?&amp;nbsp; What does&amp;nbsp;BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE vs&amp;nbsp;BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE do?[/quote]
&lt;p&gt;&amp;nbsp;From the BLUETOOTH CORE SPECIFICATION Version 5.2 | Vol 3, Part C page 1295&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The &lt;strong&gt;limited discoverable mode&lt;/strong&gt; should be used by devices that need to bediscoverable only for a limited period of time, during temporary conditions, or for a specific event.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;BLUETOOTH CORE SPECIFICATION Version 5.2 | Vol 3, Part C page 1297&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The &lt;strong&gt;general discoverable mode&lt;/strong&gt; shall be used by devices that need to be discoverable continuously or for no specific condition. Devices in the general discoverable mode will not be discovered by devices performing the limited inquiry procedure. General discoverable mode should not be used if it is known that the device performing discovery will be using thelimited inquiry procedure.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So in short, if you want your Bluetooth Low Energy device to advertise with no timeout you need to set the advertising flag to&amp;nbsp;BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE. If the advertising will timeout, you need to set the advertising flag to&amp;nbsp;BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encountering NRF_FAULT_ID_SDK_ERROR, error code 7 (INVALID_PARAM) when moving from nRF52-DK to BM832A module</title><link>https://devzone.nordicsemi.com/thread/239816?ContentTypeID=1</link><pubDate>Fri, 13 Mar 2020 21:48:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44c18d4f-af54-426c-a90f-f1c5a0bb66c7</guid><dc:creator>riceman0</dc:creator><description>&lt;p&gt;And a little more info...&lt;/p&gt;
&lt;p&gt;Looks like the problem is duration=0.&amp;nbsp; If I make this non-zero the call to&amp;nbsp;&lt;span&gt;&amp;nbsp;sd_ble_gap_adv_set_configure works.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I see now at the link and excerpt below, that we needed to change the flags as well to make the duration 0.&amp;nbsp; Why is that?&amp;nbsp; What does&amp;nbsp;BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE vs&amp;nbsp;BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE do?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;***&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46494/define-app_adv_duration-18000-or-0"&gt;devzone.nordicsemi.com/.../define-app_adv_duration-18000-or-0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t want your advertisements to time out, and your device to go to sleep, you can set the advertising duration (APP_ADV_DURATION) to 0. Note that you also need to change the advertising flag from BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC:MODE to&amp;nbsp;BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE.&lt;/p&gt;
&lt;p&gt;In the ble_app_uart example, that means changing the line:&lt;/p&gt;
&lt;p&gt;init.advdata.flags&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;init.advdata.flags&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Note that when the advertisement never times out, the device will not go to sleep to conserve power. Except from this, there are no changes that I can think of.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encountering NRF_FAULT_ID_SDK_ERROR, error code 7 (INVALID_PARAM) when moving from nRF52-DK to BM832A module</title><link>https://devzone.nordicsemi.com/thread/239793?ContentTypeID=1</link><pubDate>Fri, 13 Mar 2020 16:34:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1136388f-b350-4741-94f5-6202129ad595</guid><dc:creator>riceman0</dc:creator><description>&lt;p&gt;A little more info...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the error is happening in&amp;nbsp;ble_advertising_start, an INVALID_PARAM returned from&amp;nbsp;sd_ble_gap_adv_set_configure.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My parameters appear to be:&lt;/p&gt;
&lt;p&gt;p_adv_handle = 0x00&lt;/p&gt;
&lt;p&gt;p_adv_data = &amp;quot;..\f\tNordic_UART&amp;quot;, length=0x10&lt;/p&gt;
&lt;p&gt;p_adv_params = {peer_addr=0x0, interval=8000, duration=0, max_adv_events=0)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are any of these invalid?&amp;nbsp; Why would the target make a difference herE?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>