<?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>Modifying SDK. Is that good practice?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20256/modifying-sdk-is-that-good-practice</link><description>Hello, 
 Is it a good practice to modify SDK files? 
 I mean, do you use SDK as integral part of your project and feel free to modify it, or do you try to avoid it and just use API&amp;#39;s as it is? 
 This question is a little bit related to this: devzone</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Mar 2017 06:43:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20256/modifying-sdk-is-that-good-practice" /><item><title>RE: Modifying SDK. Is that good practice?</title><link>https://devzone.nordicsemi.com/thread/78904?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 06:43:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62694739-edf6-42ba-8ea2-990cb67a6abc</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;I totally agree with both @endnode and @Emmanuel&lt;/p&gt;
&lt;p&gt;You should not change anything inside the SDK at all.&lt;/p&gt;
&lt;p&gt;This includes even adding a custom header file for a custom board, hence see my post / question about making sure your project source code is completely isolated from the SDK.&lt;/p&gt;
&lt;p&gt;In your case, I think you&amp;#39;d need to duplicate the files that you need to modify and change your makefile to use your copies instead of the SDK version&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying SDK. Is that good practice?</title><link>https://devzone.nordicsemi.com/thread/78902?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2017 18:24:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b2526d0-6fd6-4334-bfb2-931b1b47f162</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Totally agree with @emmanuel, usual practice is that you get the SDK source files, copy them to your project and modify there. During compilation you should have always project-specific PATH before SDK so modified files will get into the compilation/linking process (this is the way with compilation chains like GCC, can differ if you use different tools). And when you migrate to new SDK you check changes on these incriminated files and either port changes from new SDK into your project-specific files (if there is reason to keep your custom code) or abandon them and start using these from new SDK version (e.g. if it fixes the problem you were fixing manually before).&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying SDK. Is that good practice?</title><link>https://devzone.nordicsemi.com/thread/78903?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2017 15:46:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ae8ea1d-3ad3-4a21-8870-f3e5004afd7e</guid><dc:creator>manymany</dc:creator><description>&lt;p&gt;For me it is not a good idea because when you want to update the SDK 12.2 -&amp;gt;12.3 for instance you lose your modifications.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>