<?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>SDK 12.2 require preprocessor symbol NRF52832 or similar to be defined?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19689/sdk-12-2-require-preprocessor-symbol-nrf52832-or-similar-to-be-defined</link><description>I am upgrading from v12.0 to 12.2. I am using Linux, Eclipse, GNU ARM and Eclipse managed make. 
 I get compiler error ...nrfsdk12.2/components/drivers_nrf/hal/nrf_gpio.h:39:2: error: #error &amp;quot;Not supported.&amp;quot; Which is related to the symbol GPIO_COUNT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Mar 2017 23:39:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19689/sdk-12-2-require-preprocessor-symbol-nrf52832-or-similar-to-be-defined" /><item><title>RE: SDK 12.2 require preprocessor symbol NRF52832 or similar to be defined?</title><link>https://devzone.nordicsemi.com/thread/76596?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 23:39:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acc31711-ece2-4b61-b93f-fcd3c3d210cf</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;This issue affects not only the NRF52 family, but the NRF51 family.  Apparently you must define one of:&lt;/p&gt;
&lt;p&gt;NRF51422, NRF51802, NRF51822, NRF52832, NRF52840_XXAA&lt;/p&gt;
&lt;p&gt;at least to use hal/nrf_gpio.h portably across families.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 12.2 require preprocessor symbol NRF52832 or similar to be defined?</title><link>https://devzone.nordicsemi.com/thread/76595?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 10:13:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae3fd140-38f4-4d9c-96a9-386535c4933b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you include the path to &lt;em&gt;nrf_peripherals.h&lt;/em&gt; and &lt;em&gt;nrf52832_peripherals.h&lt;/em&gt; in SDK 12.2? This is included from &lt;em&gt;nrf_gpio.h&lt;/em&gt; in SDK 12.2 and is where &lt;code&gt;GPIO_COUNT=1&lt;/code&gt; and &lt;code&gt;P0_PIN_NUM=32&lt;/code&gt; is defined. These symbold will not be defined if these headers is not correctly included in your application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 12.2 require preprocessor symbol NRF52832 or similar to be defined?</title><link>https://devzone.nordicsemi.com/thread/76594?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 10:06:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c793887-9dce-4626-93f8-10b893482f8c</guid><dc:creator>genis</dc:creator><description>&lt;p&gt;I had to define GPIO_COUNT=1 and P0_PIN_NUM=32 too (as I am using a nRF52832 with one GPIO port and 32 pins). I could not test the application as I&amp;#39;m still porting it to the new SDK but that part seems to compile with those defines.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 12.2 require preprocessor symbol NRF52832 or similar to be defined?</title><link>https://devzone.nordicsemi.com/thread/76593?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 09:58:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f8e7d15-a89f-4707-96ae-b18dffd7496c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Are you getting the same error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 12.2 require preprocessor symbol NRF52832 or similar to be defined?</title><link>https://devzone.nordicsemi.com/thread/76592?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 09:34:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cbeabea-a931-496e-aa93-29ae8c968e0e</guid><dc:creator>genis</dc:creator><description>&lt;p&gt;I am upgrading from 11.0.0 to 12.2.0 and I&amp;#39;m experiencing the same problem. I define both NRF52 and NRF52832 but still that doesn&amp;#39;t fix it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 12.2 require preprocessor symbol NRF52832 or similar to be defined?</title><link>https://devzone.nordicsemi.com/thread/76591?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2017 14:23:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83829903-18a6-4841-b390-09b9e8d325bc</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There seems to be a mismatch in the device check in &lt;em&gt;nrf_peripherals.h&lt;/em&gt; (NRF52832) and the backwards compatibility redefine of NRF52 to NRF52832_XXAA in &lt;em&gt;nrf.h&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;This issue have been reported internally. For now, you can work around it by defining the symbol NRF52832 as you describe.&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>