<?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>nRF52 pin configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93119/nrf52-pin-configuration</link><description>Hi all, I&amp;#39;ve searched through the devzone but unfortunately my issue is never mentioned. 
 The problem is: my nRF51 project is converted to a nRF52 project. Pins are all re-assigned etc. Now I&amp;#39;m programming but have an issue configuring the pin. Normally</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Oct 2022 11:51:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93119/nrf52-pin-configuration" /><item><title>RE: nRF52 pin configuration</title><link>https://devzone.nordicsemi.com/thread/392139?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 11:51:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2014dd4d-07ad-4e65-b723-878bc1b1d7e0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update. Yes, -DNRF52 will override your 52840 symbols if set first.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 pin configuration</title><link>https://devzone.nordicsemi.com/thread/392137?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 11:50:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2edc3dba-ebb4-4273-8cd3-19f61ffcd83b</guid><dc:creator>Awi</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Your answer has helped me. Removing the NRF52 definition in makefile was the trick.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;PS: I can&amp;#39;t mark your answer as the solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 pin configuration</title><link>https://devzone.nordicsemi.com/thread/392113?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 10:58:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cc5bb28-23a7-43dd-8895-a4b365c3fe99</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please try to use the NRF_GPIO_PIN_MAP() macro when you configuring pins on PORT 1.&lt;/p&gt;
&lt;p&gt;e.g.,&lt;/p&gt;
&lt;p&gt;nrf_gpio_pin_clear(NRF_GPIO_PIN_MAP(1,5));&lt;/p&gt;
[quote user="Tazmania"]Can anyone help me where all these definitions take place? I&amp;#39;ve looked everywhere but cannot find where it is defined. It somehow overrules what I have defined in my makefile.[/quote]
&lt;p&gt;These symbols should only be defined in your Makefile.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666609094147v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 pin configuration</title><link>https://devzone.nordicsemi.com/thread/392111?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 10:54:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:454d0665-345c-4966-8a8e-aa1c23b8fb67</guid><dc:creator>Awi</dc:creator><description>&lt;p&gt;Hi, so I think I found the problem.&lt;/p&gt;
&lt;p&gt;Somewhere in the solution this board is defined:&lt;/p&gt;
&lt;p&gt;defined (NRF52832_XXAA) || defined (NRF52832_XXAB)&lt;/p&gt;
&lt;p&gt;However, in my makefile I have defined NRF52840.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666608860285v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can anyone help me where all these definitions take place? I&amp;#39;ve looked everywhere but cannot find where it is defined. It somehow overrules what I have defined in my makefile.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 pin configuration</title><link>https://devzone.nordicsemi.com/thread/392084?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 09:49:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6db7d7e1-b078-45ef-966e-f08ffc9c8852</guid><dc:creator>Awi</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Answer on your questions: Yes I have.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using:&lt;/p&gt;
&lt;p&gt;- nRF5_SDK_17.1.0_ddde560&lt;/p&gt;
&lt;p&gt;- GNU Arm Embedded Toolchain&amp;nbsp;10 2021.10&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;within Eclipse.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So not sure what&amp;#39;s going wrong.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand that everyone is able to compile but I&amp;#39;m getting this error:&amp;nbsp;&amp;nbsp;nrf_gpio.h:541:17: error: array subscript 40 is above array bounds of &amp;#39;volatile uint32_t[32]&amp;#39; {aka &amp;#39;volatile long unsigned int[32]&amp;#39;} [-Werror=array-bounds]&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 pin configuration</title><link>https://devzone.nordicsemi.com/thread/392071?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 09:08:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a14f59fa-0140-4717-b946-091e699cf0d6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Are you using one of the exact releases of the IDE as described in the release notes?&lt;/p&gt;
&lt;p&gt;nRF5 SDK v17.1.0&lt;br /&gt;------------------------&lt;br /&gt;Release Date: August, 2021&lt;br /&gt; &lt;br /&gt;Highlights:&lt;br /&gt; &lt;br /&gt;- Added support for the new versions of the nRF52 devices:&lt;br /&gt; - nRF52820 revision 3&lt;br /&gt; - nRF52832 revision 3&lt;br /&gt; - nRF52833 revision 2&lt;br /&gt; - nRF52840 revision 3&lt;br /&gt; (Note: Programming these requires nrfjprog v10.13 or newer.)&lt;br /&gt;- Updated nrf_oberon to v3.0.8.&lt;br /&gt;- Updated Mbed TLS to v2.16.10.&lt;/p&gt;
&lt;p&gt;The following toolchains/devices have been used for testing and verification:&lt;br /&gt; &lt;br /&gt; &lt;strong&gt;- ARM: MDK-ARM version 5.25 &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; - GCC: GCC ARM Embedded 9.2020-q2.major&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; - IAR: IAR Workbench 7.80.4&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; - SES: SES 5.42a&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 pin configuration</title><link>https://devzone.nordicsemi.com/thread/392056?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 08:45:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93aa7ee3-014d-4227-ad79-76f51a286db7</guid><dc:creator>Awi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your answer. I&amp;#39;ve seen this question. Unfortunately this is a step further than mine. I&amp;#39;m not able to compile. I&amp;#39;m using SDK17...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 pin configuration</title><link>https://devzone.nordicsemi.com/thread/392054?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 08:43:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ada8d64-a215-4164-990a-f315d27ce251</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Not aware of anything, maybe you can try&amp;nbsp;to follow&amp;nbsp;this example:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/69498/cannot-use-port-1-on-nrf52833/285457"&gt;RE: Cannot use port 1 on nRF52833&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>