<?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>Possible bug in SDK14 - TWIM - nRF52840PDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25311/possible-bug-in-sdk14---twim---nrf52840pdk</link><description>Hello, 
 I was having some trouble communicating with another slave device thru TWI, I was not receiving his ACKs.
So I decided to try to turn off internal pull ups following instructions in this other thread . 
 It did not work and both pins (disconnected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Sep 2017 11:09:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25311/possible-bug-in-sdk14---twim---nrf52840pdk" /><item><title>RE: Possible bug in SDK14 - TWIM - nRF52840PDK</title><link>https://devzone.nordicsemi.com/thread/99748?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 11:09:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7708a9a9-52e9-4284-8862-a93c96d18f7a</guid><dc:creator>Luis</dc:creator><description>&lt;p&gt;Thank you :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible bug in SDK14 - TWIM - nRF52840PDK</title><link>https://devzone.nordicsemi.com/thread/99747?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 11:00:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06d5b2c5-fadb-4872-bf38-a441c026fa83</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like the TWI master driver is not written to support GPIO PORT1 on nRF52840. It use &lt;code&gt;NRF_GPIO-&amp;gt;PIN_CNF&lt;/code&gt; directly to configure the pins, which is mapped to &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52840.ps/gpio.html?cp=2_0_0_18_2#topic"&gt;NRF_P0 register&lt;/a&gt; in file &lt;em&gt;nrf51_to_nrf52840.h&lt;/em&gt;, found in &lt;code&gt;nRF5_SDK_14.0.0_3bcc1f7\components\device\&lt;/code&gt; directory.&lt;/p&gt;
&lt;p&gt;In order to add support for PORT1, you need to change all lines that contain &lt;code&gt;NRF_GPIO-&amp;gt;PIN_CNF&lt;/code&gt; (line 206, 207, 212, 213, 291, 292, 358, 359, 363, 364) into something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t scl_pin = p_config-&amp;gt;scl;
NRF_GPIO_Type * reg_scl = nrf_gpio_pin_port_decode(&amp;amp;scl_pin);
reg_scl-&amp;gt;PIN_CNF[p_config-&amp;gt;scl] = SCL_PIN_INIT_CONF;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can use the attached patched file: &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3058.nrf_5F00_drv_5F00_twi.c"&gt;nrf_drv_twi.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I will report this issue internally.&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>