<?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>How to drive BMA223 sensor by NRF52832 TWI?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29204/how-to-drive-bma223-sensor-by-nrf52832-twi</link><description>I used NRF52832 TWI master to drive BMA223 sensor, 
 a. gs.c/gs.h are the driver codes 
 b. the i2c wave is looks right, but there still not generates a NRF_DRV_TWI_EVT_DONE event 
 c. so sinks into while(!this_done) 
 Who can help me? Thanks! 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Jan 2018 12:11:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29204/how-to-drive-bma223-sensor-by-nrf52832-twi" /><item><title>RE: How to drive BMA223 sensor by NRF52832 TWI?</title><link>https://devzone.nordicsemi.com/thread/116153?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 12:11:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f75c71f-8bf0-4871-ac08-11e278a4724a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You should check the return values from your calls to nrf_drv_twi_* functions. I would also recommend you to check the return values using APP_ERROR_CHECK(), and follow this debugging method to see if any errors are reported. Have you tried setting a breakpoint in the event handler, to see if it is called at all? Are you using softdevice in your application, and have initialized this before calling &lt;code&gt;sd_app_evt_wait()&lt;/code&gt;? In your call to &lt;code&gt;nrf_drv_twi_tx()&lt;/code&gt; you have set the &lt;code&gt;no_stop&lt;/code&gt; parameter to false, but the datasheet seems to not expect a stop condition between tx and rx in a read operation. Have you tried setting this to true?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>