<?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>Compilation error when enabling the bluetooth (CONFIG_BT=y)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125873/compilation-error-when-enabling-the-bluetooth-config_bt-y</link><description>Hello, 
 
 I use NCS 2.8.0 and toolchain 2.8.0 for my build. Also, the boad is a custom board with NRF52840. 
 My zephyr application is structured as show in this link : https://github.com/nrfconnect/ncs-example-application 
 My problem is that the program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Dec 2025 15:06:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125873/compilation-error-when-enabling-the-bluetooth-config_bt-y" /><item><title>RE: Compilation error when enabling the bluetooth (CONFIG_BT=y)</title><link>https://devzone.nordicsemi.com/thread/556358?ContentTypeID=1</link><pubDate>Fri, 05 Dec 2025 15:06:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7d93194-6821-4355-8c2c-ef084d87a081</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;It is great to know that your problem has been fixed. Thank you for the update.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation error when enabling the bluetooth (CONFIG_BT=y)</title><link>https://devzone.nordicsemi.com/thread/556331?ContentTypeID=1</link><pubDate>Fri, 05 Dec 2025 13:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d43c6d5-51ad-4c01-a1ed-ae889974a69b</guid><dc:creator>bayarn</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The build error in my program is due to the undeclared CONFIG_BT_CTRL.&lt;/p&gt;
&lt;p&gt;Indeed, the &lt;strong&gt;Kconfig.defconfig&lt;/strong&gt; file of my board was not created and then the config below was not declared to enable the&amp;nbsp;&lt;span&gt;SoC native Bluetooth LE controller :&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;config&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;BT_CTLR&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;default&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;BT&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;After correction, the program with the custom board DTS has its build complete when CONFIG_BT=y and CONFIG_BT_PERIPHERAL=y.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thank your very much for your time.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation error when enabling the bluetooth (CONFIG_BT=y)</title><link>https://devzone.nordicsemi.com/thread/556281?ContentTypeID=1</link><pubDate>Thu, 04 Dec 2025 19:03:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a37d9f-9ace-47aa-9b5f-592d1eb5505d</guid><dc:creator>bayarn</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I use a custom board with its devicetree.&lt;/p&gt;
&lt;p&gt;For the build log, I don&amp;#39;t know how to generate it. I&amp;#39;m not familiar with VS code.&lt;/p&gt;
&lt;p&gt;Furthermore, I&amp;#39;ve tried to build my program with a nRF52840DK overlay DTS by integrating all HW configuration of my custom board in it. The result is different with build complete.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;By checking the generated autoconf.h file for this later, some config are present like :&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;CONFIG_BT_HCI_VS&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;1&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;CONFIG_BT_CTLR&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define CONFIG_BT_LL_SOFTDEVICE 1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define CONFIG_BT_HAS_HCI_VS 1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define CONFIG_MPSL 1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;And others ....&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Perhaps, I&amp;#39;ve omitted some config with the custom board. I don&amp;#39;t know.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation error when enabling the bluetooth (CONFIG_BT=y)</title><link>https://devzone.nordicsemi.com/thread/555836?ContentTypeID=1</link><pubDate>Mon, 01 Dec 2025 09:48:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6924e33f-7e17-486b-8993-4ca08fddf7ed</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Which code sample have you used?&lt;br /&gt;&lt;br /&gt;Can you upload your complete build log?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation error when enabling the bluetooth (CONFIG_BT=y)</title><link>https://devzone.nordicsemi.com/thread/555779?ContentTypeID=1</link><pubDate>Fri, 28 Nov 2025 17:23:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:559b9e1b-82ec-47a1-9772-12aa63443a09</guid><dc:creator>bayarn</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;br /&gt;&lt;br /&gt;Thanks for your response.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Indeed, after verification in devicetree_generated.h, this DTS node ID concerns the &lt;strong&gt;bt_hci_sdc&lt;/strong&gt; module that is used when the bluetooth is activated.&lt;br /&gt;So, I don&amp;#39;t know&amp;nbsp;why this error occured knowing that the build is complete for other code sample with BLE.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I have the following configurations if it helps :&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_GPIO&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PM_DEVICE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_REQUIRES_FULL_LIBC&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_REQUIRES_FLOAT_PRINTF&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CMSIS_DSP&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CMSIS_DSP_FILTERING&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MAIN_STACK_SIZE&lt;/span&gt;&lt;span&gt;=8192&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_FLASH&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MPU_ALLOW_FLASH_WRITE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_FCB&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_FLASH_MAP&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SETTINGS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SETTINGS_FCB&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_EVENTS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_PERIPHERAL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_BAS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_SMP&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_DEVICE_NAME&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;My Device&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Best regards,&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation error when enabling the bluetooth (CONFIG_BT=y)</title><link>https://devzone.nordicsemi.com/thread/555742?ContentTypeID=1</link><pubDate>Fri, 28 Nov 2025 12:23:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:415aed45-5aee-443e-af91-5cc08502379c</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]&lt;strong&gt;./../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/subsys/bluetooth/host/libsubsys__bluetooth__host.a(&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;hci_core.c.obj):(.data.bt_dev+0x16c): undefined reference to `__device_dts_ord_98&amp;#39;&lt;/strong&gt;[/quote]
&lt;p&gt;This error might be devicetree problem for which there are some&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/build/dts/troubleshooting.html#undefined_reference_to_devicedtsordn"&gt;troubleshooting&lt;/a&gt;&amp;nbsp;options.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>