<?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>TWI_Scanner example on PCA10040 not Working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54681/twi_scanner-example-on-pca10040-not-working</link><description>The TWI_Scanner example is building and downloading fine (using SES) but it just prints: 
 &amp;quot;TWI scanner started.&amp;quot; 
 Then nothing in terms of scanning addresses etc. 
 It does not give any app error checks. Seems it gets stuck inside: 
 
 Let me know if</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Nov 2019 10:11:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54681/twi_scanner-example-on-pca10040-not-working" /><item><title>RE: TWI_Scanner example on PCA10040 not Working</title><link>https://devzone.nordicsemi.com/thread/221273?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 10:11:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c407ebb-dc9c-4b36-836a-99e4fbcfdacc</guid><dc:creator>Ameer Usman</dc:creator><description>&lt;p&gt;Found the problem and was on my end. Actually another device was connected on the same pins of I2C that was not using I2C communication (I guess it was using SPI). Removing that device fixed the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI_Scanner example on PCA10040 not Working</title><link>https://devzone.nordicsemi.com/thread/221226?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 08:08:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed87fbb4-df1f-4026-b3dd-9e3159e85700</guid><dc:creator>Ameer Usman</dc:creator><description>&lt;p&gt;No errors found in debugging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI_Scanner example on PCA10040 not Working</title><link>https://devzone.nordicsemi.com/thread/221221?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 07:47:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0d24e44-9b00-4ec1-a424-004ccd41f20a</guid><dc:creator>Ali Rumane</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is a bool function and shouldn&amp;#39;t stop there. Can you watch the video from third link and debug if you come across errors or something?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI_Scanner example on PCA10040 not Working</title><link>https://devzone.nordicsemi.com/thread/221203?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 06:50:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a388a7b1-d529-43b2-ab3d-f212d9df3b72</guid><dc:creator>Ameer Usman</dc:creator><description>&lt;p&gt;I am using nRF52832 DK at the moment with SDK 15.3. If I pause the program it shows being here:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;__STATIC_INLINE bool nrf_twim_event_check(NRF_TWIM_Type * p_reg,
                                          nrf_twim_event_t event)
{
    return (bool)*(volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event);
}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI_Scanner example on PCA10040 not Working</title><link>https://devzone.nordicsemi.com/thread/221200?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 06:38:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be237b34-f7da-4353-8f21-4823dc556ca4</guid><dc:creator>Ali Rumane</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you add DEBUG in Preprocessor Symbol Defines, set Optimization Level to 1 and try to debug which function is causing error?&lt;/p&gt;
&lt;p&gt;You can look at the following links to debug your code:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/477/can-i-debug-ble-program"&gt;Link&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27014/how-can-i-distinguish-the-reason-for-hardfault"&gt;Link&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=uP8RYgYGRvI"&gt;Basics of Debugging - Segger Embedded Studio&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Are your TWI pins connected and configured correctly? Are you using DK or custom board?&amp;nbsp; Which SDK are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>