<?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>Move sample project start point</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84921/move-sample-project-start-point</link><description>Hi, 
 Trying to do a very simple thing. 
 I want to start a new project from a sample project, but I want my new project to be in a different folder 
 
 
 Load nRF Connect 
 Install new v1.9.0 SDK/Toolchain 
 Open Segger Embedded Studio 
 Open nRF Connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Feb 2022 20:35:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84921/move-sample-project-start-point" /><item><title>RE: Move sample project start point</title><link>https://devzone.nordicsemi.com/thread/353950?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 20:35:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f29b733-e055-4d25-b3ca-3e9346a463a3</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;A side note, we do recommend testing the new&amp;nbsp;nRF Connect for VS Code which allows to easier create a freestanding project as you describe. &lt;a href="https://youtu.be/KwJtcPZHV30"&gt;See this video on our YouTube channel&lt;/a&gt;, part of the&amp;nbsp;&lt;a dir="auto" href="https://www.youtube.com/playlist?list=PLx_tBuQ_KSqEt7NK-H7Lu78lT2OijwIMl"&gt;nRF Connect for VS Code tutorials&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;-Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Move sample project start point</title><link>https://devzone.nordicsemi.com/thread/353949?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 20:32:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12170a7f-b558-4e6d-acb4-05b9539393ec</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;First off all, we recommend keeping the project path as short as possible as this may cause issues in the build process. Try to use e.g. C:\NCS\v1.9.0\&lt;/p&gt;
[quote user=""]Now before any build, copy the folder from v1.9.0/nrf/samples/bluetooth/peripheral_lbs to a different directory outside of the v1.9.0 SDK dir, say c:\projects\MyPeripheral_lbs[/quote]
&lt;p&gt;Please note that when pressing OK, SES will generate a build folder when you press generate. When you copy the folder from&amp;nbsp;nrf\samples\bluetooth\peripheral_lbs, this folder includes the following:&lt;/p&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;boards&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;build_nrf5340dk_nrf5340_cpuapp&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;child_image&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;src&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;CMakeLists.txt&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Kconfig&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;prj_minimal.conf&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;prj.conf&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;README.rst&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;sample.yaml&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;I replicated the issue here, following your first steps. Now I copy the whole folder to C:\Temp\peripheral_lbs. Now I select the project folder and choose the same board as I initially chose&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1645216269462v1.png" alt=" " /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When I build this, this will fail if I have not selected &amp;quot;Clean build folder&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;Creating solution peripheral_lbs.emProject
C:/NordicSemi/v1.9.0/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp -DBOARD_DIR=C:\NordicSemi\v1.9.0\zephyr\boards\arm\nrf5340dk_nrf5340 -BC:\Temp\peripheral_lbs\build_nrf5340dk_nrf5340_cpuapp -SC:\Temp\peripheral_lbs -DNCS_TOOLCHAIN_VERSION=1.9.0 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:\NordicSemi\v1.9.0\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
CMake Error: The current CMakeCache.txt directory C:/Temp/peripheral_lbs/build_nrf5340dk_nrf5340_cpuapp/CMakeCache.txt is different than the directory c:/NordicSemi/v1.9.0/nrf/samples/bluetooth/peripheral_lbs/build_nrf5340dk_nrf5340_cpuapp where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source &amp;quot;C:/Temp/peripheral_lbs/CMakeLists.txt&amp;quot; does not match the source &amp;quot;C:/NordicSemi/v1.9.0/nrf/samples/bluetooth/peripheral_lbs/CMakeLists.txt&amp;quot; used to generate cache.  Re-run cmake with a different source directory.

error: cmake failed
create_nordic_project.py failed (1)&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please delete the build folder and retry.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>