<?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>segger studio: how to obtain a list of all files used in a project?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64719/segger-studio-how-to-obtain-a-list-of-all-files-used-in-a-project</link><description>Hi all, 
 in order to put the whole project under a decent version control system I need a list of all files used in the example project in segger studio. 
 The c source files, assembler files, libraries and hex softdevice can be easily extracted from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Aug 2020 13:27:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64719/segger-studio-how-to-obtain-a-list-of-all-files-used-in-a-project" /><item><title>RE: segger studio: how to obtain a list of all files used in a project?</title><link>https://devzone.nordicsemi.com/thread/264286?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 13:27:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35f7fd76-bfd4-40c0-ab3b-8c80277e8b84</guid><dc:creator>Hugo Habicht</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;running gcc over all files would be too time consuming particularly that I cannot generate a makefile (another post here).&lt;/p&gt;
&lt;p&gt;I think running git inside the path would not work because it will miss a lot of files in the SDK &amp;#39;components&amp;#39; directories a.s.o. I&amp;#39;m aware that you should not modify those but in order to replicate the whole system at a later stage I&amp;#39;ll have to have all files under version control.&lt;/p&gt;
&lt;p&gt;What I did in the mean time wrote a little REXX script that goes through the project file and all dependency files to collect all files including libraries, assembler, map elf and hex files. The ../../../ constructs (that are in my humble opinion a serious problem in Nordics directory structure) I could replace with a proper path using the project file directory.&lt;/p&gt;
&lt;p&gt;I also copied all files into a single work directory because path names over 110 characters long are simply ridiculous. I deduct that most people in Nordic are slaves of the mouse :-)&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger studio: how to obtain a list of all files used in a project?</title><link>https://devzone.nordicsemi.com/thread/264238?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 11:17:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c988238-3a10-483e-8db6-7ef19615b5a9</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I assume you&amp;#39;re working with the nRF5 SDK, not NCS.&lt;/p&gt;
&lt;p&gt;This may help:&amp;nbsp;&lt;a href="https://stackoverflow.com/questions/15976080/list-of-all-header-files-included-by-a-c-file"&gt;https://stackoverflow.com/questions/15976080/list-of-all-header-files-included-by-a-c-file&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, another approach is to only include your project in the version control system repo. E.g. if you are working with the example ble_app_uart and you&amp;#39;re using git as a version control system, then run &lt;em&gt;git init &lt;/em&gt;inside&amp;nbsp;&lt;em&gt;&amp;lt;path_to_sdk&amp;gt;\examples\ble_peripheral\ble_app_uart. &lt;/em&gt;&lt;/p&gt;
&lt;p&gt;If you have modified any of the defaults source or header files in the SDK, you have to include this in your repo as well. In this case, &lt;a href="https://devconnected.com/how-to-create-and-apply-git-patch-files/#:~:text=Conclusion-,Create%20Git%20Patch%20Files,your%20patches%20to%20be%20stored.&amp;amp;text=So%20will%20the%20format%2Dpatch%20command%20do%20when%20executed%3F"&gt;creating a patch&lt;/a&gt;&amp;nbsp;of the whole SDK&amp;nbsp;is useful. Then other people can simply download the appropriate SDK and apply the patch.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>