<?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 custom board build issue: ninja.build not found</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104051/nrf5340-custom-board-build-issue-ninja-build-not-found</link><description>Hello everyone, 
 i am developing code ( VS Code, Toolchain/SDK: 2.3.0 ) for a custom board based on nrf5340. I have been able to build a simple hello_world + Serial DFU example based on this guide that i found on DevZone faking my custom board as a nrf5340DK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Oct 2023 19:18:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104051/nrf5340-custom-board-build-issue-ninja-build-not-found" /><item><title>RE: nrf5340 custom board build issue: ninja.build not found</title><link>https://devzone.nordicsemi.com/thread/452367?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 19:18:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:119ebd5d-14f0-458b-a590-5dbbcfddac91</guid><dc:creator>frax84</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;This message just to highlight that I verified your answer but in my tickets list the post still is on &amp;quot;Waiting&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 custom board build issue: ninja.build not found</title><link>https://devzone.nordicsemi.com/thread/447444?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 11:09:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0265952a-ff7b-4a37-9bd3-9f457e0d24ef</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;You likely want to add TF-M after, so do not hesitate to do that.&lt;/p&gt;
&lt;p&gt;I just advocate that you make it work without first.&lt;br /&gt;This is also a good hint to where the error happens, and that it is probably related to adding TF-M.&lt;/p&gt;
&lt;p&gt;Let me know if you got any more questions&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 custom board build issue: ninja.build not found</title><link>https://devzone.nordicsemi.com/thread/447404?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 09:17:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7418c66-7196-4e1a-b306-ffd18658d2e2</guid><dc:creator>frax84</dc:creator><description>&lt;p&gt;Ok, i think i got the point. As you foresaw, building cpuapp and not cpuapp_ns works.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 custom board build issue: ninja.build not found</title><link>https://devzone.nordicsemi.com/thread/447377?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 07:57:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2990c5da-8b46-46b2-80a5-c97b6ecbb4e7</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="frax84"]&lt;strong&gt;nrf5340dk_nrf5340_cpuapp_ns&lt;/strong&gt;[/quote]
&lt;p&gt;That is for the TF-M build of the board.&lt;/p&gt;
&lt;p&gt;When first testing for a custom board, I recommend that you start with nrf5340dk_nrf5340_cpuapp and then go to the TF-M version after non-TF-M works. &lt;/p&gt;
&lt;p&gt;Reason that build file does not have the SPU, is that TF-M is controlling the SPU instead of the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 custom board build issue: ninja.build not found</title><link>https://devzone.nordicsemi.com/thread/447375?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 07:51:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72f2b369-122c-4b16-9e21-524b984d45dc</guid><dc:creator>frax84</dc:creator><description>&lt;p&gt;The board name is &amp;quot;&lt;strong&gt;nrf5340dk_nrf5340_cpuapp_ns&lt;/strong&gt;&amp;quot;. You can find attached the build/zephyr/zephyr.dts file of the build (Tollchain/SDK 2.3.0) for this board. I just rebuilt to be sure i was not hallucinating, so i can confirm it&amp;#39;s the right file &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7206.zephyr.dts"&gt;devzone.nordicsemi.com/.../7206.zephyr.dts&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 custom board build issue: ninja.build not found</title><link>https://devzone.nordicsemi.com/thread/447371?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 07:42:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb363110-50d3-4bdf-b5de-3bf8851419a6</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="frax84"]nor in the nrf5340dk built zephyr.dts file.[/quote]
&lt;p&gt;I can find this in my nRF5340DK build. &lt;br /&gt;What is the exact board name you build for here?&lt;br /&gt;Which sample do you use?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 custom board build issue: ninja.build not found</title><link>https://devzone.nordicsemi.com/thread/447367?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 07:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98d5094d-a3e5-415f-b47c-edbaab367e7d</guid><dc:creator>frax84</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;thank you for your feedback. I cannot find &amp;quot;SPU node&amp;quot; neither in my custom board nor in the nrf5340dk built zephyr.dts file. However, nrf5340dk fully builds, while my custom board fails to build.&lt;/p&gt;
&lt;p&gt;Maybe this issue could be related to the previous &amp;amp;sram0_shared issue? I&amp;#39;m wondering if in the custom board creation process there could be some missing dependencies somewhere?!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 custom board build issue: ninja.build not found</title><link>https://devzone.nordicsemi.com/thread/447352?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 06:48:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a19195cd-86a2-4f0c-8568-e84cd4c5fab1</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;CONFIG_HAS_HW_NRF_SPU is a Kconfig option automatically&amp;nbsp; generated by the devicetree: &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/fcaa60a99fa9d5256078ed28557856ec3709cfa9/soc/arm/nordic_nrf/Kconfig.peripherals#L206-L207"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/fcaa60a99fa9d5256078ed28557856ec3709cfa9/soc/arm/nordic_nrf/Kconfig.peripherals#L206-L207&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I suggest that you start by checking on your &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/fcaa60a99fa9d5256078ed28557856ec3709cfa9/dts/arm/nordic/nrf5340_cpuapp.dtsi#L70-L74"&gt;SPU node&lt;/a&gt; in the custom board DTS files.&lt;/p&gt;
&lt;p&gt;Tip: To check the built DTS-files, you can have a look at build/zephyr/zephyr.dts&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 custom board build issue: ninja.build not found</title><link>https://devzone.nordicsemi.com/thread/447262?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2023 13:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37983fba-b2c3-4b34-96a1-54ed3332a08b</guid><dc:creator>frax84</dc:creator><description>&lt;p&gt;Discovered something that could provide useful. I back-tracked the fprotect error on the&amp;nbsp; &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/18682391decaaa989c362ec8c5b65fd6203a5fdb/lib/fprotect/CMakeLists.txt"&gt;Cmake file&lt;/a&gt; where it is generated. I studied the possible if conditions and from what i searched this line should be true but it is not:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (CONFIG_HAS_HW_NRF_SPU)
  set(FPROTECT_SRC fprotect_spu.c)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Based on KConfig reference for &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/v1.5-branch/kconfig/CONFIG_HAS_HW_NRF_SPU.html#cmdoption-arg-CONFIG_HAS_HW_NRF_SPU"&gt;CONFIG_HAS_HW_NRF_SPU&lt;/a&gt;&amp;nbsp;the selection chain should be&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/v1.5-branch/kconfig/CONFIG_HAS_HW_NRF_SPU.html#cmdoption-arg-CONFIG_HAS_HW_NRF_SPU"&gt;CONFIG_HAS_HW_NRF_SPU&lt;/a&gt; ---(selected by)---&amp;gt; &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/v1.5-branch/kconfig/CONFIG_SOC_NRF5340_CPUAPP.html#cmdoption-arg-CONFIG_SOC_NRF5340_CPUAPP"&gt;SOC_NRF5340_CPUAPP&lt;/a&gt; ---(selected by)---&amp;gt;&amp;nbsp; &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/v1.5-branch/kconfig/CONFIG_SOC_NRF5340_CPUAPP_QKAA.html#cmdoption-arg-CONFIG_SOC_NRF5340_CPUAPP_QKAA"&gt;SOC_NRF5340_CPUAPP_QKAA&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;where the last symbol is already present in my defconfig file. Even the dependencies of the symbols are fine, so i really don&amp;#39;t get why that if condition is not triggered :S.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: Added links for improved readability&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>