<?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>Creating different targets of a project (uVision v.5.23.0.0)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32912/creating-different-targets-of-a-project-uvision-v-5-23-0-0</link><description>Hello, 
 For my project I use uVision v.5.23.0.0; now I am willing to prepare two different targets using the same source files: one target for debug, with included the drivers for UART, and another one with UART-related stuff (and also other modules</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Jun 2020 06:14:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32912/creating-different-targets-of-a-project-uvision-v-5-23-0-0" /><item><title>RE: Creating different targets of a project (uVision v.5.23.0.0)</title><link>https://devzone.nordicsemi.com/thread/253920?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2020 06:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d6eb2f2-5c10-4337-b3de-9207d946781a</guid><dc:creator>MCFtm</dc:creator><description>&lt;p&gt;Sorry, I have to reopen this topic again. Whenever I right-click the file that I want to exclude from target-build, I&amp;#39;m only offered to change options for the complete component-class (s. screenshot). Could you please give any hint. Thx&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1591683269533v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating different targets of a project (uVision v.5.23.0.0)</title><link>https://devzone.nordicsemi.com/thread/127469?ContentTypeID=1</link><pubDate>Mon, 09 Apr 2018 14:25:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a851eca8-2a30-4c02-94bd-d38a836ea1c1</guid><dc:creator>Rune Holmgren</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To remove a file from one of the targets, you can use the &amp;quot;include in target build&amp;quot; option available in each file:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-3c569e01e2fd4eaa8712cff4f14867cf/keil_5F00_targets.mp4"&gt;devzone.nordicsemi.com/.../keil_5F00_targets.mp4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When it comes to the &amp;quot;sdk_config.h&amp;quot; issue I would use a define from &amp;quot;Preprocessor symbols&amp;quot; to include an additional or alternate version of sdk_config.h. There are a few ways to do this. My suggestion is to create an additional file &amp;quot;sdk_config_debug_override.h&amp;quot; which is included only in the debug project and uses undef and define to override values defined in the regular &amp;quot;sdk_config.h&amp;quot;. See screenshot below for an idea of what I mean.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/1040x1109/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-3c569e01e2fd4eaa8712cff4f14867cf/keil_5F00_defines.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If you end up deep into Keil settings, you may be able to get better help from ARM themself. I am an experienced user of Keil, but ARM are the ones with the expert knowledge.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Rune Holmgren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>