<?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>build doesn&amp;#39;t recognize zephyr files</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108315/build-doesn-t-recognize-zephyr-files</link><description>Hello, 
 im trying to do the first exercise in DevAcademy ( https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-2-bluetooth-le-advertising/topic/advertising-process/ ) and i downloaded the relevent git aip file and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Feb 2024 09:31:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108315/build-doesn-t-recognize-zephyr-files" /><item><title>RE: build doesn't recognize zephyr files</title><link>https://devzone.nordicsemi.com/thread/469971?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 09:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34d005c3-5abc-4991-85ec-1e61f2222563</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;I am running into the same problem, which is good in a way. Then we know that this isn&amp;#39;t really a symptom of there being anything wrong with your SDK.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="Raz_k"]&lt;p&gt;&lt;span&gt;However, when i build with the nRF52840DK_nrf52840&amp;nbsp;it is able to build and flash(using J-link) successfully.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;So you do have a DK on hand as well?&lt;/p&gt;
&lt;p&gt;The nRF9160 doesn&amp;#39;t have BLE capabilities, so you shouldn&amp;#39;t build anything in the BLE fundamentals course for that SoC. Another thing is that the Thingies (Thingy91 and Thingy53) might be a bit harder to work with. I would recommend using a development kit (DK) instead. &lt;a href="https://devzone.nordicsemi.com/support-private/support/294873#permalink=786564"&gt;For parhaps a better breakdown of the difference between the two, see here&lt;/a&gt;.&lt;/p&gt;
[quote user="Raz_k"]But im having trouble understanding how to test the program, since im connected via J-link and there is no outputs in the viewer app. In addition the device doesnt recognize&amp;nbsp;my USB data cable.[/quote]
&lt;p&gt;Is this to the Thingy or the DK? The Thingy does not have an OB debugger, which might be the issue.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: build doesn't recognize zephyr files</title><link>https://devzone.nordicsemi.com/thread/469588?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 15:01:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b7bb362-8c94-404b-b3df-45cbf0b3eb35</guid><dc:creator>Raz_k</dc:creator><description>&lt;p&gt;When defining&amp;nbsp;&lt;span&gt;nRF52DK_nrf52832 I get the same errors.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, when i build with the nRF52840DK_nrf52840&amp;nbsp;it is able to build and flash(using J-link) successfully.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But im having trouble understanding how to test the program, since im connected via J-link and there is no outputs in the viewer app. In addition the device doesnt recognize&amp;nbsp;my USB data cable.&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;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: build doesn't recognize zephyr files</title><link>https://devzone.nordicsemi.com/thread/469573?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 14:34:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eeccbe66-a522-4967-b519-5f1f1f19208a</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;When building it for the &amp;quot;nRF52DK_nrf52832&amp;quot; though?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: build doesn't recognize zephyr files</title><link>https://devzone.nordicsemi.com/thread/469570?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 14:30:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:644f4b1b-ec30-4af3-a7e8-d7819cc90f3c</guid><dc:creator>Raz_k</dc:creator><description>&lt;p&gt;I used the bme680 example and created it in the ncs directory, defined a&amp;nbsp;&lt;span&gt;thingy91_nrf52840&amp;nbsp;board.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;But still the same errors:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Building bme680_nrf52&lt;br /&gt;west build --build-dir c:/ncs/bme680_nrf52/build c:/ncs/bme680_nrf52&lt;/p&gt;
&lt;p&gt;[6/94] Building C object CMakeFiles/app.dir/src/main.c.obj&lt;br /&gt;FAILED: CMakeFiles/app.dir/src/main.c.obj &lt;br /&gt;C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF52840_XXAA -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__=1 -IC:/ncs/v2.5.2/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.5.2/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v2.5.2/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.5.2/nrf/include -IC:/ncs/v2.5.2/nrf/tests/include -IC:/ncs/v2.5.2/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.5.2/zephyr/modules/cmsis/. -IC:/ncs/v2.5.2/modules/hal/nordic/nrfx -IC:/ncs/v2.5.2/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.5.2/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.5.2/zephyr/modules/hal_nordic/nrfx/. -isystem C:/ncs/v2.5.2/nrfxlib/crypto/nrf_cc310_platform/include -fno-strict-aliasing -Os -imacros C:/ncs/bme680_nrf52/build/zephyr/include/generated/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.5.2/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=C:/ncs/bme680_nrf52=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.5.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.5.2=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -std=c99 -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c ../src/main.c&lt;br /&gt;In file included from C:/ncs/v2.5.2/zephyr/include/zephyr/sys/util_macro.h:34,&lt;br /&gt; from C:/ncs/v2.5.2/zephyr/include/zephyr/sys/atomic.h:16,&lt;br /&gt; from C:/ncs/v2.5.2/zephyr/include/zephyr/kernel_includes.h:21,&lt;br /&gt; from C:/ncs/v2.5.2/zephyr/include/zephyr/kernel.h:17,&lt;br /&gt; from ../src/main.c:7:&lt;br /&gt;../src/main.c: In function &amp;#39;main&amp;#39;:&lt;br /&gt;C:/ncs/v2.5.2/zephyr/include/zephyr/sys/util.h:93:55: error: size of unnamed array is negative&lt;br /&gt; 93 | #define ZERO_OR_COMPILE_ERROR(cond) ((int) sizeof(char[1 - 2 * !(cond)]) - 1)&lt;br /&gt; | ^&lt;br /&gt;C:/ncs/v2.5.2/zephyr/include/zephyr/sys/util_internal.h:72:26: note: in definition of macro &amp;#39;__DEBRACKET&amp;#39;&lt;br /&gt; 72 | #define __DEBRACKET(...) __VA_ARGS__&lt;br /&gt; | ^~~~~~~~~~~&lt;br /&gt;C:/ncs/v2.5.2/zephyr/include/zephyr/sys/util_internal.h:64:9: note: in expansion of macro &amp;#39;__GET_ARG2_DEBRACKET&amp;#39;&lt;br /&gt; 64 | __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)&lt;br /&gt; | ^~~~~~~~~~~~~~~~~~~~&lt;br /&gt;C:/ncs/v2.5.2/zephyr/include/zephyr/sys/util_internal.h:59:9: note: in expansion of macro &amp;#39;__COND_CODE&amp;#39;&lt;br /&gt; 59 | __COND_CODE(_XXXX##_flag, _if_1_code, _else_code)&lt;br /&gt; | ^~~~~~~~~~~&lt;br /&gt;C:/ncs/v2.5.2/zephyr/include/zephyr/sys/util_macro.h:180:9: note: in expansion of macro &amp;#39;Z_COND_CODE_1&amp;#39;&lt;br /&gt; 180 | Z_COND_CODE_1(_flag, _if_1_code, _else_code)&lt;br /&gt; | ^~~~~~~~~~~~~&lt;br /&gt;C:/ncs/v2.5.2/zephyr/include/zephyr/device.h:279:9: note: in expansion of macro &amp;#39;COND_CODE_1&amp;#39;&lt;br /&gt; 279 | COND_CODE_1(DT_HAS_COMPAT_STATUS_OKAY(compat), \&lt;br /&gt; | ^~~~~~~~~~~&lt;br /&gt;C:/ncs/v2.5.2/zephyr/include/zephyr/device.h:281:22: note: in expansion of macro &amp;#39;ZERO_OR_COMPILE_ERROR&amp;#39;&lt;br /&gt; 281 | (ZERO_OR_COMPILE_ERROR(0)))&lt;br /&gt; | ^~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;../src/main.c:14:42: note: in expansion of macro &amp;#39;DEVICE_DT_GET_ONE&amp;#39;&lt;br /&gt; 14 | const struct device *const dev = DEVICE_DT_GET_ONE(bosch_bme680);&lt;br /&gt; | ^~~~~~~~~~~~~~~~~&lt;br /&gt;[15/94] Building C object zephyr/CMakeFiles/zephyr.dir/C_/ncs/v2.5.2/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c.obj&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;c:\ncs\bme680_nrf52\build&amp;#39;&lt;/p&gt;
&lt;p&gt;* The terminal process terminated with exit code: 1. &lt;br /&gt; * Terminal will be reused by tasks, press any key to close it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: build doesn't recognize zephyr files</title><link>https://devzone.nordicsemi.com/thread/469566?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 14:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:107c1a55-eaef-4251-96a3-ab121eb20451</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Just to make sure that there is nothing wrong with the SDK, toolchain, environment, etc., could you try simply building it for an nRF52DK?&lt;/p&gt;
[quote user="Raz_k"]So i switch the SWD to nrf 52 in my thingy91 and build using &lt;span&gt;thingy91_nrf52840&amp;nbsp;board settings&lt;/span&gt;&lt;br /&gt;[/quote]
&lt;p&gt;I believe it actually should work for the nRF52840 on the Thingy91, though the nRF9160 itself does not have BLE capabilities, which might be reason why it failed - though from the error it doesn&amp;#39;t seem like that is the main issue.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: build doesn't recognize zephyr files</title><link>https://devzone.nordicsemi.com/thread/469555?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 14:14:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a59bd20-bef0-44a4-b7f7-2ab387d52eea</guid><dc:creator>Raz_k</dc:creator><description>&lt;p&gt;Hey&amp;nbsp;Elfving,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;A little background:&lt;br /&gt;My main goal is to advertise my BME&amp;nbsp;&lt;span&gt;sample&amp;nbsp;sensor to the app and to be able to control the sensor activation using BLE, meaning nrf connect app for mobile.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Im using the thingy91. I tried to build it in an thingy91_nrf9160_ns board settings.&lt;br /&gt;However i then saw that the&amp;nbsp;&lt;span&gt;exercise&amp;nbsp;is suitable only to nrf52.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;So i switch the SWD to nrf 52 in my thingy91 and build using &lt;span&gt;thingy91_nrf52840&amp;nbsp;board settings&lt;/span&gt;&lt;br /&gt;and it is still unable to build with the same errors as i mentioned before even after moved the directory to the path you mentioned.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, yes I checked the toolchain I&amp;#39;m using and it is exactly like you added in the your attached screenshot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: build doesn't recognize zephyr files</title><link>https://devzone.nordicsemi.com/thread/469540?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 13:42:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2afa7876-a7b7-446a-bd0a-97dfff8b5f19</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Could you try placing &lt;span&gt;BLEexample/bt-fund/ in /ncs/, maybe there is something strange going on with the west workspace.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What HW are you building the sample for?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you check and make sure that you are using a corresponding newer toolchain?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1708350060782v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: build doesn't recognize zephyr files</title><link>https://devzone.nordicsemi.com/thread/469345?ContentTypeID=1</link><pubDate>Sat, 17 Feb 2024 17:31:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe8d9349-36d3-4c93-83f0-8587da5d5031</guid><dc:creator>Raz_k</dc:creator><description>&lt;p&gt;i removed&amp;nbsp;&lt;span&gt;NCS version 1.9. I&amp;nbsp;and installed the newer version 2.5.2.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and still im unable to build:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;* Executing task: nRF Connect: Build: blefund_less1_exer1/build (active)&lt;/p&gt;
&lt;p&gt;Building blefund_less1_exer1&lt;br /&gt;west build --build-dir c:/nordic/BLEexample/bt-fund/lesson1/blefund_less1_exer1/build c:/nordic/BLEexample/bt-fund/lesson1/blefund_less1_exer1&lt;/p&gt;
&lt;p&gt;[4/74] Performing build step for &amp;#39;mcuboot_subimage&amp;#39;&lt;br /&gt;ninja: no work to do.&lt;br /&gt;[14/74] Building C object zephyr/drivers/bluetooth/CMakeFiles/drivers__bluetooth.dir/hci/h4.c.obj&lt;br /&gt;FAILED: zephyr/drivers/bluetooth/CMakeFiles/drivers__bluetooth.dir/hci/h4.c.obj &lt;br /&gt;C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF52840_XXAA -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 -IC:/ncs/v2.5.2/zephyr/subsys/bluetooth -IC:/ncs/v2.5.2/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.5.2/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v2.5.2/zephyr/include/zephyr/posix -IC:/ncs/v2.5.2/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.5.2/zephyr/subsys/settings/include -IC:/ncs/v2.5.2/nrf/include -IC:/ncs/v2.5.2/nrf/tests/include -IC:/ncs/v2.5.2/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.5.2/zephyr/modules/cmsis/. -IC:/ncs/v2.5.2/modules/hal/nordic/nrfx -IC:/ncs/v2.5.2/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.5.2/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.5.2/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.5.2/modules/crypto/tinycrypt/lib/include -IC:/ncs/v2.5.2/nrfxlib/softdevice_controller/include -isystem C:/ncs/v2.5.2/nrfxlib/crypto/nrf_cc310_platform/include -Wshadow -fno-strict-aliasing -Os -imacros C:/nordic/BLEexample/bt-fund/lesson1/blefund_less1_exer1/build/zephyr/include/generated/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.5.2/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=C:/nordic/BLEexample/bt-fund/lesson1/blefund_less1_exer1=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.5.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.5.2=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -D_POSIX_THREADS -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 C:/ncs/v2.5.2/zephyr/drivers/bluetooth/hci/h4.c&lt;br /&gt;In file included from C:/ncs/v2.5.2/zephyr/include/zephyr/toolchain/gcc.h:92,&lt;br /&gt; from C:/ncs/v2.5.2/zephyr/include/zephyr/toolchain.h:50,&lt;br /&gt; from C:/ncs/v2.5.2/zephyr/include/zephyr/kernel_includes.h:19,&lt;br /&gt; from C:/ncs/v2.5.2/zephyr/include/zephyr/kernel.h:17,&lt;br /&gt; from C:/ncs/v2.5.2/zephyr/drivers/bluetooth/hci/h4.c:12:&lt;br /&gt;C:/ncs/v2.5.2/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;br /&gt; 85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)&lt;br /&gt; | ^~~~~~~~~&lt;br /&gt;C:/ncs/v2.5.2/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro &amp;#39;_DO_CONCAT&amp;#39;&lt;br /&gt; 132 | #define _DO_CONCAT(x, y) x ## y&lt;br /&gt; | ^&lt;br /&gt;C:/ncs/v2.5.2/zephyr/include/zephyr/device.h:85:33: note: in expansion of macro &amp;#39;_CONCAT&amp;#39;&lt;br /&gt; 85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)&lt;br /&gt; | ^~~~~~~&lt;br /&gt;C:/ncs/v2.5.2/zephyr/include/zephyr/device.h:211:37: note: in expansion of macro &amp;#39;DEVICE_NAME_GET&amp;#39;&lt;br /&gt; 211 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))&lt;br /&gt; | ^~~~~~~~~~~~~~~&lt;br /&gt;C:/ncs/v2.5.2/zephyr/include/zephyr/device.h:228:34: note: in expansion of macro &amp;#39;DEVICE_DT_NAME_GET&amp;#39;&lt;br /&gt; 228 | #define DEVICE_DT_GET(node_id) (&amp;amp;DEVICE_DT_NAME_GET(node_id))&lt;br /&gt; | ^~~~~~~~~~~~~~~~~~&lt;br /&gt;C:/ncs/v2.5.2/zephyr/drivers/bluetooth/hci/h4.c:74:44: note: in expansion of macro &amp;#39;DEVICE_DT_GET&amp;#39;&lt;br /&gt; 74 | static const struct device *const h4_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_bt_uart));&lt;br /&gt; | ^~~~~~~~~~~~~&lt;br /&gt;[23/74] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.5.2/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;c:\nordic\BLEexample\bt-fund\lesson1\blefund_less1_exer1\build&amp;#39;&lt;/p&gt;
&lt;p&gt;* The terminal process terminated with exit code: 1. &lt;br /&gt; * Terminal will be reused by tasks, press any key to close it.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;plus i tried in 1.9.1 version to remove the /zephyr/ path in the include, but it didnt help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: build doesn't recognize zephyr files</title><link>https://devzone.nordicsemi.com/thread/469228?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2024 12:31:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8c0b204-3dbd-456b-844e-573d6441467a</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;Ah yes. I see that you are running it in NCS version 1.9. I think the newer&amp;nbsp;versions are the ones that are tested/supported with this course. Try NCS NCS 2.4.0 and above. There are a few changes made inbetween these NCS versions, and 1.9 is starting to get old. If you have a larger ongoing project I would understand if you stick to one NCS version for a longer period of time, but for learning NCS and BLE I would recommend upgrading to the latest NCS versions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When it comes to the issue itself, it seems that you need to write #include &amp;lt;/sys/printk.h&amp;gt; in NCS1.9, not&amp;nbsp;#include &amp;lt;zephyr/sys/printk.h&amp;gt;. But nevermind that, just install a newer version.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: build doesn't recognize zephyr files</title><link>https://devzone.nordicsemi.com/thread/469068?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2024 14:49:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3725803-0a1f-49ea-a69c-e043c94c76fa</guid><dc:creator>Raz_k</dc:creator><description>&lt;p&gt;Hey&amp;nbsp;&lt;span&gt;Elfving,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes i am able to build and flash an example&amp;nbsp;of BME sample&amp;nbsp;sensor, that is located in&amp;nbsp;C:\bme680&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and its CMakeList.txt is:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;# Copyright (c) 2018 Bosch Sensortec GmbH&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;# SPDX-License-Identifier: Apache-2.0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;cmake_minimum_required&lt;/span&gt;&lt;span&gt;(VERSION 3.20.0)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;find_package&lt;/span&gt;&lt;span&gt;(Zephyr REQUIRED HINTS &lt;/span&gt;&lt;span&gt;$ENV{ZEPHYR_BASE}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;project&lt;/span&gt;&lt;span&gt;(bme680)&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;FILE&lt;/span&gt;&lt;span&gt;(GLOB app_sources src/*.c)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;target_sources&lt;/span&gt;&lt;span&gt;(app PRIVATE &lt;/span&gt;&lt;span&gt;${app_sources}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;i tried to include the same librarys that where unable to include and build in the original issue file:&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;zephyr/sys/printk.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;zephyr/sys/byteorder.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;zephyr/kernel.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;zephyr/drivers/gpio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;soc.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;zephyr/bluetooth/bluetooth.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;zephyr/bluetooth/hci.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;zephyr/bluetooth/conn.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;zephyr/bluetooth/uuid.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;zephyr/bluetooth/gatt.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;but i get the same errors as i mentioned&amp;nbsp;before.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: build doesn't recognize zephyr files</title><link>https://devzone.nordicsemi.com/thread/468987?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2024 10:33:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fed17801-61fc-480e-810a-d4ba2eceb7a0</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;That is odd. Are you able to simply build a default sample from the SDK?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>