<?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>Toolchain manager issues: Cleaning the build files / moving code to another folder</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88546/toolchain-manager-issues-cleaning-the-build-files-moving-code-to-another-folder</link><description>I&amp;#39;m using NCS 1.9.1 and Segger SES 
 Following Nordic&amp;#39;s recommendation I first made a copy of BLE/peripheral_uart in order to preserve the original code and then used the toolchain manager to open the project. I selected nrf52DK_52832 as target and so</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jun 2022 09:43:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88546/toolchain-manager-issues-cleaning-the-build-files-moving-code-to-another-folder" /><item><title>RE: Toolchain manager issues: Cleaning the build files / moving code to another folder</title><link>https://devzone.nordicsemi.com/thread/372521?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2022 09:43:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e40ef11a-e1f1-4457-95b9-8b62fa25c266</guid><dc:creator>JONATHAN LL</dc:creator><description>[quote user="MDF"]What I dont understand: how is prj.conf used ? Is .config derived from prj.conf ? and, am I supposed to modify prj.conf ?[/quote]
&lt;p&gt;To move the configurations out of the build folder, so that it does not get deleted when you do a clean build then you need to ad them manually in the prj.conf file. So yes, use the prj.conf to keep the settings you want permanently.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We do have some tutorials and videos on how to get started with VS code. VS code will be the default editor going forward from NCS v2.0.0 as SEGGER will no longer be supported. It is possible to use SEGGER but it will not be tested by us and getting it to work properly will most lily be even greater hassle.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I would recommend to check out the &lt;a href="https://academy.nordicsemi.com/"&gt;DevAcadamy&lt;/a&gt; for a&amp;nbsp; better tutorial.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;As for the issues you have with NCS 2.0.0 there seem to have been a issue that broke previous installations when using SEGGER, so sorry about that. I hadde to remove the contents of the NCS folder and redownload, then previous versions worked with SEGGER again. It also caused issues with the manual insulation i have separately so if you also have manual installation that could cause som extra&amp;nbsp;hassle.&lt;br /&gt;&lt;br /&gt;AS for what is important or not, i would recommend that you check out our guide on NCS, it is a built outdated but i goes over all the different parts of the projects.&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-1-ncs-v1-4-0"&gt;nRF Connect SDK Tutorial - Part 1 | v1.5.0 - Getting Started - nRF Connect SDK guides - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Then there is the new docs,&amp;nbsp;&lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/kconfig/nrfkconfig.html"&gt;Features - nRF Connect for VS Code&lt;/a&gt;&amp;nbsp;, it is more intuitive in the VS code IDE, as the Konfig is structured in a more direct way and not hidden in menus as it is in SEGGER, this also removes the issue where removing the build folder brakes the project.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain manager issues: Cleaning the build files / moving code to another folder</title><link>https://devzone.nordicsemi.com/thread/371509?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 21:30:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4098c5e1-8f46-441c-bbdb-6ece251593f0</guid><dc:creator>MDF</dc:creator><description>&lt;p&gt;Hi Jonathan&lt;/p&gt;
&lt;p&gt;just to mention this, so far I never created a &amp;quot;clean&amp;quot; NCS project from scratch - people from Nordic recommended to me to use an existing sample code and modify it to my needs, and that worked so far not too bad.&lt;/p&gt;
&lt;p&gt;I made some tests : I started to work with a virgin copy of &amp;quot;peripheral_uart&amp;quot;. Since my target is PCA10040 compatible I selected &amp;quot;nrf52dk_nrf52832&amp;quot; so the build folder was created, including the zephyr-folder and a .config file.&lt;/p&gt;
&lt;p&gt;I used the Kconfig tool (Segger SES &amp;gt; Menu &amp;gt; Project &amp;gt; Configure NCS project) and modified some settings to my needs, such as bluetooth device name, some GATT services etc. Hit &amp;quot;configure&amp;quot; and then compile the code, so far so good.&lt;/p&gt;
&lt;p&gt;I copied the whole folder &amp;quot;peripheral_uart&amp;quot; into something like &amp;quot;test_uart&amp;quot; and tried to open this project through SES &amp;quot;open nRF connect SDK project&amp;quot;, but then the error pos up &amp;quot;cannot create project - create_nordic_project.py failed (1)&amp;quot;&lt;/p&gt;
&lt;p&gt;When I try to &amp;quot;clean the build directory&amp;quot; all the build folder is gone, including all my .config settings&lt;/p&gt;
&lt;p&gt;I tried this and then replaced the .config file manually from the original working version - and rebuild the solution : this seems to work.&lt;/p&gt;
&lt;p&gt;What I dont understand: how is prj.conf used ? Is .config derived from prj.conf ? and, am I supposed to modify prj.conf ?&lt;/p&gt;
&lt;p&gt;thanks for helping me, Matthias&lt;/p&gt;
&lt;p&gt;PS. I found another Q&amp;amp;A post about &amp;quot;Use of Pristine Build on VScode...&amp;quot; and I guess this is a similar issue ... It&amp;#39;s not clear to me which files in the build folders are important to generate the code I want.&lt;/p&gt;
&lt;p&gt;PPS. I tried yesterday an upgrade to NCS 2.0.0 - I don&amp;#39;t like being forced to using VS code, but hey, I tried it. After 4 crazy hours I downgraded everything because I even was not longer able to compile NCS 1.9.1 code and had suddenly issues with my Segger J-Link+&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain manager issues: Cleaning the build files / moving code to another folder</title><link>https://devzone.nordicsemi.com/thread/371216?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 15:49:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3707f34-930a-418b-b6a7-018d75c575ac</guid><dc:creator>MDF</dc:creator><description>&lt;p&gt;Ok : I was trying to create a copy of peripheral_uart and place it into f:\ncs\v1.9.1\myProjects\test1&lt;/p&gt;
&lt;p&gt;then use SES : File &amp;gt; open nrf connect sdk project&lt;/p&gt;
&lt;p&gt;I clicked on projects &amp;quot;...&amp;quot; to select the folder as explained above and then an error box appeared:&lt;/p&gt;
&lt;p&gt;&amp;quot;cannot create project - create_nordic_project.py failed (1)&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain manager issues: Cleaning the build files / moving code to another folder</title><link>https://devzone.nordicsemi.com/thread/371174?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 13:29:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ac80a43-d76f-41e6-b675-04c2c2e4de0d</guid><dc:creator>MDF</dc:creator><description>&lt;p&gt;I&amp;#39;m not talking about a copy of the whole NCS folder sub-structure, I&amp;#39;m referring to one single project. Also, I dont want to &amp;quot;create&amp;quot; a project - I already have a project, but I want to copy it to another destination on my harddisk.&lt;/p&gt;
&lt;p&gt;When I&amp;#39;m developing (other) code I very often have parallel project folders like &amp;quot;test-v1&amp;quot; and &amp;quot;test-v2&amp;quot; etc - which is sort of versioning system as long as I work with code. For Microsoft tools (eg VS/C++) or code which relies on GNU-makefiles the folder name and location doesn&amp;#39;t matter, as long as the content and subdirs are ok I can put the folders wherever I like and it compiles without any trouble - this seems not to work with NCS. It appears to me as if the NCS folder structure forces me to store my project files in a particular place because of the stored paths.&lt;/p&gt;
&lt;p&gt;The whole NCS build process only seems to work when I start SES via &amp;quot;nRF connect for desktop / toolchain manager&amp;quot;. This seems to limit me to use only projects which are stored under &amp;quot;samples/bluetooth&amp;quot; - I&amp;#39;m not able to navigate to another folder.&lt;/p&gt;
&lt;p&gt;Although there is an .emProject-File in the project&amp;#39;s build folder, this SES project file will open the project, but I&amp;#39;m not able to compile the code because it results in errors.&lt;/p&gt;
&lt;p&gt;You say I can copy config files outside the build folder : how would I know which config files I need ? and what I needs to be changed or configured then in order to match the new location ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain manager issues: Cleaning the build files / moving code to another folder</title><link>https://devzone.nordicsemi.com/thread/371156?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 12:59:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:845544b2-5106-4025-ae24-496bdd53686d</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Matthias,&lt;br /&gt;&lt;br /&gt;You can always just copy the contents of the NCS folder to have a &amp;quot;clean&amp;quot; version. This way you will keep a &amp;quot;untouched&amp;quot;&amp;nbsp;version.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]As example lets look at c:/ncs/v1.9.1/nrf/samples/bluetooth/peripheral_uart - this is the sample I&amp;#39;m referring to. What is necessary to move this to : f:\customerXYZ\BLE-development\product1[/quote]
&lt;p&gt;&lt;span&gt;When you create the project&amp;nbsp;you should be bale to select whatever path you want it in.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You can move you configs outside&amp;nbsp;of the build folder, this way you want delete&amp;nbsp;them when you remove the build folder.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>