<?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>nrf52832 I2C easyDMA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38579/nrf52832-i2c-easydma</link><description>Hello! 
 I want to use easyDMA. The SDK version I use is SDK15.0.I want to know how to config easyDMA.For example , If I only need to config TWI0_USE_EASY_DMA==1 ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Sep 2019 09:24:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38579/nrf52832-i2c-easydma" /><item><title>RE: nrf52832 I2C easyDMA</title><link>https://devzone.nordicsemi.com/thread/207327?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 09:24:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75593064-93c6-4c4c-afa4-eeba01f73318</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;If you look at the file &lt;span style="background-color:#ffffff;"&gt;nRF5_SDK_15.3.0\integration\nrfx\legacy\nrf_drv_twi.h, you will see that&amp;nbsp;NRF_DRV_TWI_INSTANCE_0 depends on either&amp;nbsp;NRFX_TWIM0_ENABLED or&amp;nbsp;NRFX_TWI0_ENABLED.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#if NRFX_CHECK(NRFX_TWIM0_ENABLED)
    #define NRF_DRV_TWI_INSTANCE_0 \
        { 0, { .twim = NRFX_TWIM_INSTANCE(0) }, true }
#elif NRFX_CHECK(NRFX_TWI0_ENABLED)
    #define NRF_DRV_TWI_INSTANCE_0 \
        { 0, { .twi = NRFX_TWI_INSTANCE(0) }, false }
#endif
#if NRFX_CHECK(NRFX_TWIM1_ENABLED)
    #define NRF_DRV_TWI_INSTANCE_1 \
        { 1, { .twim = NRFX_TWIM_INSTANCE(1) }, true }
#elif NRFX_CHECK(NRFX_TWI1_ENABLED)
    #define NRF_DRV_TWI_INSTANCE_1 \
        { 1, { .twi = NRFX_TWI_INSTANCE(1) }, false }
#endif&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;Take a look at &lt;em&gt;nRF5_SDK_15.3.0\integration\nrfx\legacy\apply_old_config.h&amp;nbsp;&lt;/em&gt;to see how to enable these two configs. E.g. if you set&amp;nbsp;TWI0_ENABLED and&amp;nbsp;TWI0_USE_EASY_DMA to 1 in the sdk_config.h, then NRFX_TWIM0_ENABLED will be set to 1.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#if defined(TWI_PRESENT) &amp;amp;&amp;amp; !defined(TWIM_PRESENT)

#undef NRFX_TWI0_ENABLED
#define NRFX_TWI0_ENABLED   TWI0_ENABLED
#undef NRFX_TWIM0_ENABLED
#define NRFX_TWIM0_ENABLED  0

#undef NRFX_TWI1_ENABLED
#define NRFX_TWI1_ENABLED   TWI1_ENABLED
#undef NRFX_TWIM1_ENABLED
#define NRFX_TWIM1_ENABLED  0

#elif !defined(TWI_PRESENT) &amp;amp;&amp;amp; defined(TWIM_PRESENT)

#undef NRFX_TWI0_ENABLED
#define NRFX_TWI0_ENABLED   0
#undef NRFX_TWIM0_ENABLED
#define NRFX_TWIM0_ENABLED  TWI0_ENABLED

#undef NRFX_TWI1_ENABLED
#define NRFX_TWI1_ENABLED   0
#undef NRFX_TWIM1_ENABLED
#define NRFX_TWIM1_ENABLED  TWI1_ENABLED

#else // -&amp;gt; defined(TWI_PRESENT) &amp;amp;&amp;amp; defined(TWIM_PRESENT)

#undef NRFX_TWI0_ENABLED
#define NRFX_TWI0_ENABLED   (TWI0_ENABLED &amp;amp;&amp;amp; !TWI0_USE_EASY_DMA)
#undef NRFX_TWIM0_ENABLED
#define NRFX_TWIM0_ENABLED  (TWI0_ENABLED &amp;amp;&amp;amp; TWI0_USE_EASY_DMA)&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 I2C easyDMA</title><link>https://devzone.nordicsemi.com/thread/206580?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 10:59:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f11a4e5d-90f0-4b33-8b5b-2d9831b87a54</guid><dc:creator>asmita_patil</dc:creator><description>&lt;p&gt;how to enable twim0...i changed in sdk_config.h still not working..&lt;/p&gt;
&lt;p&gt;it was no problem in twi_sensor example...now i am integrating twi_sensor in ble_eddystone...and on built it give an error of &amp;quot;&amp;#39;NRF_DRV_TWI_INSTANCE_0&amp;#39; undeclared here (not in a function); did you mean &amp;#39;NRF_DRV_TWI_INSTANCE_&amp;#39;?&amp;quot;&lt;/p&gt;
&lt;p&gt;what is the reason and can you tell me how to enable twim0..&lt;/p&gt;
&lt;p&gt;below is nrf_drv_twi.h file ...which shows that twim0 is not enabled..can you solve yhis problem..it would be great help..thank you.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1566989882272v1.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 I2C easyDMA</title><link>https://devzone.nordicsemi.com/thread/149786?ContentTypeID=1</link><pubDate>Fri, 21 Sep 2018 09:07:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbec5ef1-c474-4dd2-97f5-e1ffe7d89c9b</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Yes, correct. Let me explain.&lt;/p&gt;
&lt;p&gt;When using one of the provided examples in SDK 15 (for example twi_sensor), you have two choices when using I2C:&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Ftwim.html"&gt;TWIM&lt;/a&gt;&amp;nbsp;(also &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Ftwis.html"&gt;TWIS&lt;/a&gt;) or &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Ftwi.html&amp;amp;cp=2_1_0_48&amp;amp;anchor=concept_rhy_rzp_sr"&gt;TWI&lt;/a&gt;, where the first uses easyDMA and the second does not. When you enable easyDMA through either TWI0_USE_EASY_DMA or TWI1_USE_EASY_DMA, the example will use the functions&amp;nbsp;in the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fgroup__nrf__twim.html"&gt;TWIM driver&lt;/a&gt;&amp;nbsp;(not the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fgroup__nrf__drv__twi.html"&gt;TWI driver&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Best regards, Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>