<?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 read from sensor with i2c(twi) communication.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39686/how-to-read-from-sensor-with-i2c-twi-communication</link><description>Hi, 
 I am usig nRF5_SDK_15.0.0_a53641 and writing a program with keil . 
 I am tryng to read data from the acceleration sensor( LSM303DLHC ) bu communication with BLENanov2 (nRF52832) by TWI and to write the data read into the SD card. 
 
 With the fatfs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Nov 2018 12:09:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39686/how-to-read-from-sensor-with-i2c-twi-communication" /><item><title>RE: How to read from sensor with i2c(twi) communication.</title><link>https://devzone.nordicsemi.com/thread/158824?ContentTypeID=1</link><pubDate>Fri, 23 Nov 2018 12:09:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08f06176-f8db-4866-9446-bab802c0ed12</guid><dc:creator>awneil</dc:creator><description>[quote userid="73638" url="~/f/nordic-q-a/39686/how-to-read-from-sensor-with-i2c-twi-communication/155676"]re-setting the address[/quote]
&lt;p&gt;Please explain what you mean by that!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="74848" url="~/f/nordic-q-a/39686/how-to-read-from-sensor-with-i2c-twi-communication/158818"]how to reset the slave address[/quote]
&lt;p&gt;The Slave Address is a property of the slave - so, if it can be &amp;quot;reset&amp;quot;, this will be described in the Slave&amp;#39;s &lt;strong&gt;documentation&lt;/strong&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read from sensor with i2c(twi) communication.</title><link>https://devzone.nordicsemi.com/thread/158818?ContentTypeID=1</link><pubDate>Fri, 23 Nov 2018 11:58:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f610188-21bf-4cf0-a2a1-1c2c5c23eb86</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;how to reset the slave address..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read from sensor with i2c(twi) communication.</title><link>https://devzone.nordicsemi.com/thread/155676?ContentTypeID=1</link><pubDate>Fri, 02 Nov 2018 08:04:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bee2b7c-393a-4067-ab2e-e732da5e57a5</guid><dc:creator>y001</dc:creator><description>&lt;p&gt;&lt;span style="background-color:transparent;color:#222222;float:none;font-family:arial,sans-serif;font-size:24px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;It worked after re-setting the address.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:transparent;color:#222222;float:none;font-family:arial,sans-serif;font-size:24px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;Thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read from sensor with i2c(twi) communication.</title><link>https://devzone.nordicsemi.com/thread/154259?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 11:14:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c2758d3-56cb-43b3-91ae-29f951860526</guid><dc:creator>awneil</dc:creator><description>[quote userid="14926" url="~/f/nordic-q-a/39686/how-to-read-from-sensor-with-i2c-twi-communication/154256"]you can&amp;#39;t expect someone to magically figure out your issue[/quote]
&lt;p&gt;Indeed.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/yoko"&gt;y001&lt;/a&gt; - &lt;strong&gt;debugging&lt;/strong&gt; is a key part of development; ie, it&amp;#39;s part of &lt;em&gt;your&lt;/em&gt; job.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How To Debug:&lt;/strong&gt;&amp;nbsp;&lt;a href="https://www.avrfreaks.net/comment/2418156#comment-2418156"&gt;www.avrfreaks.net/.../2418156&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read from sensor with i2c(twi) communication.</title><link>https://devzone.nordicsemi.com/thread/154256?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 11:06:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe137860-0f16-441f-a4ef-17d4990175d7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You should debug on the board connected with the sensor, if not you are not able to see errors from the real application.&lt;/p&gt;
&lt;p&gt;The debugger on the nRF52-DK can be connected to external devices through&amp;nbsp;&lt;a title="Debug output" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/nrf52_dev_kit/hw_debug_out.html?cp=2_1_4_5_9"&gt;Debug output&lt;/a&gt;&amp;nbsp;interface, to flash and debug nRF5x ICs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It should not be a problem to combine TWI sensor example with FatFS example, but you will have to described and find the issues in your application yourself. We do not have your hardware available, and you can&amp;#39;t expect someone to magically figure out your issue only by posting the entire code. Debugging is a great tool to figure out what your issue is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read from sensor with i2c(twi) communication.</title><link>https://devzone.nordicsemi.com/thread/154223?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 08:23:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ce90963-9d41-4d82-8433-25a9eefd6598</guid><dc:creator>y001</dc:creator><description>&lt;p&gt;Since I do not have what I see logs on the board, I attempted to try the debgging method of the link destination.&lt;/p&gt;
&lt;p&gt;However, since I am using such an nrf52DK,I am not connected with an acceleration sensor etc. while writing a program.&lt;/p&gt;
&lt;p&gt;Is there any other solution?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Once warning was resolved, I tried a debugging method that looked like the link destination,&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/200x240/__key/communityserver-discussions-components-files/4/_B930AF30EA30FC30F330B730E730C330C830_-_2800_10_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;I will only come out.&lt;/p&gt;
&lt;p&gt;Should not you use fatfs and twi_sensor together sddenly like other respondent awneil of this question?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read from sensor with i2c(twi) communication.</title><link>https://devzone.nordicsemi.com/thread/154217?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 08:01:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9395f51f-0ebe-4b20-a1e2-3b59028b59c9</guid><dc:creator>y001</dc:creator><description>&lt;p&gt;I do not know to check whether the data is readable as using only twi_sensor.c but do you know it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read from sensor with i2c(twi) communication.</title><link>https://devzone.nordicsemi.com/thread/153976?ContentTypeID=1</link><pubDate>Tue, 23 Oct 2018 07:57:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:102c84ff-b425-49d0-866e-a2e2f5139d66</guid><dc:creator>awneil</dc:creator><description>[quote userid="73638" url="~/f/nordic-q-a/39686/how-to-read-from-sensor-with-i2c-twi-communication/153952"]I tried to check bu writing to SD card with fatfs to judge whether I could read data securely.[/quote]
&lt;p&gt;That&amp;#39;s a very cumbersome approach!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read from sensor with i2c(twi) communication.</title><link>https://devzone.nordicsemi.com/thread/153975?ContentTypeID=1</link><pubDate>Tue, 23 Oct 2018 07:57:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ae75e3f-eadf-4b74-ae10-dc70eaf6ff76</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Do you have a UART or RTT interface where you can view logs on your board? If so, try setting NRF_LOG_ENABLED and NRF_LOG_BACKEND_[UART/RTT]_ENABLED to 1, and also make sure NRF_LOG_DEFERRED is set to 0 under NRF_LOG_ENABLED. Then check if there are any errors or useful information on the log output.&lt;/p&gt;
&lt;p&gt;If not, try &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10729/my-device-is-freezing-and-restarting"&gt;this debugging method&lt;/a&gt; and check if there are any error codes reported.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read from sensor with i2c(twi) communication.</title><link>https://devzone.nordicsemi.com/thread/153956?ContentTypeID=1</link><pubDate>Tue, 23 Oct 2018 05:19:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37c89397-8f87-412d-b872-cc891b543369</guid><dc:creator>y001</dc:creator><description>&lt;p&gt;The syntax error was fixed!&lt;/p&gt;
&lt;p&gt;Which of NRF_LOG should I look at?&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_B930AF30EA30FC30F330B730E730C330C830_-_2800_8_2900_.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read from sensor with i2c(twi) communication.</title><link>https://devzone.nordicsemi.com/thread/153955?ContentTypeID=1</link><pubDate>Tue, 23 Oct 2018 05:06:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5a691d7-cff2-4702-94a6-7ac26c9c399b</guid><dc:creator>y001</dc:creator><description>&lt;p&gt;Thank you for reply!&lt;/p&gt;
&lt;p&gt;There was no error code, there was one warning.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;../../../main.c(194): warning:    #550-D: parameter &amp;quot;x1&amp;quot; was set but never used
    static void read sensor_data(uint8_t x1)
../../../main.c: 1 warning, 0 errors&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;NRF_LOG is&lt;/p&gt;
&lt;p&gt;Syntax error in Options Block - line 1172:&lt;/p&gt;
&lt;p&gt;&amp;#39;E&amp;#39; expected&lt;/p&gt;
&lt;p&gt;And I do not know because it has gone out.&lt;/p&gt;
&lt;p&gt;Have you added the sdk_config code of twi_sensor&amp;#39;s twi part to sdk_config.h in fatfs?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;//==========================================================
// &amp;lt;e&amp;gt; NRFX_PRS_ENABLED - nrfx_prs - Peripheral Resource Sharing module
//==========================================================
#ifndef NRFX_PRS_ENABLED
#define NRFX_PRS_ENABLED 1
#endif
// &amp;lt;q&amp;gt; NRFX_PRS_BOX_0_ENABLED  - Enables box 0 in the module.
 

#ifndef NRFX_PRS_BOX_0_ENABLED
#define NRFX_PRS_BOX_0_ENABLED 0
#endif

// &amp;lt;q&amp;gt; NRFX_PRS_BOX_1_ENABLED  - Enables box 1 in the module.
 

#ifndef NRFX_PRS_BOX_1_ENABLED
#define NRFX_PRS_BOX_1_ENABLED 0
#endif

// &amp;lt;q&amp;gt; NRFX_PRS_BOX_2_ENABLED  - Enables box 2 in the module.
 

#ifndef NRFX_PRS_BOX_2_ENABLED
#define NRFX_PRS_BOX_2_ENABLED 0
#endif

// &amp;lt;q&amp;gt; NRFX_PRS_BOX_3_ENABLED  - Enables box 3 in the module.
 

#ifndef NRFX_PRS_BOX_3_ENABLED
#define NRFX_PRS_BOX_3_ENABLED 0
#endif

// &amp;lt;q&amp;gt; NRFX_PRS_BOX_4_ENABLED  - Enables box 4 in the module.
 

#ifndef NRFX_PRS_BOX_4_ENABLED
#define NRFX_PRS_BOX_4_ENABLED 1
#endif

// &amp;lt;e&amp;gt; NRFX_PRS_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_PRS_CONFIG_LOG_ENABLED
#define NRFX_PRS_CONFIG_LOG_ENABLED 0
#endif
// &amp;lt;o&amp;gt; NRFX_PRS_CONFIG_LOG_LEVEL  - Default Severity level
 
// &amp;lt;0=&amp;gt; Off 
// &amp;lt;1=&amp;gt; Error 
// &amp;lt;2=&amp;gt; Warning 
// &amp;lt;3=&amp;gt; Info 
// &amp;lt;4=&amp;gt; Debug 

#ifndef NRFX_PRS_CONFIG_LOG_LEVEL
#define NRFX_PRS_CONFIG_LOG_LEVEL 3
#endif

// &amp;lt;o&amp;gt; NRFX_PRS_CONFIG_INFO_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef NRFX_PRS_CONFIG_INFO_COLOR
#define NRFX_PRS_CONFIG_INFO_COLOR 0
#endif

// &amp;lt;o&amp;gt; NRFX_PRS_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef NRFX_PRS_CONFIG_DEBUG_COLOR
#define NRFX_PRS_CONFIG_DEBUG_COLOR 0
#endif

// &amp;lt;/e&amp;gt;

// &amp;lt;/e&amp;gt;

// &amp;lt;e&amp;gt; NRFX_TWIM_ENABLED - nrfx_twim - TWIM peripheral driver
//==========================================================
#ifndef NRFX_TWIM_ENABLED
#define NRFX_TWIM_ENABLED 1
#endif
// &amp;lt;q&amp;gt; NRFX_TWIM0_ENABLED  - Enable TWIM0 instance
 

#ifndef NRFX_TWIM0_ENABLED
#define NRFX_TWIM0_ENABLED 0
#endif

// &amp;lt;q&amp;gt; NRFX_TWIM1_ENABLED  - Enable TWIM1 instance
 

#ifndef NRFX_TWIM1_ENABLED
#define NRFX_TWIM1_ENABLED 0
#endif

// &amp;lt;o&amp;gt; NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY  - Frequency
 
// &amp;lt;26738688=&amp;gt; 100k 
// &amp;lt;67108864=&amp;gt; 250k 
// &amp;lt;104857600=&amp;gt; 400k 

#ifndef NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY
#define NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY 26738688
#endif

// &amp;lt;q&amp;gt; NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT  - Enables bus holding after uninit
 

#ifndef NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT
#define NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
#endif

// &amp;lt;o&amp;gt; NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority
 
// &amp;lt;0=&amp;gt; 0 (highest) 
// &amp;lt;1=&amp;gt; 1 
// &amp;lt;2=&amp;gt; 2 
// &amp;lt;3=&amp;gt; 3 
// &amp;lt;4=&amp;gt; 4 
// &amp;lt;5=&amp;gt; 5 
// &amp;lt;6=&amp;gt; 6 
// &amp;lt;7=&amp;gt; 7 

#ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY
#define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 7
#endif

// &amp;lt;e&amp;gt; NRFX_TWIM_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_TWIM_CONFIG_LOG_ENABLED
#define NRFX_TWIM_CONFIG_LOG_ENABLED 0
#endif
// &amp;lt;o&amp;gt; NRFX_TWIM_CONFIG_LOG_LEVEL  - Default Severity level
 
// &amp;lt;0=&amp;gt; Off 
// &amp;lt;1=&amp;gt; Error 
// &amp;lt;2=&amp;gt; Warning 
// &amp;lt;3=&amp;gt; Info 
// &amp;lt;4=&amp;gt; Debug 

#ifndef NRFX_TWIM_CONFIG_LOG_LEVEL
#define NRFX_TWIM_CONFIG_LOG_LEVEL 3
#endif

// &amp;lt;o&amp;gt; NRFX_TWIM_CONFIG_INFO_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef NRFX_TWIM_CONFIG_INFO_COLOR
#define NRFX_TWIM_CONFIG_INFO_COLOR 0
#endif

// &amp;lt;o&amp;gt; NRFX_TWIM_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef NRFX_TWIM_CONFIG_DEBUG_COLOR
#define NRFX_TWIM_CONFIG_DEBUG_COLOR 0
#endif

// &amp;lt;/e&amp;gt;

// &amp;lt;q&amp;gt; NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED  - Enables nRF52 anomaly 109 workaround for TWIM.
 

// &amp;lt;i&amp;gt; The workaround uses interrupts to wake up the CPU by catching
// &amp;lt;i&amp;gt; the start event of zero-frequency transmission, clear the 
// &amp;lt;i&amp;gt; peripheral, set desired frequency, start the peripheral, and
// &amp;lt;i&amp;gt; the proper transmission. See more in the Errata document or
// &amp;lt;i&amp;gt; Anomaly 109 Addendum located at https://infocenter.nordicsemi.com/

#ifndef NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
#define NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
#endif

// &amp;lt;/e&amp;gt;

// &amp;lt;e&amp;gt; NRFX_TWI_ENABLED - nrfx_twi - TWI peripheral driver
//==========================================================
#ifndef NRFX_TWI_ENABLED
#define NRFX_TWI_ENABLED 1
#endif
// &amp;lt;q&amp;gt; NRFX_TWI0_ENABLED  - Enable TWI0 instance
 

#ifndef NRFX_TWI0_ENABLED
#define NRFX_TWI0_ENABLED 0
#endif

// &amp;lt;q&amp;gt; NRFX_TWI1_ENABLED  - Enable TWI1 instance
 

#ifndef NRFX_TWI1_ENABLED
#define NRFX_TWI1_ENABLED 0
#endif

// &amp;lt;o&amp;gt; NRFX_TWI_DEFAULT_CONFIG_FREQUENCY  - Frequency
 
// &amp;lt;26738688=&amp;gt; 100k 
// &amp;lt;67108864=&amp;gt; 250k 
// &amp;lt;104857600=&amp;gt; 400k 

#ifndef NRFX_TWI_DEFAULT_CONFIG_FREQUENCY
#define NRFX_TWI_DEFAULT_CONFIG_FREQUENCY 26738688
#endif

// &amp;lt;q&amp;gt; NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT  - Enables bus holding after uninit
 

#ifndef NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT
#define NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
#endif

// &amp;lt;o&amp;gt; NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority
 
// &amp;lt;0=&amp;gt; 0 (highest) 
// &amp;lt;1=&amp;gt; 1 
// &amp;lt;2=&amp;gt; 2 
// &amp;lt;3=&amp;gt; 3 
// &amp;lt;4=&amp;gt; 4 
// &amp;lt;5=&amp;gt; 5 
// &amp;lt;6=&amp;gt; 6 
// &amp;lt;7=&amp;gt; 7 

#ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY
#define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY 7
#endif

// &amp;lt;e&amp;gt; TWI_ENABLED - nrf_drv_twi - TWI/TWIM peripheral driver - legacy layer
//==========================================================
#ifndef TWI_ENABLED
#define TWI_ENABLED 1
#endif
// &amp;lt;o&amp;gt; TWI_DEFAULT_CONFIG_FREQUENCY  - Frequency
 
// &amp;lt;26738688=&amp;gt; 100k 
// &amp;lt;67108864=&amp;gt; 250k 
// &amp;lt;104857600=&amp;gt; 400k 

#ifndef TWI_DEFAULT_CONFIG_FREQUENCY
#define TWI_DEFAULT_CONFIG_FREQUENCY 26738688
#endif

// &amp;lt;q&amp;gt; TWI_DEFAULT_CONFIG_CLR_BUS_INIT  - Enables bus clearing procedure during init
 

#ifndef TWI_DEFAULT_CONFIG_CLR_BUS_INIT
#define TWI_DEFAULT_CONFIG_CLR_BUS_INIT 0
#endif

// &amp;lt;q&amp;gt; TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT  - Enables bus holding after uninit
 

#ifndef TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT
#define TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
#endif

// &amp;lt;o&amp;gt; TWI_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority
 

// &amp;lt;i&amp;gt; Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// &amp;lt;0=&amp;gt; 0 (highest) 
// &amp;lt;1=&amp;gt; 1 
// &amp;lt;2=&amp;gt; 2 
// &amp;lt;3=&amp;gt; 3 
// &amp;lt;4=&amp;gt; 4 
// &amp;lt;5=&amp;gt; 5 
// &amp;lt;6=&amp;gt; 6 
// &amp;lt;7=&amp;gt; 7 

#ifndef TWI_DEFAULT_CONFIG_IRQ_PRIORITY
#define TWI_DEFAULT_CONFIG_IRQ_PRIORITY 7
#endif

// &amp;lt;e&amp;gt; TWI0_ENABLED - Enable TWI0 instance
//==========================================================
#ifndef TWI0_ENABLED
#define TWI0_ENABLED 0
#endif
// &amp;lt;q&amp;gt; TWI0_USE_EASY_DMA  - Use EasyDMA (if present)
 

#ifndef TWI0_USE_EASY_DMA
#define TWI0_USE_EASY_DMA 0
#endif

// &amp;lt;/e&amp;gt;

// &amp;lt;e&amp;gt; TWI1_ENABLED - Enable TWI1 instance
//==========================================================
#ifndef TWI1_ENABLED
#define TWI1_ENABLED 1
#endif
// &amp;lt;q&amp;gt; TWI1_USE_EASY_DMA  - Use EasyDMA (if present)
 

#ifndef TWI1_USE_EASY_DMA
#define TWI1_USE_EASY_DMA 1
#endif

// &amp;lt;/e&amp;gt;

// &amp;lt;q&amp;gt; TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED  - Enables nRF52 anomaly 109 workaround for TWIM.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_B930AF30EA30FC30F330B730E730C330C830_-_2800_6_2900_.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read from sensor with i2c(twi) communication.</title><link>https://devzone.nordicsemi.com/thread/153952?ContentTypeID=1</link><pubDate>Tue, 23 Oct 2018 04:40:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c42c6401-1c43-4e29-aaf9-ebb9b845a51e</guid><dc:creator>y001</dc:creator><description>&lt;p&gt;Thank you for reply!&lt;/p&gt;
&lt;p&gt;I saw the linked program, but it seems almost the same.&lt;/p&gt;
&lt;p&gt;I tried to check bu writing to SD card with fatfs to judge whether I could read data securely.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read from sensor with i2c(twi) communication.</title><link>https://devzone.nordicsemi.com/thread/153816?ContentTypeID=1</link><pubDate>Mon, 22 Oct 2018 12:56:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35150578-7845-4002-8450-fa05c0f23556</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Do you get any error codes? What is the output from NRF_LOG?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read from sensor with i2c(twi) communication.</title><link>https://devzone.nordicsemi.com/thread/153799?ContentTypeID=1</link><pubDate>Mon, 22 Oct 2018 12:20:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf702079-bea0-405f-8414-1f45ab864fde</guid><dc:creator>awneil</dc:creator><description>[quote userid="73638" url="~/f/nordic-q-a/39686/how-to-read-from-sensor-with-i2c-twi-communication"]how to do twi communication based on fatfs program[/quote]
&lt;p&gt;FatFs is an entirely unrelated thing.&lt;/p&gt;
&lt;p&gt;Start by getting the I2C comms working on its own:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39691/nrf52832-with-hdc2080-i2c/153794#153794"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/39691/nrf52832-with-hdc2080-i2c/153794#153794&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>