<?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>nRF5340 sample apps fail to build</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114274/nrf5340-sample-apps-fail-to-build</link><description>Hi, 
 
 NCS Version: 2.5.0 
 Zephyr RTOS Version: 3.4.99 
 Zephyr Toolchain Version: 0.16.4 
 
 I attempted to build some of the sample apps for the nRF5340 
 
 Multiprotocol RpMsg 
 Remote Shell 
 
 
 But the builds always fail due to the error below</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Aug 2024 17:47:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114274/nrf5340-sample-apps-fail-to-build" /><item><title>RE: nRF5340 sample apps fail to build</title><link>https://devzone.nordicsemi.com/thread/500275?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 17:47:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd55033f-0aef-4948-a924-c860a3aba392</guid><dc:creator>Parker Lloyd</dc:creator><description>&lt;p&gt;Sorry for the false alarm. We are using a devcontainer that is pulling from a forked Zephyr repo -- among some other peculiar configuration options.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have installed the SDK locally and the issue is not present anymore. Thanks for your help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Parker&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 sample apps fail to build</title><link>https://devzone.nordicsemi.com/thread/500148?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 08:55:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dc5844b-a1b9-4344-9b5a-9c0215b93c76</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attempted to build the two samples you mention now in NCS 2.5.0 and I unfortunately don&amp;#39;t see the same error message as you did for the remote shell and saw a successful build instead:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;(v2.5.0) C:\Nordic\SDKs\ncs\v2.5.0\nrf\samples\nrf5340\remote_shell&amp;gt; dir
 Volume in drive C is OSDisk
 Volume Serial Number is C62C-9A19

 Directory of C:\Nordic\SDKs\ncs\v2.5.0\nrf\samples\nrf5340\remote_shell

30.10.2023  12:10    &amp;lt;DIR&amp;gt;          .
30.10.2023  12:10    &amp;lt;DIR&amp;gt;          ..
30.10.2023  12:10    &amp;lt;DIR&amp;gt;          boards
30.10.2023  12:10               338 CMakeLists.txt
30.10.2023  12:10               716 Kconfig
30.10.2023  12:10               670 prj.conf
30.10.2023  12:10               641 prj_uart.conf
30.10.2023  12:10             1&amp;#160;720 README.rst
30.10.2023  12:10               638 sample.yaml
30.10.2023  12:10    &amp;lt;DIR&amp;gt;          src
               6 File(s)          4&amp;#160;723 bytes
               4 Dir(s)  106&amp;#160;792&amp;#160;370&amp;#160;176 bytes free

(v2.5.0) C:\Nordic\SDKs\ncs\v2.5.0\nrf\samples\nrf5340\remote_shell&amp;gt; west build -b nrf5340dk_nrf5340_cpuapp -p
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/Nordic/SDKs/ncs/v2.5.0/nrf/samples/nrf5340/remote_shell
-- CMake version: 3.20.5
-- Using NCS Toolchain 2.5.20231017.848171396279 for building. (C:/Nordic/SDKs/ncs/toolchains/c57af46cb7/cmake)
CMake Deprecation Warning at C:/Nordic/SDKs/ncs/v2.5.0/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
  &amp;#39;PYTHON_PREFER&amp;#39; variable is deprecated.  Please use Python3_EXECUTABLE
  instead.
Call Stack (most recent call first):
  C:/Nordic/SDKs/ncs/v2.5.0/zephyr/cmake/modules/python.cmake:16 (find_package)
  C:/Nordic/SDKs/ncs/v2.5.0/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
  C:/Nordic/SDKs/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/Nordic/SDKs/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:9 (find_package)


-- Found Python3: C:/Nordic/SDKs/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version &amp;quot;3.8.2&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter
-- Cache files will be written to: C:/Nordic/SDKs/ncs/v2.5.0/zephyr/.cache
-- Zephyr version: 3.4.99 (C:/Nordic/SDKs/ncs/v2.5.0/zephyr)
-- Found west (found suitable version &amp;quot;1.1.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)
-- Board: nrf5340dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.16.1 (C:/Nordic/SDKs/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (C:/Nordic/SDKs/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
-- Found Dtc: C:/Nordic/SDKs/ncs/toolchains/c57af46cb7/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found BOARD.dts: C:/Nordic/SDKs/ncs/v2.5.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Found devicetree overlay: C:/Nordic/SDKs/ncs/v2.5.0/nrf/samples/nrf5340/remote_shell/boards/nrf5340dk_nrf5340_cpuapp.overlay
-- Generated zephyr.dts: C:/Nordic/SDKs/ncs/v2.5.0/nrf/samples/nrf5340/remote_shell/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/Nordic/SDKs/ncs/v2.5.0/nrf/samples/nrf5340/remote_shell/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/Nordic/SDKs/ncs/v2.5.0/nrf/samples/nrf5340/remote_shell/build/zephyr/dts.cmake
Parsing C:/Nordic/SDKs/ncs/v2.5.0/nrf/samples/nrf5340/remote_shell/Kconfig
Loaded configuration &amp;#39;C:/Nordic/SDKs/ncs/v2.5.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig&amp;#39;
Merged configuration &amp;#39;C:/Nordic/SDKs/ncs/v2.5.0/nrf/samples/nrf5340/remote_shell/prj.conf&amp;#39;
Configuration saved to &amp;#39;C:/Nordic/SDKs/ncs/v2.5.0/nrf/samples/nrf5340/remote_shell/build/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;C:/Nordic/SDKs/ncs/v2.5.0/nrf/samples/nrf5340/remote_shell/build/zephyr/include/generated/autoconf.h&amp;#39;
-- Found GnuLd: c:/nordic/sdks/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version &amp;quot;2.38&amp;quot;)
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Nordic/SDKs/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- libmetal version: 1.4.0 (C:/Nordic/SDKs/ncs/v2.5.0/nrf/samples/nrf5340/remote_shell)
-- Build type:
-- Host:    Windows/AMD64
-- Target:  Generic/arm
-- Machine: arm
-- Looking for include file stdatomic.h
-- Looking for include file stdatomic.h - found
-- open-amp version: 1.4.0 (C:/Nordic/SDKs/ncs/v2.5.0/modules/lib/open-amp/open-amp)
-- Host:    Windows/AMD64
-- Target:  Generic/arm
-- Machine: arm
-- C_FLAGS :  -Wall -Wextra
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Nordic/SDKs/ncs/v2.5.0/nrf/samples/nrf5340/remote_shell/build
←[92m-- west build: building application
[2/200] Generating include/generated/version.h
-- Zephyr version: 3.4.99 (C:/Nordic/SDKs/ncs/v2.5.0/zephyr), build: v3.4.99-ncs1
[200/200] Linking C executable zephyr\zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       67508 B         1 MB      6.44%
             RAM:       25092 B       448 KB      5.47%
        IDT_LIST:          0 GB         2 KB      0.00%&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;NCS 2.5.0, using the corresponding toolchain, and building from terminal using &amp;quot;&lt;em&gt;west build -b nrf5340dk_nrf5340_cpuapp -p&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I assume you&amp;#39;re using the VS Code extension, right? If so, could you verify if both the toolchain and SDK version has been set to match, i.e both being 2.5.0?&lt;/p&gt;
&lt;p&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/8738.pastedimage1724835326278v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Do you see the same result when you&amp;#39;re using a pristine, unmodified sample?&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v2.6.0/samples/nrf5340/remote_shell"&gt;https://github.com/nrfconnect/sdk-nrf/tree/v2.6.0/samples/nrf5340/remote_shell&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>