<?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 Embedded Studio relative paths</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32524/segger-embedded-studio-relative-paths</link><description>Hi, I would like to add source files to Projects with a reltive path. The reason being that I would like to have my own code in a cloud based directory and code from SDK in a local directory. It would also ease moving development between different computers</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Mar 2018 09:09:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32524/segger-embedded-studio-relative-paths" /><item><title>RE: Segger Embedded Studio relative paths</title><link>https://devzone.nordicsemi.com/thread/125304?ContentTypeID=1</link><pubDate>Wed, 21 Mar 2018 09:09:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ede1fa1f-7ea0-4913-a1f1-37b59dcb0180</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the clarification It is possible to&amp;nbsp;define your own macros:&amp;nbsp;select Tools from the menu bar in SES,&amp;nbsp; then open options -&amp;gt; Building -&amp;gt; Build -&amp;gt; Global macros.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;e.g.,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-4e13f6029406490f8ab2f3cf49d83f6f/pastedimage1521622830852v1.png" alt=" " /&gt; &lt;/p&gt;
&lt;p&gt;Once you have defined the macro you need to manually update the source paths.I think the easiest way of doing that is to do a &amp;#39;search and replace&amp;#39; in your *.emProject file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-4e13f6029406490f8ab2f3cf49d83f6f/pastedimage1521623054779v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger Embedded Studio relative paths</title><link>https://devzone.nordicsemi.com/thread/125223?ContentTypeID=1</link><pubDate>Tue, 20 Mar 2018 17:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5a5ee1b-0bad-4f87-91d7-cdc40674557d</guid><dc:creator>xcipolesv</dc:creator><description>&lt;p&gt;Sorry, I expressed myself a bit misleading.&lt;br /&gt;I noticed that there where relative paths also.&lt;br /&gt;But what I would like to is lika I clearified above. To have source files from, for example SDK, be related to a macro so that if I have SDK stored in a other directory on a different computer the macro could&amp;nbsp;have a&amp;nbsp;different value, not the path to every source file.&lt;br /&gt;&lt;br /&gt;Is there a macro expansion performed when the Project file is loaded?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger Embedded Studio relative paths</title><link>https://devzone.nordicsemi.com/thread/125099?ContentTypeID=1</link><pubDate>Tue, 20 Mar 2018 08:22:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:858bfef1-f181-4d42-8ef0-dfd92c9d9ff5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please open the *.emProject file in a text editor to confirm whether the source paths are relative or absolute.&amp;nbsp;I tried the same here with SES and relative paths were used both when I added existing and new source files.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>