<?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>ninja: build stopped: subcommand failed.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77938/ninja-build-stopped-subcommand-failed</link><description>Hello Everyone, 
 i&amp;#39;am trying to build my Hello_world application but i&amp;#39;m having some issues and i can&amp;#39;t figure it out there&amp;#39;s some ninja file whch stopping the build does anyone knows how to solve this below is my output message thanks for help 
 
 Building</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Jul 2021 09:03:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77938/ninja-build-stopped-subcommand-failed" /><item><title>RE: ninja: build stopped: subcommand failed.</title><link>https://devzone.nordicsemi.com/thread/322174?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 09:03:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a4e448c-5dda-4efa-834e-53038bad71af</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;yeah, in fact it&amp;#39;s the main issue&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Downloading &amp;lsquo;merged.hex&amp;rsquo; to J-Link&lt;br /&gt;Programming 103.5 KB of addresses 00000000 &amp;mdash; 00019e43&lt;br /&gt;J-Link: Flash download: Bank 1 @ 0x00000000: 1 range affected (106496 bytes)&lt;br /&gt;J-Link: Flash download: Total: 2.197s (Prepare: 0.050s, Compare: 0.027s, Erase: 1.127s, Program &amp;amp; Verify: 0.984s, Restore: 0.007s)&lt;br /&gt;J-Link: Flash download: Program &amp;amp; Verify speed: 105 KB/s&lt;br /&gt;Download successful&lt;/p&gt;
&lt;p&gt;Many thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;very gratefull&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ninja: build stopped: subcommand failed.</title><link>https://devzone.nordicsemi.com/thread/322162?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 08:19:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2038d092-ab3a-465f-bf46-024d5e42b639</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;What happens if you do the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Open the Toolchain Manager, and open bash:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4532.pastedimage1597835179757v19.png" alt=" " /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;From bash,&amp;nbsp;run the following commands
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;cmd&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;where cmd&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When I run &lt;code&gt;where cmd&lt;/code&gt;, I get the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;siiv@SIIV MINGW64 ~/ncs/v1.6.0
$ where cmd.exe
C:\Windows\System32\cmd.exe&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do you have &lt;em&gt;System32&lt;/em&gt; in your environment variables?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/5102.MicrosoftTeams_2D00_image-_2800_5_2900_.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ninja: build stopped: subcommand failed.</title><link>https://devzone.nordicsemi.com/thread/322149?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 07:35:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e47bdcf-871c-4595-8db3-c5d062787968</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;i edited the right board name&amp;nbsp;&lt;/p&gt;
&lt;p&gt;but now m getting the ninja error again&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot; ninja: build stopped: subcommand faild &amp;quot;&lt;/p&gt;
&lt;p&gt;i will link you the fail output&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;FAILED: zephyr/zephyr.elf zephyr/zephyr.hex zephyr/zephyr.bin zephyr/zephyr.lst zephyr/zephyr.stat&lt;br /&gt;cmd.exe /C &amp;quot;cd . &amp;amp;&amp;amp; C:\Users\rzaafouri\ncs\v1.6.0\toolchain\opt\bin\arm-none-eabi-gcc.exe zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj -o zephyr\zephyr.elf -Wl,-T zephyr/linker_pass_final.cmd -Wl,-Map=C:/Users/rzaafouri/ncs/v1.5.1/zephyr/samples/hello_world/build/zephyr/zephyr_final.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a zephyr/arch/arch/arm/core/aarch32/cortex_m/mpu/libarch__arm__core__aarch32__cortex_m__mpu.a zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/libarch__arm__core__aarch32__cortex_m__cmse.a zephyr/lib/libc/minimal/liblib__libc__minimal.a zephyr/lib/posix/liblib__posix.a zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/drivers/gpio/libdrivers__gpio.a zephyr/drivers/serial/libdrivers__serial.a modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a modules/hal_nordic/libmodules__hal_nordic.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -L&amp;quot;c:/users/rzaafouri/ncs/v1.6.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/thumb/v8-m.main/nofp&amp;quot; -LC:/Users/rzaafouri/ncs/v1.5.1/zephyr/samples/hello_world/build/zephyr -lgcc zephyr/arch/common/libisr_tables.a C:/Users/rzaafouri/ncs/v1.5.1/nrfxlib/crypto/nrf_cc312_platform/lib/cortex-m33/soft-float/no-interrupts/libnrf_cc312_platform_0.9.7.a -mcpu=cortex-m33 -mthumb -mabi=aapcs -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -no-pie -Wl,-X -Wl,-N -Wl,--orphan-handling=warn &amp;amp;&amp;amp; cmd.exe /C &amp;quot;cd /D C:\Users\rzaafouri\ncs\v1.5.1\zephyr\samples\hello_world\build\zephyr &amp;amp;&amp;amp; C:\Users\rzaafouri\ncs\v1.5.1\toolchain\opt\bin\cmake.exe -E rename zephyr_final.map zephyr.map &amp;amp;&amp;amp; C:\Users\rzaafouri\ncs\v1.6.0\toolchain\opt\bin\arm-none-eabi-objcopy.exe --gap-fill 0xff --output-target=ihex --remove-section=.comment --remove-section=COMMON --remove-section=.eh_frame zephyr.elf zephyr.hex &amp;amp;&amp;amp; C:\Users\rzaafouri\ncs\v1.6.0\toolchain\opt\bin\arm-none-eabi-objcopy.exe --gap-fill 0xff --output-target=binary --remove-section=.comment --remove-section=COMMON --remove-section=.eh_frame zephyr.elf zephyr.bin &amp;amp;&amp;amp; C:\Users\rzaafouri\ncs\v1.6.0\toolchain\opt\bin\arm-none-eabi-objdump.exe -d -S zephyr.elf &amp;gt; zephyr.lst &amp;amp;&amp;amp; C:\Users\rzaafouri\ncs\v1.6.0\toolchain\opt\bin\arm-none-eabi-readelf.exe -e zephyr.elf &amp;gt; zephyr.stat&amp;quot;&amp;quot;&lt;br /&gt;&amp;#39;cmd.exe&amp;#39; is not recognized as an internal or external command,&lt;br /&gt;operable program or batch file.&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\Users\rzaafouri\ncs\v1.5.1\toolchain\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;C:\Users\rzaafouri\ncs\v1.5.1\zephyr\samples\hello_world\build&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ninja: build stopped: subcommand failed.</title><link>https://devzone.nordicsemi.com/thread/322146?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 07:28:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3207bef-d4fe-4e96-b2b0-a5b12fdc4748</guid><dc:creator>Simon</dc:creator><description>[quote user="Rihab"]No board named &amp;#39;nrf5340dk_cpuapp&amp;#39; found.[/quote]
&lt;p&gt;The error you see now is because you used the wrong board name. Use&amp;nbsp; &amp;#39;&lt;span&gt;nrf5340dk_nrf5340_cpuapp&lt;/span&gt;&amp;#39; and not&amp;nbsp;&lt;span&gt;&amp;#39;nrf5340dk_cpuapp&amp;#39;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ninja: build stopped: subcommand failed.</title><link>https://devzone.nordicsemi.com/thread/322143?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 07:23:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b689f8d-455d-459c-b790-351544c60bfe</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;Hello Simon,&amp;nbsp;&lt;br /&gt;thank you for your answer&amp;nbsp;&lt;br /&gt;Unfortunately, i&amp;#39;m always having a ninja related error&lt;/p&gt;
&lt;p&gt;do you please have an other suggestion how to fix it&amp;nbsp;&lt;br /&gt;could you please explain to me what can be the source of the error please&amp;nbsp;&lt;br /&gt;i&amp;#39;m blocked in this stage and i really need help&lt;br /&gt;m thanking you in advance&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Found Python3: C:/Users/rzaafouri/ncs/v1.6.0/toolchain/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter&lt;br /&gt;-- Found west (found suitable version &amp;quot;0.11.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)&lt;br /&gt;-- Board: nrf5340dk_cpuapp&lt;br /&gt;No board named &amp;#39;nrf5340dk_cpuapp&amp;#39; found.&lt;/p&gt;
&lt;p&gt;Please choose one of the following boards:&lt;/p&gt;
&lt;p&gt;CMake Error at C:/Users/rzaafouri/ncs/v1.5.1/zephyr/cmake/app/boilerplate.cmake:383 (message):&lt;br /&gt; Invalid BOARD; see above.&lt;br /&gt;Call Stack (most recent call first):&lt;br /&gt; C:/Users/rzaafouri/ncs/v1.5.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)&lt;br /&gt; C:/Users/rzaafouri/ncs/v1.5.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)&lt;br /&gt; CMakeLists.txt:5 (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: &amp;#39;C:\Users\rzaafouri\ncs\v1.5.1\toolchain\opt\bin\cmake.EXE&amp;#39; &amp;#39;-DWEST_PYTHON=C:\Users\rzaafouri\ncs\v1.5.1\toolchain\opt\bin\python.exe&amp;#39; &amp;#39;-BC:\Users\rzaafouri\ncs\v1.5.1\zephyr\samples\hello_world\build&amp;#39; &amp;#39;-SC:\Users\rzaafouri\ncs\v1.5.1\zephyr\samples\hello_world&amp;#39; -GNinja -DBOARD=nrf5340dk_cpuapp&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ninja: build stopped: subcommand failed.</title><link>https://devzone.nordicsemi.com/thread/322085?ContentTypeID=1</link><pubDate>Tue, 27 Jul 2021 14:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2311412-9ce7-405d-941a-c4aa8d6037fe</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Can you try the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Open the Toolchain Manager, and open bash:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1732.pastedimage1597835179757v19.png" alt=" " /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;From bash, go to zephyr/samples/hello_world&lt;/li&gt;
&lt;li&gt;Run the command:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;west build -b nrf5340dk_nrf5340_cpuapp -p&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Please report back to me if it works or not&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>