<?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>RTC TWI Driver SDK 17</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112807/rtc-twi-driver-sdk-17</link><description>Hello, 
 I&amp;#39;m working on a driver for the PCF85063A RTC in SDK 17 with the nRF52DK. I am able to successfully set registers, however I&amp;#39;m getting strange behavior with reads. 
 
 I want to first write to the clock to set the address pointer to 0x04 using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jul 2024 13:13:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112807/rtc-twi-driver-sdk-17" /><item><title>RE: RTC TWI Driver SDK 17</title><link>https://devzone.nordicsemi.com/thread/492720?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 13:13:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:376325c4-e0b7-4849-a96c-c93a6467d1e0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Are you using the TWIM driver in blocking or non-blocking mode (ref. &lt;a href="https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/hardware_driver_twi.html"&gt;TWIM driver&lt;/a&gt;)? If non-blocking, you should check the data that is received in the registered TWIM callback. It&amp;#39;s also important that the provided TWIM buffers remain in static memory until the transaction is complete and not on the stack. You can ensure this by prefixing the variable declarations with the keyword &amp;#39;static&amp;#39;.&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/pastedimage1720444392917v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>