<?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>adding BLE to a system without  softdevice, using the 17.1 sdk (can&amp;#39;t change) freetos no ble events</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125449/adding-ble-to-a-system-without-softdevice-using-the-17-1-sdk-can-t-change-freetos-no-ble-events</link><description>the existing code is using freetos, and main.c finally ends at 
 
 
 
 
 which never returns as expected... but my ble scan and advertise do not appear to work, no events are recevied... and nrf_connect app doesn&amp;#39;t see my device advertising 
 
 I had</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Nov 2025 14:23:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125449/adding-ble-to-a-system-without-softdevice-using-the-17-1-sdk-can-t-change-freetos-no-ble-events" /><item><title>RE: adding BLE to a system without  softdevice, using the 17.1 sdk (can't change) freetos no ble events</title><link>https://devzone.nordicsemi.com/thread/554273?ContentTypeID=1</link><pubDate>Thu, 13 Nov 2025 14:23:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55a53681-3867-4413-b735-85d5bab0ed0d</guid><dc:creator>rexxdad</dc:creator><description>&lt;p&gt;almost there, debugger works now.. user error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding BLE to a system without  softdevice, using the 17.1 sdk (can't change) freetos no ble events</title><link>https://devzone.nordicsemi.com/thread/554185?ContentTypeID=1</link><pubDate>Wed, 12 Nov 2025 19:13:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eca76a4-fc13-469e-815e-85018d426cb0</guid><dc:creator>rexxdad</dc:creator><description>&lt;p&gt;here are images from the nrfConnect Programmer tool after reading the memory of the 52833&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt="MBR " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-at-2025_2D00_11_2D00_12-13_2D00_08_2D00_39.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt="softdevice" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-at-2025_2D00_11_2D00_12-13_2D00_08_2D00_49.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt="app" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-at-2025_2D00_11_2D00_12-13_2D00_08_2D00_49.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding BLE to a system without  softdevice, using the 17.1 sdk (can't change) freetos no ble events</title><link>https://devzone.nordicsemi.com/thread/554179?ContentTypeID=1</link><pubDate>Wed, 12 Nov 2025 18:38:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00b8cad5-1c9a-4b12-b483-362085c3fbba</guid><dc:creator>rexxdad</dc:creator><description>&lt;p&gt;I changed flash to&amp;nbsp;&lt;br /&gt;&lt;span&gt;FLASH (rx) : ORIGIN = 0x0001C000,&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;and now my code is entered.&lt;br /&gt;&lt;br /&gt;but&amp;nbsp;&lt;br /&gt;nrf_sdh_enable_request();&amp;nbsp; returns 0x1001 (already enabled?)&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;skip that then&amp;nbsp;&lt;br /&gt;nrf_sdh_ble_default_cfg_set&lt;br /&gt;returns rc=0, ram_start= 0x2002000, matching LD&lt;br /&gt;&lt;br /&gt;then&amp;nbsp;&lt;br /&gt;nrf_sdh_ble_enable(&amp;amp;ram_start);&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;returns rc=2&lt;/p&gt;
&lt;p&gt;confused&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding BLE to a system without  softdevice, using the 17.1 sdk (can't change) freetos no ble events</title><link>https://devzone.nordicsemi.com/thread/554158?ContentTypeID=1</link><pubDate>Wed, 12 Nov 2025 15:16:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdfa5bd0-3f2a-40a2-9a02-8359addbf3c5</guid><dc:creator>rexxdad</dc:creator><description>&lt;p&gt;Ok, almost there&lt;br /&gt;&lt;br /&gt;using the S140 softdevice works, debug works in Ozone&lt;br /&gt;now another device, using the 52833&lt;br /&gt;&lt;br /&gt;I have adjusted the LD file to reserve space for SD per the release notes.&lt;br /&gt;&lt;br /&gt;in Ozone project script I load the elf (which does NOT have SD included, but does have the debugger symbols)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;then load the SD file(incl the MBR) at position 0 (as the elf positons the app isr vectors after the SD size)&lt;/p&gt;
&lt;p&gt;then the setupTarget function (in the ozone project)&amp;nbsp; gets the sp value from data at 0&lt;/p&gt;
&lt;p&gt;and the pc value from position 4&lt;/p&gt;
&lt;p&gt;but I get immediate hardfault.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the process should be the same for 52833 vs 52840, right?&amp;nbsp; Boot Record is the same&lt;br /&gt;&lt;br /&gt;log from the Ozone startup&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Downloading Program.
Exec.Download (&amp;quot;$(ProjectDir)/Downloads/DW3_QM33_SDK_1.0.2.new/SDK/Firmware/BuildOutput/DW3_QM33_SDK_UCI/FreeRTOS/DWM3001CDK/DWM3001CDK-DW3_QM33_SDK_UCI-FreeRTOS.elf&amp;quot;);
J-Link: Flash download: Bank 0 @ 0x00000000: 10 ranges affected (266240 bytes)
J-Link: Flash download: Total: 8.561s (Prepare: 0.114s, Compare: 0.222s, Erase: 5.663s, Program &amp;amp; Verify: 2.471s, Restore: 0.089s)
J-Link: Flash download: Program &amp;amp; Verify speed: 104 KB/s
Loading softdevice
Target.LoadMemory (&amp;quot;/home/sam/Downloads/DW3_QM33_SDK_1.0.2.new/SDK/Firmware/SDK_BSP/Nordic/NORDIC_SDK_17_1_0/components/softdevice/s113/hex/s113_nrf52_7.2.0_softdevice.hex&amp;quot;, 0x00000000);
J-Link: Flash download: Bank 0 @ 0x00000000: Skipped. Contents already match
Target.ReadU32 (0x00000000); // returns 0x4, data is 0x20000400
Target.SetReg (&amp;quot;SP&amp;quot;, 0x20000400);
Target.ReadU32 (0x00000004); // returns 0x4, data is 0xA81
Target.SetReg (&amp;quot;PC&amp;quot;, 0xA81);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;the LD file for app before SD is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;MEMORY&lt;br /&gt;{&lt;br /&gt;RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 128K&lt;br /&gt;FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 512K - 4K - 4K /* 1M minus calib_sha/calib sections. */&lt;br /&gt;CALIB_SHA (rw) : ORIGIN = 0x0007E000, LENGTH = 4K&lt;br /&gt;CALIB (rw) : ORIGIN = 0x0007F000, LENGTH = 4K&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;SECTIONS&lt;br /&gt;{&lt;br /&gt; .application (0x00000000) :&lt;br /&gt; {&lt;br /&gt; . = ALIGN(4);&lt;br /&gt; KEEP(*(.isr_vector)) /* Startup code */&lt;/p&gt;
&lt;p&gt;and after&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;MEMORY&lt;br /&gt;{&lt;br /&gt;RAM (rwx) : ORIGIN = 0x20002000, LENGTH = 128K - 8k&lt;br /&gt;FLASH (rx) : ORIGIN = 0x0001E000, LENGTH = 512K - 112K - 4K - 4K /* 512 minus calib_sha/calib sections. */&lt;br /&gt;CALIB_SHA (rw) : ORIGIN = 0x0007E000, LENGTH = 4K&lt;br /&gt;CALIB (rw) : ORIGIN = 0x0007F000, LENGTH = 4K&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;SECTIONS&lt;br /&gt;{&lt;br /&gt; /* start with interrupt vectors */&lt;br /&gt; isr_vectors (ORIGIN(FLASH)) :&lt;br /&gt;&lt;br /&gt;I know the ram value isn&amp;#39;t correct, I need to see the output of the ble_enable.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;the map shows the app start address at 3D990&lt;br /&gt;and the app vector table loaded at 1E000 shows (flash origin)&lt;br /&gt;00 00 02 20&lt;br /&gt; 91 D9 03 00&amp;nbsp; (03D991)&lt;/p&gt;
&lt;p&gt;--------&lt;br /&gt;hardfault info&amp;nbsp;&lt;br /&gt;@ 0000 0000&lt;/p&gt;
&lt;p&gt;top of stack out of range&lt;br /&gt;pc=1AE44&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;That would be in the SD code space.. top/ending at 1E000 (-8k)= 1C000 (documented size for SD S113)&lt;br /&gt;ozone setup link&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47464/segger-ozone-causes-a-soft-device-error-when-trying-to-debug-or-reset-during-debugging"&gt;devzone.nordicsemi.com/.../segger-ozone-causes-a-soft-device-error-when-trying-to-debug-or-reset-during-debugging&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding BLE to a system without  softdevice, using the 17.1 sdk (can't change) freetos no ble events</title><link>https://devzone.nordicsemi.com/thread/553940?ContentTypeID=1</link><pubDate>Tue, 11 Nov 2025 10:06:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5d9d8c2-605e-4865-b653-47f37dc87fd2</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user="rexxdad"]I’ve made progress. Lots of setup problems, but finally working[/quote]
&lt;p&gt;Great to hear!&lt;/p&gt;
[quote user="rexxdad"]&lt;p&gt;one outstanding issue, set number of peripherals 16 with larger buffer size, get ram_size 12400&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;set in ld file, linker shows 12400&lt;/p&gt;
&lt;p&gt;sdh_ble_enable fails rc=4&lt;/p&gt;
&lt;p&gt;but it reports 12400 is needed&lt;/p&gt;
&lt;p&gt;is there a 64k limit? &amp;nbsp;Size under 64k works&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but I might have 30 or more of our devices to scan and talk to&lt;/p&gt;[/quote]
&lt;p&gt;Yes, there is a limit, the d&lt;span&gt;ynamic part of the SoftDevice RAM region&amp;nbsp;can be max 64 kB&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/s140_v7.2.0_api/page/group_b_l_e_c_o_m_m_o_n_f_u_n_c_t_i_o_n_s.html#ga8a92420df90945526d4c89d09486508d"&gt;https://docs.nordicsemi.com/bundle/s140_v7.2.0_api/page/group_b_l_e_c_o_m_m_o_n_f_u_n_c_t_i_o_n_s.html#ga8a92420df90945526d4c89d09486508d&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1762855639903v3.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding BLE to a system without  softdevice, using the 17.1 sdk (can't change) freetos no ble events</title><link>https://devzone.nordicsemi.com/thread/553821?ContentTypeID=1</link><pubDate>Mon, 10 Nov 2025 13:38:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8475e449-4d34-4998-ae39-bbae7e6dc053</guid><dc:creator>rexxdad</dc:creator><description>&lt;p&gt;I&amp;rsquo;ve made progress. Lots of setup problems, but finally working&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;one outstanding issue, set number of peripherals 16 with larger buffer size, get ram_size 12400&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;set in ld file, linker shows 12400&lt;/p&gt;
&lt;p&gt;sdh_ble_enable fails rc=4&lt;/p&gt;
&lt;p&gt;but it reports 12400 is needed&lt;/p&gt;
&lt;p&gt;is there a 64k limit? &amp;nbsp;Size under 64k works&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but I might have 30 or more of our devices to scan and talk to&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding BLE to a system without  softdevice, using the 17.1 sdk (can't change) freetos no ble events</title><link>https://devzone.nordicsemi.com/thread/553615?ContentTypeID=1</link><pubDate>Thu, 06 Nov 2025 23:09:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e019301-719c-4fe0-b527-28521d02da3f</guid><dc:creator>rexxdad</dc:creator><description>&lt;p&gt;add rtt for debugging&lt;br /&gt;in Controller mode, this will scan for Controllee mode endpoints, AND advertise to pair with phone&amp;nbsp;&lt;br /&gt;&lt;br /&gt;neither appear to actually work, altho rc=0&amp;nbsp;&lt;br /&gt;&lt;br /&gt;about 20 seconds in get hardfault,&amp;nbsp; stack return address out of range, pc A60, which shouldn&amp;#39;t be.. like branch to 0&amp;nbsp;&lt;br /&gt;&lt;br /&gt;00&amp;gt; Calling ble_stack_manager_init...&lt;br /&gt;00&amp;gt; ble_stack_manager_init returned: TRUE&lt;br /&gt;00&amp;gt; BLE init SUCCESS - starting advertising&lt;br /&gt;00&amp;gt; advertising_start called&lt;br /&gt;00&amp;gt; === BLE Init Complete ===&lt;br /&gt;&lt;br /&gt;freetos scheduler started here&lt;br /&gt;&lt;br /&gt;00&amp;gt; log_processing_task: Started&lt;br /&gt;00&amp;gt; [00:00:03.275,078] &amp;lt;info&amp;gt; app: ble_stack_manager_init: 1-nrf_sdh_enable_request&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; [00:00:03.275,274] &amp;lt;info&amp;gt; app: ble_stack_manager_init: 2-nrf_sdh_ble_default_cfg_set&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; [00:00:03.275,325] &amp;lt;info&amp;gt; app: ble_stack_manager_init: 3-nrf_sdh_ble_enable&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; [00:00:03.275,977] &amp;lt;info&amp;gt; app: ble_stack_manager_init: 4-nrf_sdh_freertos_init&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; [00:00:03.276,419] &amp;lt;info&amp;gt; app: ble_stack_manager_init: 5-gap_params_init&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; [00:00:03.276,484] &amp;lt;info&amp;gt; app: ble_stack_manager_init: 6-gap_conn_params_init&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; [00:00:03.276,505] &amp;lt;info&amp;gt; app: ble_stack_manager_init: 7-gatt_init&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; [00:00:03.276,523] &amp;lt;info&amp;gt; app: Registered UCI UUID with type: 2&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; [00:00:03.276,767] &amp;lt;info&amp;gt; app: ble_stack_manager_init: 8-advertising_init&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; [00:00:03.276,799] &amp;lt;info&amp;gt; app: Advertising will include UCI service UUID: 0x0001 (type 2)&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; [00:00:03.276,923] &amp;lt;info&amp;gt; app: ble_stack_manager_init: 9-scan_init&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; [00:00:03.276,927] &amp;lt;info&amp;gt; app: Initializing BLE scanning module&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; [00:00:03.276,933] &amp;lt;info&amp;gt; app: ble_stack_manager_init: 10-COMPLETE&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; [00:00:03.276,937] &amp;lt;info&amp;gt; app: BLE stack initialized successfully&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; [00:00:03.276,972] &amp;lt;info&amp;gt; app: About to call ble_advertising_start...&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; [00:00:03.283,869] &amp;lt;info&amp;gt; app: ble_advertising_start returned: 0&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;this was an app that used USB only. nothing connected to USB uart port on Murata 2AB&amp;nbsp;&lt;br /&gt;debugger connect via pin header, and USB port socket&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding BLE to a system without  softdevice, using the 17.1 sdk (can't change) freetos no ble events</title><link>https://devzone.nordicsemi.com/thread/553469?ContentTypeID=1</link><pubDate>Wed, 05 Nov 2025 15:28:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a3e1ed6-5cca-44cf-9a52-e81db9d28921</guid><dc:creator>rexxdad</dc:creator><description>&lt;p&gt;here is the scan setup code&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;SCAN_INTERVAL&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x00A0&lt;/span&gt;&lt;span&gt; // Scan interval (100 ms)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;SCAN_WINDOW&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x0050&lt;/span&gt;&lt;span&gt; // Scan window (50 ms)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;SCAN_TIMEOUT&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt; // Scan timeout (0 = no timeout)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;// Initialize central mode
// QLOGD(&amp;quot;Initializing BLE in central mode&amp;quot;);

// Initialize scanner
nrf_ble_scan_init_t scan_init_params;
memset(&amp;amp;scan_init_params, 0, sizeof(scan_init_params));

// Set scan parameters
scan_init_params.p_scan_param = &amp;amp;(ble_gap_scan_params_t){
.active = 1,
.interval = SCAN_INTERVAL,
.window = SCAN_WINDOW,
.timeout = SCAN_TIMEOUT,
.scan_phys = BLE_GAP_PHY_1MBPS,
.filter_policy = BLE_GAP_SCAN_FP_ACCEPT_ALL,
};


err_code = nrf_ble_scan_init(&amp;amp;m_scan, &amp;amp;scan_init_params, NULL);
if (err_code != NRF_SUCCESS)
{
QLOGE(&amp;quot;Failed to initialize scanner: %ld&amp;quot;, err_code);
return false;
}

// Initialize database discovery
err_code = ble_db_discovery_init(NULL);
if (err_code != NRF_SUCCESS)
{
QLOGE(&amp;quot;Failed to initialize database discovery: %ld&amp;quot;, err_code);
return false;
}&lt;/pre&gt;&lt;pre class="ui-code" data-mode="text"&gt;// Initialize central mode
// QLOGD(&amp;quot;Initializing BLE in central mode&amp;quot;);

// Initialize scanner
nrf_ble_scan_init_t scan_init_params;
memset(&amp;amp;scan_init_params, 0, sizeof(scan_init_params));

// Set scan parameters
scan_init_params.p_scan_param = &amp;amp;(ble_gap_scan_params_t){
.active = 1,
.interval = SCAN_INTERVAL,
.window = SCAN_WINDOW,
.timeout = SCAN_TIMEOUT,
.scan_phys = BLE_GAP_PHY_1MBPS,
.filter_policy = BLE_GAP_SCAN_FP_ACCEPT_ALL,
};


err_code = nrf_ble_scan_init(&amp;amp;m_scan, &amp;amp;scan_init_params, NULL);
if (err_code != NRF_SUCCESS)
{
QLOGE(&amp;quot;Failed to initialize scanner: %ld&amp;quot;, err_code);
return false;
}

// Initialize database discovery
err_code = ble_db_discovery_init(NULL);
if (err_code != NRF_SUCCESS)
{
QLOGE(&amp;quot;Failed to initialize database discovery: %ld&amp;quot;, err_code);
return false;
}&lt;/pre&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>