<?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>Code gets stuck in m_xfer_done loop while trying to interface with a TWI OLED display</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27284/code-gets-stuck-in-m_xfer_done-loop-while-trying-to-interface-with-a-twi-oled-display</link><description>Hello, 
 I&amp;#39;m trying to interface this cheap OLED display from ebay 
 and while running and debugging the code I think should work(all based off the TWI_sensor sdk example just edited it to my need)
the code gets stuck in the loop: while (m_xfer_done</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Nov 2017 10:21:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27284/code-gets-stuck-in-m_xfer_done-loop-while-trying-to-interface-with-a-twi-oled-display" /><item><title>RE: Code gets stuck in m_xfer_done loop while trying to interface with a TWI OLED display</title><link>https://devzone.nordicsemi.com/thread/107754?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 10:21:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e236aa1e-3f5b-4f74-a591-11b70111340e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Unfortunately, there is no easy way to convert it to nRF52, a SES project, and SDK 14.1. I think the simplest solution would be to start with one of the examples in SDK 14.1 and port the functionality from the example. Note that you will have to change the TWI driver to support longer transfers, or use the registers directly, as described in the thread I linked above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code gets stuck in m_xfer_done loop while trying to interface with a TWI OLED display</title><link>https://devzone.nordicsemi.com/thread/107753?ContentTypeID=1</link><pubDate>Sat, 18 Nov 2017 10:24:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3987d43c-7b5a-417a-9549-0af083068f01</guid><dc:creator>MikeLemon</dc:creator><description>&lt;p&gt;Sorry for the late replay went through crazy days.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the nrf52832 DK and the latest 14.1 SDK I suspected my code to be falty sins I have no experience with using TWI with this IC.&lt;/p&gt;
&lt;p&gt;and the example you provided seem very useful and could save alot of time do you know of any efficient way to convert it to a SES project?&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code gets stuck in m_xfer_done loop while trying to interface with a TWI OLED display</title><link>https://devzone.nordicsemi.com/thread/107752?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 14:48:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e14c467f-5226-4663-af6a-d8555cbc4e57</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;What chip and which SDK version are you using? Some users have seen &lt;a href="https://devzone.nordicsemi.com/question/127613/need-help-with-oled-and-nrf52-dk/"&gt;some issues&lt;/a&gt; with using this type of displays with the TWIM peripheral (TWI with EasyDMA) on nRF52832. There is an example &lt;a href="https://github.com/monpetit/nrf52-spi-i2c-master-ssd1306"&gt;available here&lt;/a&gt;, but it is written for nRF51 and an old SDK version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>