<?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>Compilation of nrf5340 on Bitbucket</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124414/compilation-of-nrf5340-on-bitbucket</link><description>Hi, 
 We are using Bitbucket as our CI system, and our project is based on the nRF5340. I can compile the project locally in VS Code without any issues. 
 Previously, we were using SDK v2.9 in both VS Code and Bitbucket, and everything worked fine. Due</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Sep 2025 15:42:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124414/compilation-of-nrf5340-on-bitbucket" /><item><title>RE: Compilation of nrf5340 on Bitbucket</title><link>https://devzone.nordicsemi.com/thread/549211?ContentTypeID=1</link><pubDate>Thu, 18 Sep 2025 15:42:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cbd7ef8-36e8-4f87-ba94-0f1e87eddaef</guid><dc:creator>DanielNG</dc:creator><description>&lt;p&gt;It seems like you are missing ncs_sysbuild_extensions somehow. Do you have stray/global Zephyr that you are pulling?&lt;br /&gt;Just to confirm, do you have the correct toolchain?&lt;br /&gt;Also you said you wanted 3.0.2 in the ticket but the yml showed 3.01? You want the 3.0.1 right?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Try to unset Zephyr base first&lt;br /&gt;&amp;nbsp;- unset ZEPHYR_BASE || true&lt;br /&gt;&lt;br /&gt;Then your normal west&lt;br /&gt; - pip3 install -U west&lt;br /&gt; - git clone --branch v3.0.1 --depth 1 &lt;a href="https://github.com/nrfconnect/sdk-nrf.git"&gt;github.com/.../sdk-nrf.git&lt;/a&gt;&lt;br /&gt; - cd sdk-nrf&lt;br /&gt; - west init -l .&lt;br /&gt; - west update&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Also some python requirements&lt;br /&gt; - pip3 install -r zephyr/scripts/requirements.txt \&lt;br /&gt; -r nrf/scripts/requirements.txt \&lt;br /&gt; -r bootloader/mcuboot/scripts/requirements.txt&lt;br /&gt;&lt;br /&gt;add these flags to the build to point to the correct zephyr-sdk&lt;br /&gt;&lt;br /&gt;west build --pristine always \&lt;br /&gt; -b nrf5340dk/nrf5340/cpuapp \&lt;br /&gt; --build-dir &amp;quot;$BITBUCKET_CLONE_DIR/build&amp;quot; \&lt;br /&gt; &amp;quot;$BITBUCKET_CLONE_DIR&amp;quot; \&lt;br /&gt; -- \&lt;br /&gt; -DZEPHYR_TOOLCHAIN_VARIANT=zephyr \&lt;br /&gt; -DZEPHYR_SDK_INSTALL_DIR=/opt/zephyr-sdk-0.16.5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(or whatever your version is)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Let me know if that works. &lt;br /&gt;If not then, did you install zephyr-sdk? which version? confirm your toolchain if it&amp;#39;s for nrf connect sdk 3.0.1 or 3.0.2&lt;br /&gt;&lt;br /&gt;You can refer to these documentations&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/installation/install_ncs.html"&gt;Installing the nRF Connect SDK&lt;br /&gt;&lt;/a&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/develop/getting_started/index.html#install-required-tools"&gt;Getting Started Guide&lt;/a&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/installation/install_ncs.html"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href="https://interrupt.memfault.com/blog/ncs-github-actions"&gt;Building Nordic nRF-Connect SDK Projects with GitHub Actions | Interrupt&lt;/a&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/installation/install_ncs.html"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation of nrf5340 on Bitbucket</title><link>https://devzone.nordicsemi.com/thread/549086?ContentTypeID=1</link><pubDate>Wed, 17 Sep 2025 19:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30dda60c-6ed0-4892-9396-5c16d051a89c</guid><dc:creator>Alireza Asvadi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried to compile it directly on the Ubuntu machine, but I got the same error :&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/pastedimage1758137165131v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation of nrf5340 on Bitbucket</title><link>https://devzone.nordicsemi.com/thread/549049?ContentTypeID=1</link><pubDate>Wed, 17 Sep 2025 13:52:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b34b6598-4513-4a26-8137-0bc8da694de5</guid><dc:creator>Alireza Asvadi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your help. I passed that step, but I still have another error:&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/pastedimage1758117027881v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Yes, our custom board uses nrf5340.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Alireza&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation of nrf5340 on Bitbucket</title><link>https://devzone.nordicsemi.com/thread/548990?ContentTypeID=1</link><pubDate>Wed, 17 Sep 2025 09:11:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41cf4e20-1e5a-4ed5-8512-fe4f862b85c0</guid><dc:creator>DanielNG</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;span&gt;nrf5340dk_nrf5340 is not the correct board name for the nrf5340 DK. &lt;br /&gt;Please try nrf5340dk/nrf5340/cpuapp in your yml&lt;br /&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/pastedimage1758100302545v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Unless nrf5340dk_nrf5340 is your custom board?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>