<?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 - ADT7410 TWI Communication</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23098/nrf52832---adt7410-twi-communication</link><description>Hello, 
 I want to discuss the following code with you: 
 www.dropbox.com/.../AABddGcZagoqWHnJqfPrpbm9a 
 In the main file there are init functions for uart and twi and also get_temperature function for adt7410. I used app_uart_put as debug function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Jun 2017 07:12:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23098/nrf52832---adt7410-twi-communication" /><item><title>RE: NRF52832 - ADT7410 TWI Communication</title><link>https://devzone.nordicsemi.com/thread/90896?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 07:12:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84265e09-90a6-44d1-91b2-27793410a057</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;The error value is not generated on compile, but on execution. If the app_uart_put function, on execution, isn&amp;#39;t executed properly there are checks within the code that will assign it an error code. Typically you would write code that returns an error code as&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = app_uart_put();
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In this case an error handler will be called if the app_uart_put function is not successfully executed. If you set the DEBUG flag within the preprocessor symbols, all errors should put your program in a loop, in which you can try and determine the cause of your error when using debugging.&lt;/p&gt;
&lt;p&gt;If the function is executed properly the return value will be 0, which is defined as NRF_SUCCESS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 - ADT7410 TWI Communication</title><link>https://devzone.nordicsemi.com/thread/90894?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 13:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aea5557-7d6a-4606-91cd-0925385d11dd</guid><dc:creator>asabuncuoglu13</dc:creator><description>&lt;p&gt;Yeah, it should also be an output, just as you said. It compiles without an error, so I opened this question to discuss possible reasons&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 - ADT7410 TWI Communication</title><link>https://devzone.nordicsemi.com/thread/90895?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 12:12:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c2b3192-45da-4bc9-8e9a-66af2aa6f47f</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;You say you only see the 1 outputted from line 74? You should also see something from line 87. The app_uart_put() function has a 32 bit return value, have you checked if it produces an error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>