<?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>NCS Uses wrong python version when built with bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92933/ncs-uses-wrong-python-version-when-built-with-bootloader</link><description>Across several NRF Connect SDK versions, I have noticed that when built with the bootloader, the child image is built with the wrong environment and does not use the vendored installation. Here are some logs that the show that the bootloader and child</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Nov 2022 16:46:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92933/ncs-uses-wrong-python-version-when-built-with-bootloader" /><item><title>RE: NCS Uses wrong python version when built with bootloader</title><link>https://devzone.nordicsemi.com/thread/395390?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 16:46:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c54b499-a69a-4ebe-bf1d-5388200ac3b6</guid><dc:creator>warcomeb-am</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;I have the same problem mentioned above but in my case, the issue is present both in VS and Terminal opened by the Toolchain manager.&lt;/p&gt;
&lt;p&gt;The log is (I have just opened a &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93806/multicore-example-problem-during-generation-files"&gt;ticket&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Building prova_multicore
west build --build-dir /Users/warcomeb/Projects/x/prova_multicore/build_nonna /Users/warcomeb/Projects/x/prova_multicore --pristine --board nrf5340dk_nrf5340_cpuapp -- -DNCS_TOOLCHAIN_VERSION:STRING=&amp;quot;NONE&amp;quot; -DDTC_OVERLAY_FILE:STRING=&amp;quot;/Users/warcomeb/Projects/x/prova_multicore/nrf5340dk_nrf5340_cpuapp.overlay&amp;quot; -DCONF_FILE:STRING=&amp;quot;/Users/warcomeb/Projects/x/prova_multicore/prj.conf&amp;quot;

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/warcomeb/Projects/x/prova_multicore
-- Found Python3: /opt/nordic/ncs/toolchains/v2.1.0/bin/python3.9 (found suitable exact version &amp;quot;3.9.6&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /Users/warcomeb/Library/Caches/zephyr
-- Zephyr version: 3.1.99 (/opt/nordic/ncs/v2.1.0/zephyr)
-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf5340dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.14.1 (/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk)
-- Found dtc: /opt/nordic/ncs/toolchains/v2.1.0/bin/dtc (found suitable version &amp;quot;1.6.1&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found toolchain: zephyr 0.14.1 (/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk)
-- Found BOARD.dts: /opt/nordic/ncs/v2.1.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Found devicetree overlay: /Users/warcomeb/Projects/x/prova_multicore/nrf5340dk_nrf5340_cpuapp.overlay
-- Generated zephyr.dts: /Users/warcomeb/Projects/x/prova_multicore/build_nonna/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /Users/warcomeb/Projects/x/prova_multicore/build_nonna/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /Users/warcomeb/Projects/x/prova_multicore/build_nonna/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /Users/warcomeb/Projects/x/prova_multicore/build_nonna/zephyr/dts.cmake
Parsing /Users/warcomeb/Projects/x/prova_multicore/Kconfig
Loaded configuration &amp;#39;/opt/nordic/ncs/v2.1.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig&amp;#39;
Merged configuration &amp;#39;/Users/warcomeb/Projects/x/prova_multicore/prj.conf&amp;#39;
Configuration saved to &amp;#39;/Users/warcomeb/Projects/x/prova_multicore/build_nonna/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/Users/warcomeb/Projects/x/prova_multicore/build_nonna/zephyr/include/generated/autoconf.h&amp;#39;
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc

=== child image b0 -  begin ===
loading initial cache file /Users/warcomeb/Projects/x/prova_multicore/build_nonna/b0/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /opt/nordic/ncs/v2.1.0/nrf/samples/bootloader
CMake Error at /opt/nordic/ncs/toolchains/v2.1.0/Cellar/cmake/3.20.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python3: Found unsuitable version &amp;quot;3.9.7&amp;quot;, but required is
  exact version &amp;quot;3.7&amp;quot; (found /usr/local/bin/python3, found components:
  Interpreter)
Call Stack (most recent call first):
  /opt/nordic/ncs/toolchains/v2.1.0/Cellar/cmake/3.20.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE)
  /opt/nordic/ncs/toolchains/v2.1.0/Cellar/cmake/3.20.5/share/cmake/Modules/FindPython/Support.cmake:3165 (find_package_handle_standard_args)
  /opt/nordic/ncs/toolchains/v2.1.0/Cellar/cmake/3.20.5/share/cmake/Modules/FindPython3.cmake:485 (include)
  /opt/nordic/ncs/v2.1.0/zephyr/cmake/modules/python.cmake:46 (find_package)
  /opt/nordic/ncs/v2.1.0/zephyr/cmake/modules/zephyr_default.cmake:121 (include)
  /opt/nordic/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /opt/nordic/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:9 (find_package)


-- Configuring incomplete, errors occurred!
CMake Error at /opt/nordic/ncs/v2.1.0/nrf/cmake/multi_image.cmake:409 (message):
  CMake generation for b0 failed, aborting.  Command: 1
Call Stack (most recent call first):
  /opt/nordic/ncs/v2.1.0/nrf/cmake/multi_image.cmake:150 (add_child_image_from_source)
  /opt/nordic/ncs/v2.1.0/nrf/samples/CMakeLists.txt:68 (add_child_image)


-- Configuring incomplete, errors occurred!
See also &amp;quot;/Users/warcomeb/Projects/x/prova_multicore/build_nonna/CMakeFiles/CMakeOutput.log&amp;quot;.
See also &amp;quot;/Users/warcomeb/Projects/x/prova_multicore/build_nonna/CMakeFiles/CMakeError.log&amp;quot;.
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/v2.1.0/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/toolchains/v2.1.0/bin/python3 -B/Users/warcomeb/Projects/x/prova_multicore/build_nonna -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DDTC_OVERLAY_FILE:STRING=/Users/warcomeb/Projects/x/prova_multicore/nrf5340dk_nrf5340_cpuapp.overlay -DCONF_FILE:STRING=/Users/warcomeb/Projects/x/prova_multicore/prj.conf -S/Users/warcomeb/Projects/x/prova_multicore&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Best&lt;/p&gt;
&lt;p&gt;Marco&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Uses wrong python version when built with bootloader</title><link>https://devzone.nordicsemi.com/thread/391966?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 21:15:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67156fad-a9cc-4f89-a9b5-7a7d6ffb113f</guid><dc:creator>jtrueb</dc:creator><description>&lt;p&gt;Since I opened the issue, Apple&amp;#39;s documentation on how to install python to use with tensorflow changed to a different pattern:&amp;nbsp;&lt;a href="https://developer.apple.com/metal/tensorflow-plugin/"&gt;https://developer.apple.com/metal/tensorflow-plugin/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This resolves the surface issue that wrong version of python was picked from my path because the old Apple installation script would put itself at the beginning of your PATH when you opened a new shell.&lt;/p&gt;
&lt;p&gt;The caveat, which I think is more important and a potential&amp;nbsp;attack vector, is that the build process includes unexpected changes to the environment.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think it is a reasonable expectation for the build to only use environment variables, tools, or files from inside&amp;nbsp;the toolchain or my freestanding application. I did not have my toolchain configured to use PATH in VS Code, it was set to 2.1.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Uses wrong python version when built with bootloader</title><link>https://devzone.nordicsemi.com/thread/391573?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 07:23:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2dff420-9a6c-40eb-8e60-8493dafff8ae</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am glad to hear that you managed to fix the issue with Toolchain Manager. If the issue show up again, please open a new ticket to report the bug.&lt;/p&gt;
&lt;p&gt;Thank you for testing with command line as well, and for sharing the build log. I have reported the issue to the development team, and will keep you updated.&lt;/p&gt;
&lt;p&gt;In the meantime, a workaround is to remove the Python 3.10 installation from path as you said, but since Zephyr selects the first Python installation in path it should also work to add the correct Python installation (3.9 installed by Toolchain Manager) before 3.10 in path.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Uses wrong python version when built with bootloader</title><link>https://devzone.nordicsemi.com/thread/391281?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 16:49:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9dcb043-eb8e-4c0c-ace1-a9d45fc98087</guid><dc:creator>jtrueb</dc:creator><description>&lt;p&gt;Good news for staying on topic on this issue. After opening and closing the Toolchain Manager several times and clicking Open Terminal for every toolchain versions several times, eventually Terminal windows would open whenever I clicked Open Terminal, so Terminal launch not working reliably on macOS&amp;nbsp;is a separate Toolchain Manager issue. It works for me now.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The same environment error in VS Code reproduces in a terminal with the v2.1.0 toolchain.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;(base) jwtrueb@dhcp-10-101-37-8 nirs-monitor % west build --build-dir /Users/jwtrueb/Desktop/workspace/nirs-monitor/build /Users/jwtrueb/Desktop/workspace/nirs-monitor --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING=&amp;quot;NONE&amp;quot; -DBOARD_ROOT:STRING=&amp;quot;/Users/jwtrueb/Desktop/workspace/nirs-monitor;/Users/jwtrueb/Desktop/workspace/nirs-monitor/&amp;quot; -DCONFIG_DEBUG_OPTIMIZATIONS:STRING=&amp;quot;y&amp;quot; -DCONFIG_DEBUG_THREAD_INFO:STRING=&amp;quot;y&amp;quot; -DCONF_FILE:STRING=&amp;quot;/Users/jwtrueb/Desktop/workspace/nirs-monitor/prj.conf&amp;quot; -DDTC_OVERLAY_FILE:STRING=&amp;quot;/Users/jwtrueb/Desktop/workspace/nirs-monitor/boards/nrf52840dk_nrf52840.overlay&amp;quot;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- west build: making build dir /Users/jwtrueb/Desktop/workspace/nirs-monitor/build pristine&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- west build: generating a build system&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;Loading Zephyr default modules (Zephyr base).&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Application: /Users/jwtrueb/Desktop/workspace/nirs-monitor&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Found Python3: /opt/nordic/ncs/toolchains/v2.1.0/bin/python3.9 (found suitable exact version &amp;quot;3.9.6&amp;quot;) found components: Interpreter&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Cache files will be written to: /Users/jwtrueb/Library/Caches/zephyr&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Zephyr version: 3.1.99 (/opt/nordic/ncs/v2.1.0/zephyr)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Board: nrf52840dk_nrf52840&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Found host-tools: zephyr 0.14.1 (/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Found dtc: /opt/nordic/ncs/toolchains/v2.1.0/bin/dtc (found suitable version &amp;quot;1.6.1&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Found toolchain: zephyr 0.14.1 (/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Found BOARD.dts: /opt/nordic/ncs/v2.1.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Found devicetree overlay: /Users/jwtrueb/Desktop/workspace/nirs-monitor/boards/nrf52840dk_nrf52840.overlay&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;-- Generated zephyr.dts: /Users/jwtrueb/Desktop/workspace/nirs-monitor/build/zephyr/zephyr.dts&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Generated devicetree_unfixed.h: /Users/jwtrueb/Desktop/workspace/nirs-monitor/build/zephyr/include/generated/devicetree_unfixed.h&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Generated device_extern.h: /Users/jwtrueb/Desktop/workspace/nirs-monitor/build/zephyr/include/generated/device_extern.h&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Including generated dts.cmake file: /Users/jwtrueb/Desktop/workspace/nirs-monitor/build/zephyr/dts.cmake&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;Parsing /Users/jwtrueb/Desktop/workspace/nirs-monitor/Kconfig&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;Loaded configuration &amp;#39;/opt/nordic/ncs/v2.1.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig&amp;#39;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;Merged configuration &amp;#39;/Users/jwtrueb/Desktop/workspace/nirs-monitor/prj.conf&amp;#39;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;Merged configuration &amp;#39;/Users/jwtrueb/Desktop/workspace/nirs-monitor/build/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;Configuration saved to &amp;#39;/Users/jwtrueb/Desktop/workspace/nirs-monitor/build/zephyr/.config&amp;#39;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;Kconfig header saved to &amp;#39;/Users/jwtrueb/Desktop/workspace/nirs-monitor/build/zephyr/include/generated/autoconf.h&amp;#39;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- The C compiler identification is GNU 10.3.0&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- The CXX compiler identification is GNU 10.3.0&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- The ASM compiler identification is GNU&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Found assembler: /opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Found Python3: /opt/nordic/ncs/toolchains/v2.1.0/bin/python3.9 (found version &amp;quot;3.9.6&amp;quot;) found components: Interpreter&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;=== child image mcuboot -&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;begin ===&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;loading initial cache file /Users/jwtrueb/Desktop/workspace/nirs-monitor/build/mcuboot/child_image_preload.cmake&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;Loading Zephyr default modules (Zephyr base).&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Application: /opt/nordic/ncs/v2.1.0/bootloader/mcuboot/boot/zephyr&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Found Python3: /Users/jwtrueb/miniforge3/bin/python3.10 (found suitable exact version &amp;quot;3.10.6&amp;quot;) found components: Interpreter&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Cache files will be written to: /Users/jwtrueb/Library/Caches/zephyr&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Zephyr version: 3.1.99 (/opt/nordic/ncs/v2.1.0/zephyr)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Board: nrf52840dk_nrf52840&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Found host-tools: zephyr 0.14.1 (/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Found dtc: /opt/nordic/ncs/toolchains/v2.1.0/bin/dtc (found suitable version &amp;quot;1.6.1&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Found toolchain: zephyr 0.14.1 (/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Found BOARD.dts: /opt/nordic/ncs/v2.1.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;-- Found devicetree overlay: /opt/nordic/ncs/v2.1.0/bootloader/mcuboot/boot/zephyr/dts.overlay&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;Traceback (most recent call last):&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;File &amp;quot;/opt/nordic/ncs/v2.1.0/zephyr/scripts/dts/gen_defines.py&amp;quot;, line 33, in &amp;lt;module&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;from devicetree import edtlib&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;File &amp;quot;/opt/nordic/ncs/v2.1.0/zephyr/scripts/dts/python-devicetree/src/devicetree/edtlib.py&amp;quot;, line 77, in &amp;lt;module&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;import yaml&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;ModuleNotFoundError: No module named &amp;#39;yaml&amp;#39;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Uses wrong python version when built with bootloader</title><link>https://devzone.nordicsemi.com/thread/391277?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 16:22:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a36a1b22-cb7c-42a0-9790-3031ecd2b8c7</guid><dc:creator>jtrueb</dc:creator><description>&lt;p&gt;I can only build with the NCS toolchain via VS Code.&lt;/p&gt;
&lt;p&gt;Nothing happens when I click Open Terminal in the NRF Connect for Desktop (v3.12.1)&amp;nbsp;&amp;nbsp;Toolchain Manager (v1.2.0).&lt;/p&gt;
&lt;p&gt;There is an error in the logs of the Toolchain Manager&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/pastedimage1666108046163v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:11.474&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Initializing environments...&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:11.546&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;nrfutil-toolchain-manager 0.8.0 (92e632145e1f406f57a364e4214d7a4528af5a3a 2022-08-31)&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:11.550&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Locally exsisting environment found at /opt/nordic/ncs/v1.9.1/toolchain&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:11.550&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;With version: v1.9.1&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:11.550&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;With west found: yes&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:11.637&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v2.1.0 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:11.637&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v2.0.2 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:12.416&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v2.0.0 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:12.417&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v2.0.0-rc2 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:12.417&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v2.0.1 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:12.419&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v2.0.2 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:12.419&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v2.1.0 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:12.420&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v2.1.0-rc1 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:12.420&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v2.1.0-rc2 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-error"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:12.937&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Failed to get the library versions: RangeError: Maximum call stack size exceeded&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.501&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.4.99-dev1 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.513&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.4.1 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.519&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.4.0 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.524&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.3.2 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.622&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.3.1 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.669&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.3.0 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.687&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.3.0-rc1 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.803&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.4.2 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.821&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.5.0-rc1 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.829&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.5.0 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.832&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.5.1-rc1 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.841&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.5.1 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.847&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.6.0 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.855&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.6.1 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.909&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.7.0 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.931&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.7.1 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.934&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.8.0 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.937&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.9.0 has been added to the list&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;10:46:13.941&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Toolchain v1.9.1 has been added to the list&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;&lt;/div&gt;
&lt;p class="core19-log-cell"&gt;&lt;/p&gt;
&lt;p class="core19-log-cell"&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p class="core19-log-cell"&gt;&lt;code&gt;If I manually open a terminal, add the v2.1.0 toolchain to my PATH, source the zephyr-env.sh, set the SDK toolchain variant, and build with the build command from VS Code, the build fails due to CMAKE_PREFIX_PATH issues.&lt;/code&gt;&lt;/p&gt;
&lt;p class="core19-log-cell"&gt;&lt;br /&gt;&lt;br /&gt;(base) jwtrueb@dhcp-10-101-37-8 bin % which python3&lt;br /&gt;/opt/nordic/ncs/toolchains/v2.1.0/bin/python3&lt;br /&gt;(base) jwtrueb@dhcp-10-101-37-8 bin % which west&amp;nbsp;/opt/nordic/ncs/toolchains/v2.1.0/bin/west&lt;/p&gt;
&lt;p&gt;(base) jwtrueb@dhcp-10-101-37-8 nirs-monitor % echo $ZEPHYR_BASE&lt;br /&gt;/opt/nordic/ncs/v2.1.0/zephyr&lt;br /&gt;(base) jwtrueb@dhcp-10-101-37-8 nirs-monitor % echo $ZEPHYR_SDK_INSTALL_DIR&lt;br /&gt;/opt/nordic/ncs/toolchains/v2.1.0&lt;br /&gt;(base) jwtrueb@dhcp-10-101-37-8 nirs-monitor % echo $ZEPHYR_TOOLCHAIN_VARIANT&lt;br /&gt;zephyr&lt;br /&gt;(base) jwtrueb@dhcp-10-101-37-8 nirs-monitor % west build --build-dir /Users/jwtrueb/Desktop/workspace/nirs-monitor/build /Users/jwtrueb/Desktop/workspace/nirs-monitor --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING=&amp;quot;NONE&amp;quot; -DBOARD_ROOT:STRING=&amp;quot;/Users/jwtrueb/Desktop/workspace/nirs-monitor;/Users/jwtrueb/Desktop/workspace/nirs-monitor/&amp;quot; -DCONFIG_DEBUG_OPTIMIZATIONS:STRING=&amp;quot;y&amp;quot; -DCONFIG_DEBUG_THREAD_INFO:STRING=&amp;quot;y&amp;quot; -DCONF_FILE:STRING=&amp;quot;/Users/jwtrueb/Desktop/workspace/nirs-monitor/prj.conf&amp;quot; -DDTC_OVERLAY_FILE:STRING=&amp;quot;/Users/jwtrueb/Desktop/workspace/nirs-monitor/boards/nrf52840dk_nrf52840.overlay&amp;quot;&lt;br /&gt;-- west build: making build dir /Users/jwtrueb/Desktop/workspace/nirs-monitor/build pristine&lt;br /&gt;-- west build: generating a build system&lt;br /&gt;Loading Zephyr default modules (Zephyr base).&lt;br /&gt;-- Application: /Users/jwtrueb/Desktop/workspace/nirs-monitor&lt;br /&gt;-- Found Python3: /opt/nordic/ncs/toolchains/v2.1.0/bin/python3.9 (found suitable exact version &amp;quot;3.9.6&amp;quot;) found components: Interpreter&lt;br /&gt;-- Cache files will be written to: /Users/jwtrueb/Library/Caches/zephyr&lt;br /&gt;-- Zephyr version: 3.1.99 (/opt/nordic/ncs/v2.1.0/zephyr)&lt;br /&gt;-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)&lt;br /&gt;-- Board: nrf52840dk_nrf52840&lt;br /&gt;CMake Error at /opt/nordic/ncs/v2.1.0/zephyr/cmake/modules/verify-toolchain.cmake:79 (find_package):&lt;br /&gt; Could not find a package configuration file provided by &amp;quot;Zephyr-sdk&amp;quot;&lt;br /&gt; (requested version 0.13.1) with any of the following names:&lt;/p&gt;
&lt;p&gt;Zephyr-sdkConfig.cmake&lt;br /&gt; zephyr-sdk-config.cmake&lt;/p&gt;
&lt;p&gt;Add the installation prefix of &amp;quot;Zephyr-sdk&amp;quot; to CMAKE_PREFIX_PATH or set&lt;br /&gt; &amp;quot;Zephyr-sdk_DIR&amp;quot; to a directory containing one of the above files. If&lt;br /&gt; &amp;quot;Zephyr-sdk&amp;quot; provides a separate development package or SDK, be sure it has&lt;br /&gt; been installed.&lt;br /&gt;Call Stack (most recent call first):&lt;br /&gt; /opt/nordic/ncs/v2.1.0/zephyr/cmake/modules/zephyr_default.cmake:121 (include)&lt;br /&gt; /opt/nordic/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)&lt;br /&gt; /opt/nordic/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)&lt;br /&gt; CMakeLists.txt:12 (find_package)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;-- Configuring incomplete, errors occurred!&lt;br /&gt;FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/v2.1.0/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/toolchains/v2.1.0/bin/python3 -B/Users/jwtrueb/Desktop/workspace/nirs-monitor/build -GNinja -DBOARD=nrf52840dk_nrf52840 -DNCS_TOOLCHAIN_VERSION:STRING=NONE &amp;#39;-DBOARD_ROOT:STRING=/Users/jwtrueb/Desktop/workspace/nirs-monitor;/Users/jwtrueb/Desktop/workspace/nirs-monitor/&amp;#39; -DCONFIG_DEBUG_OPTIMIZATIONS:STRING=y -DCONFIG_DEBUG_THREAD_INFO:STRING=y -DCONF_FILE:STRING=/Users/jwtrueb/Desktop/workspace/nirs-monitor/prj.conf -DDTC_OVERLAY_FILE:STRING=/Users/jwtrueb/Desktop/workspace/nirs-monitor/boards/nrf52840dk_nrf52840.overlay -S/Users/jwtrueb/Desktop/workspace/nirs-monitor&lt;br /&gt;(base) jwtrueb@dhcp-10-101-37-8 nirs-monitor %&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there documentation on how to use the NRF Connect SDK in a standalone terminal setting like this? To avoid CMake issues, is Open Terminal or VS Code the only supported way to build with the toolchain with the automatic installation? I know there is documentation on how to use west and whatnot, but I am more so referencing how to make sure that the NRF Connect SDK environment is installed and the terminal session has the shell environment setup to point to the right toolchain utilities. There is documentation on how to manually set everything up, but to my understanding some things were automatically installed by the Toolchain Manager in a way that doesn&amp;#39;t match the manual installation documentation.&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Uses wrong python version when built with bootloader</title><link>https://devzone.nordicsemi.com/thread/391193?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 12:26:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4f086be-78d3-4116-a128-41d51dcee743</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the detailed explanation and logs.&lt;/p&gt;
&lt;p&gt;Do you get the same if you build with a terminal opened via Toolchain Manager, or does this only happen in VS Code?&lt;/p&gt;
&lt;p&gt;The issue is the Python version selected by Zephyr, which is used by imgtool among others. Zephyr selects the first Python installation in path, unless the environment is set up correctly. This should be done automatically, but there seems to be a bug in VS Code or some of the other tools causing this to not be set correctly. If you can test with terminal it would be of great help in order to narrow down where the issue is.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>