<?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>Incompatible redefinition of macro</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20091/incompatible-redefinition-of-macro</link><description>Hello, 
 I set up a project on the base of &amp;quot;BLE_APP_UART&amp;quot; to which I added header files and configured the sdk_config.h 
 Now I get these warnings during compilaiton: 
 
 .\RTE\nRF_Drivers\nRF52832_xxAA\nrf_drv_config.h(30):
warning: #47-D: incompatible</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Mar 2017 13:00:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20091/incompatible-redefinition-of-macro" /><item><title>RE: Incompatible redefinition of macro</title><link>https://devzone.nordicsemi.com/thread/78221?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 13:00:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:086bbe96-24e9-426a-a2c2-c88bbd0df648</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you tried installing drivers in Keil using the Package installer? CMSIS Packs are &lt;a href="https://devzone.nordicsemi.com/blogs/880/deprecating-support-for-cmsis-pack-in-nrf5-sdk/"&gt;no longer supported&lt;/a&gt; by our SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Incompatible redefinition of macro</title><link>https://devzone.nordicsemi.com/thread/78220?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 12:53:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccdc7d84-8922-4214-af4a-bfbeefc4e7c8</guid><dc:creator>H4NNE5</dc:creator><description>&lt;p&gt;Wow, that&amp;#39;s super strange. The nrf_drv_config.h gets included from this folder &amp;quot;C:\Keil_v5 Microcontroller Development Kit\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\twi_master&amp;quot; though this one is NOT in the list of include paths!
But \components\drivers_nrf\twi_master is correctly in that list.
How is that possible?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Incompatible redefinition of macro</title><link>https://devzone.nordicsemi.com/thread/78219?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 12:36:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4945fded-f128-43ba-bfca-839dab062aed</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The &lt;em&gt;nrf_drv_twi.h&lt;/em&gt; of SDK 12.2 looks like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#ifndef NRF_DRV_TWI_H__
#define NRF_DRV_TWI_H__

#include &amp;quot;nordic_common.h&amp;quot;
#include &amp;quot;sdk_config.h&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Make sure that you have the path to the correct header file in your project:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[SDK_12_2_0_ROOT]\components\drivers_nrf\twi_master
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Incompatible redefinition of macro</title><link>https://devzone.nordicsemi.com/thread/78218?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 12:31:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fba9f8f3-1bb1-49cf-9f7e-9e583c29cac2</guid><dc:creator>H4NNE5</dc:creator><description>&lt;p&gt;Yes I stumbled across this answer before but these lines are included in nrf_drv_twi.h (which i use):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#ifndef NRF_DRV_TWI_H__
#define NRF_DRV_TWI_H__

#include &amp;quot;nordic_common.h&amp;quot;
#include &amp;quot;nrf_drv_config.h&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I got the example right out of SDK 12.2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Incompatible redefinition of macro</title><link>https://devzone.nordicsemi.com/thread/78217?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 12:15:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7e30363-6a73-4623-b7fb-5a2e6bed8065</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://devzone.nordicsemi.com/question/111877/undeclared-identifier-twi0_use_easy_dma-error-still-occurring/?answer=112113#post-id-112113"&gt;this answer&lt;/a&gt; (which you linked to yourself yesterday). &lt;em&gt;nrf_drv_config.h&lt;/em&gt; is no longer used in SDK 12.x, you should only include &lt;em&gt;sdk_config.h&lt;/em&gt;. Where did you get the example BLE_APP_UART from?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>