<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/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/"><channel><title>Compile switch</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/25439/compile-switch</link><description> 
Hi. 

 
I am using two Project targets, a Debug and a Release, and now I
what to test which one that is selected, but how do I do it? 

 
#ifdef Debug ?????????
 /* Set the Vector Table base location at 0x08000000 */
 NVIC_SetVectorTable(NVIC_VectTab_FLASH</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Compile switch</title><link>https://community.arm.com/thread/77405?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2009 05:59:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4a867e29-818f-46f6-b453-7bb25ad68c32</guid><dc:creator>soeren Panduro</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compile switch</title><link>https://community.arm.com/thread/55953?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2009 05:47:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:638525ff-2e85-4aba-87b3-ea9caa1c6128</guid><dc:creator>Stefan Hartwig</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi,&lt;br /&gt;
go to your project setting, tab C/C++ and add a DEBUG in the
Preprocessor Symbols field for the debug build. And RELEASE for your
release build.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compile switch</title><link>https://community.arm.com/thread/55955?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2009 05:46:32 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b20210d9-1889-4c5e-b60d-e55c55070ad7</guid><dc:creator>Christoph Franck</dc:creator><description>&lt;p&gt;&lt;p&gt;
One way would be to define an appropriate symbol in the compiler
settings dialog window.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compile switch</title><link>https://community.arm.com/thread/55952?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2009 05:46:07 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7ece0f7b-89e6-4c31-be11-b8d96bd5d8af</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
In the project options, you will have to define some symbol that
indicates which Target is being built.&lt;/p&gt;

&lt;p&gt;
It is a longstanding deficiency of uVision that it doesn&amp;#39;t make
such information directly available.&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;:-(&lt;/b&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>