<?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>nRF52840 twi drivers for ICM 20948 sensor data burst read</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46555/nrf52840-twi-drivers-for-icm-20948-sensor-data-burst-read</link><description>Hello, 
 I am using a custom board with nrf52840 using SDK 15.3 and ICM 20948. I see a lot of twi drivers and its confusing which one to use. I want to read the ICM 20948 sensor data in burst mode for my application. In the second step I want to use the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 May 2019 14:03:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46555/nrf52840-twi-drivers-for-icm-20948-sensor-data-burst-read" /><item><title>RE: nRF52840 twi drivers for ICM 20948 sensor data burst read</title><link>https://devzone.nordicsemi.com/thread/185763?ContentTypeID=1</link><pubDate>Tue, 07 May 2019 14:03:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1210a95e-0772-4a10-b687-54e086432aa7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you checked out the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrfx__twim.html?cp=5_0_6_9_0_37_0"&gt;online documentation&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;It is true that the examples still use the old driver, but the API of the new driver is quite similar, and you should be able to&amp;nbsp;implement the same functionality without too many changes needed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 twi drivers for ICM 20948 sensor data burst read</title><link>https://devzone.nordicsemi.com/thread/185527?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 13:58:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae9796e8-0ce6-4bd1-a648-2fd18e856c55</guid><dc:creator>Coppers Copernicus</dc:creator><description>&lt;p&gt;Dear ovrebekk,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are there any examples for twi using the twim drivers ? all the twi examples in the SDK are using the nrf_drv_twi legacy drivers. pls guide me through thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 twi drivers for ICM 20948 sensor data burst read</title><link>https://devzone.nordicsemi.com/thread/184324?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 12:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5fa244e-a4dc-413c-968b-ec410eea33cc</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This sounds like a problem with your sdk_config.h file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You need to enable the TWIM driver, and TWIM instance 0, in sdk_config.h for the macros and functions to be available.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are unable to make the right modifications to this file can you send it to me so I can have a look at it?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 twi drivers for ICM 20948 sensor data burst read</title><link>https://devzone.nordicsemi.com/thread/183983?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 08:29:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb81b46f-27ea-4b2c-a045-41a9947ff625</guid><dc:creator>nikhilesh</dc:creator><description>&lt;p&gt;thanks for the valuable suggestion dear ovrebekk. I changed all the instances from nrf_drv_twi.. to nrfx_twim.. now, i have the error&lt;/p&gt;
&lt;p&gt;Error[Pe020]: identifier &amp;quot;NRFX_TWIM0_INST_IDX&amp;quot; is undefined .. in main.c&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;pls help how i resolve this..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 twi drivers for ICM 20948 sensor data burst read</title><link>https://devzone.nordicsemi.com/thread/183831?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 13:03:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2099a282-ab53-423c-b74f-d612bca82eb3</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re starting out today you should definitely use the nrfx drivers, and for TWI master&amp;nbsp;the best option is nrfx_twim.c.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfx_twi.c is kept for backwards compatibility with older parts like the nRF51 seires, while nrf_twim.c utilizes the new DMA enabled TWI master available in the nRF52 family.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;0x11 corresponds to the&amp;nbsp;&lt;span&gt;NRF_ERROR_BUSY error, and often occurs if the driver is used in non-blocking mode, but is called as if it was blocking.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In non-blocking mode you will get an event in return once the current TWI operation is completed, and you have to wait for this event to occur before you can send or receive more data. If you try to call into the driver multiple times without waiting for this event you will get the busy error to tell you that the driver is currently busy with the current transaction.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;br /&gt;Torbjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>