<?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>NFC trigger hard fault</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62562/nfc-trigger-hard-fault</link><description>Hi, 
 
 I have a problem of crash device after trying to connect my device to the PC via NFC. 
 The issue is very rare. 
 I think that the issue occurs because of an assert in the function nrf_drv_clock_hfclk_release - ASSERT(m_clock_cb.hfclk_requests</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jun 2020 07:56:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62562/nfc-trigger-hard-fault" /><item><title>RE: NFC trigger hard fault</title><link>https://devzone.nordicsemi.com/thread/256111?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 07:56:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a92e7ea-c7f8-4fb0-ba0f-194004956ce9</guid><dc:creator>Roei</dc:creator><description>&lt;p&gt;The fix was implemented by me, it wasn&amp;#39;t there before. And now it seems OK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC trigger hard fault</title><link>https://devzone.nordicsemi.com/thread/256109?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 07:54:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fc7a719-abd2-432b-9064-d70b4a662eda</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;The fix is correctly implemented. Have you remembered to include it on both the t2t and t4t driver?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC trigger hard fault</title><link>https://devzone.nordicsemi.com/thread/256093?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 06:37:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16fd2114-9e73-4e43-be4d-e978c26b2ee1</guid><dc:creator>Roei</dc:creator><description>&lt;p&gt;I&amp;#39;m using SDK 15, and I saw that issue&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC trigger hard fault</title><link>https://devzone.nordicsemi.com/thread/256088?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 06:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa8d27e9-d0e9-4442-b50a-5268a992d429</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Which SDK version are you using? Is the issue still reproducible?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC trigger hard fault</title><link>https://devzone.nordicsemi.com/thread/255440?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 09:01:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17f150db-7b0c-420c-8255-2e8349495a9b</guid><dc:creator>Roei</dc:creator><description>&lt;p&gt;OK,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s different in my version, probably because I&amp;#39;m using a different SDK (for example - I don&amp;#39;t have m_nfct_cb).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So I need to fix it like that:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1592384438551v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Am I right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC trigger hard fault</title><link>https://devzone.nordicsemi.com/thread/255438?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 08:48:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb444cd0-7811-412c-8610-8a16e179a7b5</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Not quite, the fix is the added if clause that checks if there is already a field on. The idea is to only release the clock if it has already been request earlier, avoiding decrementing the semaphore twice.&amp;nbsp; Workaround provided in the previous linked thread:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        case NRFX_NFC_FIELD_STATE_OFF:
            if (m_nfct_cb.field_on)     //This added if clause is the workaround
            {
                nrfx_nfct_state_force(NRFX_NFCT_STATE_SENSING);
#ifdef NRF52840_XXAA
                /* Begin: Bugfix for FTPAN-116 (IC-12886) */
                if (m_nrf52840.eng_a)
                {
                    *(volatile uint32_t *)0x40005010 = 1;
                }
                /* END: Bugfix for FTPAN-116 (IC-12886) */
#endif // NRF52840_XXAA
                nrf_nfct_int_disable(NRFX_NFCT_RX_INT_MASK | NRFX_NFCT_TX_INT_MASK);
                m_nfct_cb.field_on = false;
                nfct_evt.evt_id    = NRFX_NFCT_EVT_FIELD_LOST;
    
                NRFX_NFCT_CB_HANDLE(m_nfct_cb.config.cb, nfct_evt);
            }                       //The if statement ends here
            break;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC trigger hard fault</title><link>https://devzone.nordicsemi.com/thread/255384?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 05:37:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b7e1b18-120c-481b-8df4-35c65999ab64</guid><dc:creator>Roei</dc:creator><description>&lt;p&gt;Is that the correct fix?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC trigger hard fault</title><link>https://devzone.nordicsemi.com/thread/255186?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 09:01:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b767a71-9000-4013-9617-d249113dbb8a</guid><dc:creator>Roei</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think I already have this fix:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1592298091235v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC trigger hard fault</title><link>https://devzone.nordicsemi.com/thread/255182?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 08:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aebc7412-4727-48a9-9776-03b8678dc03a</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m assuming that you&amp;#39;re referring to &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/50681/nfc-tag-stops-working-suddenly-in-very-rare-cases"&gt;this bug&lt;/a&gt;. It&amp;#39;s scheduled to be fixed in a future release of the SDK. A workaround is also provided in the linked thread.&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>