<?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>Developing Bluetooth Low Energy products using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104671/developing-bluetooth-low-energy-products-using-nrf-connect-sdk</link><description>When I follow Developing Bluetooth Low Energy products using nRF Connect SDK tutorials, I got this error which I can&amp;#39;t find any solution. I try to add an overlay file and change SDK and the result is same. I don&amp;#39;t know what casue this problem and I am</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Oct 2023 07:17:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104671/developing-bluetooth-low-energy-products-using-nrf-connect-sdk" /><item><title>RE: Developing Bluetooth Low Energy products using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/450741?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2023 07:17:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88f5fd46-7845-4564-8a31-2cee1a60839f</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Chang,&lt;/p&gt;
&lt;p&gt;The nRF9160 SiP does not support Bluetooth, while the nRF52840 SoC does. Therefore, when you build a sample using Bluetooth for the nRF9160 (nrf9160dk_nrf9160) you need to configure the nRF9160 on the nRF9160 DK to work as a Zephyr host and the nRF52840 on the DK as a Zephyr Bluetooth controller. This is done by adding &lt;code&gt;zephyr,bt-uart&lt;/code&gt;. Make sure to also add the following in prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;CONFIG_BT_HCI=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_BT_CTLR=n&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_BT_H4=y&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;For this to work, you also need to program the nRF52840 on the DK (nrf9160dk_nrf52840 build target) with the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/applications/connectivity_bridge/README.html"&gt;Connectivity bridge&lt;/a&gt; firmware.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developing Bluetooth Low Energy products using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/450668?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2023 17:33:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f7fc14a-6696-493f-977c-32f510c6179f</guid><dc:creator>Lbaili</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your reply! I will try it later. BTW I find I can build my code with nrf9160-nrf52480 mode.&lt;/p&gt;
&lt;p&gt;Do you know what reason makes that happen?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;/p&gt;
&lt;p&gt;Chang&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developing Bluetooth Low Energy products using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/450477?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2023 09:07:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff58769b-ee19-48f5-ba2a-cac58b5c765d</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is complaining about the device bt,uart:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;E:\482w\ncs\v2.5.0-rc1\zephyr\include\zephyr\device.h:85:41: error: &amp;#39;__device_dts_ord_DT_CHOSEN_zephyr_bt_uart_ORD&amp;#39; undeclared here (not in a function)&lt;/code&gt;&lt;br /&gt;&lt;code&gt; 85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;You need to add this device to your devicetree overlay:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		zephyr,bt-uart=&amp;amp;uart2;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Make sure to delete the build directory completely before rebuilding when making devicetree changes.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developing Bluetooth Low Energy products using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/450393?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2023 22:39:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:381aac2c-6090-4535-9497-02a594a742a7</guid><dc:creator>Lbaili</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[228/271] Building C object zephyr/drivers/bluetooth/CMakeFiles/drivers__bluetooth.dir/hci/h4.c.obj
FAILED: zephyr/drivers/bluetooth/CMakeFiles/drivers__bluetooth.dir/hci/h4.c.obj 
E:\482w\ncs\toolchains\31f4403e35\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;nrf-config.h\&amp;quot; -DMBEDTLS_USER_CONFIG_FILE=\&amp;quot;nrf-config-user.h\&amp;quot; -DNRF9160_XXAA -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DPICOLIBC_INTEGER_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=1 -D_POSIX_C_SOURCE=200809 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -IE:/482w/ncs/v2.5.0-rc1/zephyr/subsys/bluetooth -IE:/482w/ncs/v2.5.0-rc1/zephyr/include -Izephyr/include/generated -IE:/482w/ncs/v2.5.0-rc1/zephyr/soc/arm/nordic_nrf/nrf91 -IE:/482w/ncs/v2.5.0-rc1/zephyr/soc/arm/nordic_nrf/common/. -IE:/482w/ncs/v2.5.0-rc1/nrf/include -Itfm/install/interface/include -IE:/482w/ncs/v2.5.0-rc1/nrf/include/tfm -IE:/482w/ncs/v2.5.0-rc1/nrf/tests/include -Itfm/generated/interface/include -IE:/482w/ncs/v2.5.0-rc1/modules/hal/cmsis/CMSIS/Core/Include -IE:/482w/ncs/v2.5.0-rc1/zephyr/modules/cmsis/. -IE:/482w/ncs/v2.5.0-rc1/modules/hal/nordic/nrfx -IE:/482w/ncs/v2.5.0-rc1/modules/hal/nordic/nrfx/drivers/include -IE:/482w/ncs/v2.5.0-rc1/modules/hal/nordic/nrfx/mdk -IE:/482w/ncs/v2.5.0-rc1/zephyr/modules/hal_nordic/nrfx/. -IE:/482w/ncs/v2.5.0-rc1/modules/crypto/tinycrypt/lib/include -IE:/482w/ncs/v2.5.0-rc1/nrfxlib/nrf_modem/include -Imodules/nrf/subsys/nrf_security/src/include/generated -IE:/482w/ncs/v2.5.0-rc1/nrf/subsys/nrf_security/include -IE:/482w/ncs/v2.5.0-rc1/nrf/ext/oberon/psa/core/include -IE:/482w/ncs/v2.5.0-rc1/nrf/ext/oberon/psa/core/library -IE:/482w/ncs/v2.5.0-rc1/modules/crypto/mbedtls/include -IE:/482w/ncs/v2.5.0-rc1/modules/crypto/mbedtls/library -IE:/482w/ncs/v2.5.0-rc1/nrfxlib/crypto/nrf_oberon/include/mbedtls -IE:/482w/ncs/v2.5.0-rc1/nrfxlib/crypto/nrf_oberon/include -IE:/482w/ncs/v2.5.0-rc1/nrfxlib/softdevice_controller/include -Wshadow -fno-strict-aliasing -Os -imacros E:/482w/Nrf/application/custom_ncs_ble_service_sample-main/remote_controller/app1/zephyr/include/generated/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=E:/482w/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros E:/482w/ncs/v2.5.0-rc1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=E:/482w/Nrf/application/custom_ncs_ble_service_sample-main/remote_controller=CMAKE_SOURCE_DIR -fmacro-prefix-map=E:/482w/ncs/v2.5.0-rc1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=E:/482w/ncs/v2.5.0-rc1=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -std=c99 -MD -MT zephyr/drivers/bluetooth/CMakeFiles/drivers__bluetooth.dir/hci/h4.c.obj -MF zephyr\drivers\bluetooth\CMakeFiles\drivers__bluetooth.dir\hci\h4.c.obj.d -o zephyr/drivers/bluetooth/CMakeFiles/drivers__bluetooth.dir/hci/h4.c.obj -c E:/482w/ncs/v2.5.0-rc1/zephyr/drivers/bluetooth/hci/h4.c
In file included from E:\482w\ncs\v2.5.0-rc1\zephyr\include\zephyr\toolchain\gcc.h:92,
                 from E:\482w\ncs\v2.5.0-rc1\zephyr\include\zephyr\toolchain.h:50,
                 from E:\482w\ncs\v2.5.0-rc1\zephyr\include\zephyr\kernel_includes.h:19,
                 from E:\482w\ncs\v2.5.0-rc1\zephyr\include\zephyr\kernel.h:17,
                 from E:\482w\ncs\v2.5.0-rc1\zephyr\drivers\bluetooth\hci\h4.c:12:
E:\482w\ncs\v2.5.0-rc1\zephyr\include\zephyr\device.h:85:41: error: &amp;#39;__device_dts_ord_DT_CHOSEN_zephyr_bt_uart_ORD&amp;#39; undeclared here (not in a function)
   85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
E:\482w\ncs\v2.5.0-rc1\zephyr\include\zephyr\toolchain\common.h:132:26: note: in definition of macro &amp;#39;_DO_CONCAT&amp;#39;
  132 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
E:\482w\ncs\v2.5.0-rc1\zephyr\include\zephyr\device.h:85:33: note: in expansion of macro &amp;#39;_CONCAT&amp;#39;
   85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
E:\482w\ncs\v2.5.0-rc1\zephyr\include\zephyr\device.h:211:37: note: in expansion of macro &amp;#39;DEVICE_NAME_GET&amp;#39;
  211 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
E:\482w\ncs\v2.5.0-rc1\zephyr\include\zephyr\device.h:228:34: note: in expansion of macro &amp;#39;DEVICE_DT_NAME_GET&amp;#39;
  228 | #define DEVICE_DT_GET(node_id) (&amp;amp;DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
E:\482w\ncs\v2.5.0-rc1\zephyr\drivers\bluetooth\hci\h4.c:74:44: note: in expansion of macro &amp;#39;DEVICE_DT_GET&amp;#39;
   74 | static const struct device *const h4_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_bt_uart));
      |                                            ^~~~~~~~~~~~~
[229/271] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[230/271] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/sanity.c.obj
[231/271] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
[232/271] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/l2cap.c.obj
[233/271] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_os.c.obj
[234/271] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/pinctrl_nrf.c.obj
[235/271] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj
[236/271] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj
[237/271] Linking C static library zephyr\drivers\clock_control\libdrivers__clock_control.a
[238/271] Linking C static library zephyr\drivers\console\libdrivers__console.a
[239/271] Linking C static library zephyr\subsys\net\libsubsys__net.a
[240/271] Linking C static library zephyr\drivers\entropy\libdrivers__entropy.a
[241/271] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_lib.c.obj
[242/271] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/fault.c.obj
[243/271] Building C object modules/nrf/lib/dk_buttons_and_leds/CMakeFiles/..__nrf__lib__dk_buttons_and_leds.dir/dk_buttons_and_leds.c.obj
[244/271] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/gatt.c.obj
[245/271] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/conn.c.obj
[246/271] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/hci_core.c.obj
[247/271] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/att.c.obj
[248/271] Linking C static library zephyr\subsys\bluetooth\common\libsubsys__bluetooth__common.a
[249/271] Linking C static library zephyr\subsys\random\libsubsys__random.a
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: &amp;#39;E:\482w\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;e:\482w\Nrf\application\custom_ncs_ble_service_sample-main\remote_controller\app1&amp;#39;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developing Bluetooth Low Energy products using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/450391?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2023 20:33:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bf69a43-b700-4fea-ba2d-bb955a2e65a3</guid><dc:creator>Lbaili</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I use nRF9160-DK for this and I find I can&amp;#39;t insert code since there is no response when I click the ok button in insert-code.&lt;/p&gt;
&lt;p&gt;Here are my overlay file, hope you can find some mistake here. These errors really make me frustrated. Thanks for your help again!&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;/p&gt;
&lt;p&gt;Chang&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6735.nrf9160dk_5F00_nrf9160.overlay"&gt;devzone.nordicsemi.com/.../6735.nrf9160dk_5F00_nrf9160.overlay&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developing Bluetooth Low Energy products using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/450294?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2023 12:20:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:946a4df0-99a4-4bef-a309-0e24618aa859</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which board are you building for?&lt;/p&gt;
&lt;p&gt;Please upload the complete build log using Insert &amp;gt; Code.&lt;/p&gt;
[quote user=""] I try to add an overlay file and change SDK and the result is same.[/quote]
&lt;p&gt;Can you share the overlay file you added?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>