<?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>ncs build(pristine) process taking longer time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91788/ncs-build-pristine-process-taking-longer-time</link><description>Hi 
 1. Longer build(pristine) time 
 When trying to build the application on vscode, the build(pristine) process is taking more than 5min during each time. Is this the expected ideal build time. If YES, is there a way to reduce the build time 
 System</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Oct 2022 14:10:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91788/ncs-build-pristine-process-taking-longer-time" /><item><title>RE: ncs build(pristine) process taking longer time</title><link>https://devzone.nordicsemi.com/thread/392429?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2022 14:10:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe931230-4137-4166-ad6a-3456f59e429d</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, tchag&lt;br /&gt;&lt;br /&gt;No problem at all - I am happy to help, and glad to hear that you are seeing &amp;lt; 1 minute build times for incremental builds! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open another ticket if you should encounter any other issues or questions in the future.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs build(pristine) process taking longer time</title><link>https://devzone.nordicsemi.com/thread/391511?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 16:14:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85250f90-dd2b-4140-80a5-d951bf4e29c4</guid><dc:creator>tchag</dc:creator><description>&lt;p&gt;Thank&amp;nbsp;you for comprehensive explanation.&lt;br /&gt;&lt;br /&gt;Yes I do the pristine build when there is changes to the input files. and yes during the regular build (during dev) the build times are &amp;lt; 1min&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;tchag&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs build(pristine) process taking longer time</title><link>https://devzone.nordicsemi.com/thread/391509?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 16:05:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:573ad6ba-6358-49fe-893b-485be5b135dc</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Thank you for providing the information and build-times.&lt;br /&gt;It seems strange to me that the build takes longer on the desktop compared to the laptop, but both I would say that both buildtimes are within the &amp;#39;couple of minutes&amp;#39; that is to be expected when performing a pristine build.&lt;br /&gt;&lt;br /&gt;It should be noted that you usually do not need to perform a pristine build, so your usual time building the project every time you have made a change will be far lower than this. The regular build action checks which files that have been altered, and which of their dependencies that needs to be updated, and compiles only those. Thus, when you are developing your project code, and doing a lot of incremental builds, you usually will finish the build in &amp;lt; 1 minute, as opposed to the pristine build (which rebuilds the entire project and all its dependencies).&lt;br /&gt;Pristine build is really only needed when you have made changes to your input files (kconfig/prj.conf and devicetree files, primarily).&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs build(pristine) process taking longer time</title><link>https://devzone.nordicsemi.com/thread/391497?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 15:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28efee91-8c3e-4b6f-8899-0c0f3b3634a3</guid><dc:creator>tchag</dc:creator><description>&lt;p&gt;Build Time - Laptop&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;non-secure build -&amp;gt;&amp;nbsp;under 2min&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;secure build&amp;nbsp; &amp;nbsp;-&amp;gt;&amp;nbsp;40-50sec&lt;/p&gt;
&lt;p&gt;Build Time - &lt;span&gt;Desktop&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;non-secure build -&amp;gt; 5 min (4min 56sec)&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;secure build&amp;nbsp; &amp;nbsp;-&amp;gt;&amp;nbsp;3min 15sec&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;br /&gt;the report generation (Desktop)worked after updating&amp;nbsp;the toolchain manager. Here is the report&amp;nbsp;generated (Desktop)&lt;pre class="ui-code" data-mode="text"&gt;# nRFConnect System Report - 2022-10-19T15-32-07.838Z

- System:     Dell Inc. Precision 3240 Compact
- BIOS:       Dell Inc. DELL   - 1072009
- CPU:        1 x Intel Core™ i7-10700 2.9 GHz 16 cores (8 physical)
- Memory:     6.2 GB free of 15.7 GB total
- Filesystem: C: (NTFS) 474.4 GB 69.0% used

- OS:         Microsoft Windows 11 Pro (10.0.22621) Windows ia32

- Versions
    - kernel: 10.0.22621
    - git: 2.37.3.windows.1
    - node: 14.16.0
    - python: 3.10.7
    - python3: 
    - nrf-device-lib-js: 0.4.13
    - nrf-device-lib: 0.12.8
    - nrfjprog DLL: 10.16.0
    - JLink: JLink_V7.66a

- Connected devices:
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs build(pristine) process taking longer time</title><link>https://devzone.nordicsemi.com/thread/391482?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 14:52:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b4e9d57-6b76-423c-a18d-23db503ae27b</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello tchag,&lt;/p&gt;
[quote user="xyz1111"]I have tried the build on another laptop it did build fast but the PC I&amp;#39;m using outreach specs when compared to the&amp;nbsp;laptop but not sure why the build is taking longer time.[/quote]
&lt;p&gt;Could you detail roughly how long the pristine build is taking in both these cases?&lt;br /&gt;A couple of minutes is to be expected for a large project, since it will recompile the whole project. It also depends on the specs of your laptop, as you mention.&lt;/p&gt;
[quote user="xyz1111"]is it due to installation error or the system report feature is broken (since I have updated the toolchain twice in this period)[/quote]
&lt;p&gt;Did you turn on the verbose logging in the &amp;#39;about&amp;#39; pane of the toolchain manager prior to generating the report?&lt;br /&gt;If not, the report could be pretty sparse if everything completes successfully.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs build(pristine) process taking longer time</title><link>https://devzone.nordicsemi.com/thread/391215?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 13:45:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e409e5fb-0205-44ca-9561-e3b199b7c45c</guid><dc:creator>tchag</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;I have tried the build on another laptop it did build fast but the PC I&amp;#39;m using outreach specs when compared to the&amp;nbsp;laptop but not sure why the build is taking longer time.&lt;/p&gt;
&lt;p&gt;When I tried to generate system report on nrf connect desktop(toolchain Manager) application, no report is generated, it just says&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666100598002v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;is it due to installation error or the system report feature is broken (since I have updated the toolchain twice in this period)&lt;/p&gt;
&lt;p&gt;--&lt;/p&gt;
&lt;p&gt;tchag&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs build(pristine) process taking longer time</title><link>https://devzone.nordicsemi.com/thread/390849?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2022 19:14:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16d32efc-5ee7-4c86-8e50-750765815388</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, tchag&lt;br /&gt;&lt;br /&gt;Thank you for your extreme patience with this. I have been out of office for some time, but now I am back.&lt;br /&gt;&lt;br /&gt;Do you still require technical support with this issue, or has the issue since resolved?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs build(pristine) process taking longer time</title><link>https://devzone.nordicsemi.com/thread/385556?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2022 15:49:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41e6d674-002f-458a-9f70-5cbdd5a03e3e</guid><dc:creator>tchag</dc:creator><description>&lt;p&gt;1. Yes I did install the and nRF command Line tools sdk using Toolchain manager and as well&amp;nbsp;&lt;span&gt;VSC code extension&amp;nbsp;&lt;/span&gt;&lt;span&gt;by pressing &amp;#39;open VSC&amp;#39; in the toolchain manager tab)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But if I remember&amp;nbsp;correctly I have disabled&amp;nbsp;cmake&amp;nbsp; VSC code extension when it prompted&amp;nbsp;to disable. Will this cause an issue&lt;br /&gt;&lt;br /&gt;2. When I try to restart the debug&amp;nbsp;service after executing couple of minutes, the device automatically gets disconnected. - Cortex debug v1.6.3&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1662738052387v2.png" /&gt;&lt;br /&gt;&lt;br /&gt;I followed and installed v1.6.0 for cortex debug - havent faced the issue this morning, but will keep looking if I face such issue&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/91423/vsc-debugging-stops-working-with-gdb-major-version-error/383653"&gt;RE: VSC debugging stops working with GDB major version error&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs build(pristine) process taking longer time</title><link>https://devzone.nordicsemi.com/thread/385408?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2022 01:09:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14fe050d-c39b-491d-baa7-c44e8a7abc10</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="xyz1111"]thank you[/quote]
&lt;p&gt;No problem, I am happy to help! :)&amp;nbsp;&lt;/p&gt;
[quote user="xyz1111"]1. Does it require any additional tools to be installed beacuse when i click on debug majority of the time the device gets disconnected and have to restart the debug process[/quote]
&lt;p&gt;Did you install the SDK through the Toolchain manager, as well as the VSC code extension (by pressing &amp;#39;open VSC&amp;#39; in the toolchain manager tab)? You should also make sure to have installed&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools"&gt;the nRF Command line tools&lt;/a&gt;.&lt;/p&gt;
[quote user="xyz1111"]2. also&amp;nbsp;not able to restart the debug. Always have to suspend the current operation and have to start again[/quote]
&lt;p&gt;Could you elaborate on what you are seeing when this happens?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs build(pristine) process taking longer time</title><link>https://devzone.nordicsemi.com/thread/385400?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 23:57:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78ea9a89-ec18-4962-8563-dea70483fb84</guid><dc:creator>tchag</dc:creator><description>&lt;p&gt;sure.. thank you&lt;br /&gt;&lt;br /&gt;I do have a another question reg debugging using vs code. &lt;br /&gt;1. Does it require any additional tools to be installed beacuse when i click on debug majority of the time the device gets disconnected and have to restart the debug process&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;2. also&amp;nbsp;not able to restart the debug. Always have to suspend the current operation and have to start again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs build(pristine) process taking longer time</title><link>https://devzone.nordicsemi.com/thread/385399?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 23:49:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ab70e59-bb9c-47b9-9005-98964d9bf875</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Yes, the pristine build option can take a couple of minutes to complete since this builds the entire project again from &amp;#39;scratch&amp;#39;. Fortunately, you can use the regular build option (non-pristine) whenever you just have made changes to your source files.&lt;br /&gt;I.e it is only really when you have made changes to the input files (such as prj.conf/Kconfigs/devicetree files) that you&amp;nbsp;&lt;em&gt;need&lt;/em&gt; to use the pristine build option. In this case, it is required to use the pristine build option in order for your changes to the input files to be taken into account.&amp;nbsp;&lt;br /&gt;The regular build option should complete much faster! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>