<?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 tag stops working suddenly in very rare cases</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50681/nfc-tag-stops-working-suddenly-in-very-rare-cases</link><description>We are using nRF52840 on a custom board with nRF5 SDK v15.3.0. 
 Our application uses the NFCT driver (nrfx_nfct) along with nfc_t2t_lib_gcc.a to emulate a NFC tag with some text records. I am using an Android phone to read the tag. This is working fine</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Jan 2022 15:28:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50681/nfc-tag-stops-working-suddenly-in-very-rare-cases" /><item><title>RE: NFC tag stops working suddenly in very rare cases</title><link>https://devzone.nordicsemi.com/thread/348566?ContentTypeID=1</link><pubDate>Wed, 19 Jan 2022 15:28:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19dfbb86-e72c-46bc-8eee-878bfd9bb0b3</guid><dc:creator>Yannik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Maybe i got the same or a similiar issue on SDK17.1 with nrf52840.&lt;/p&gt;
&lt;p&gt;First i got the lost event and aftert that the detected event.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;debug&amp;gt; nfc_platform: Field detected
&amp;lt;debug&amp;gt; nfc_platform: Field lost
&amp;lt;debug&amp;gt; nfc_platform: Field detected
&amp;lt;debug&amp;gt; nfc_platform: Field lost
&amp;lt;debug&amp;gt; nfc_platform: Field detected
&amp;lt;debug&amp;gt; nfc_platform: Field lost
&amp;lt;debug&amp;gt; nfc_platform: Field lost
&amp;lt;debug&amp;gt; nfc_platform: Field detected&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When this occurs nfc stops working. No assertion or anything.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Yannik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC tag stops working suddenly in very rare cases</title><link>https://devzone.nordicsemi.com/thread/275359?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 12:41:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fc4a750-b8bb-4177-b372-3b9ea3b2f9ab</guid><dc:creator>Otso Jousimaa</dc:creator><description>&lt;p&gt;I haven&amp;#39;t tried on 17.0, I&amp;#39;ll check it out&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC tag stops working suddenly in very rare cases</title><link>https://devzone.nordicsemi.com/thread/275358?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 12:41:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e3374d9-cea6-4d8b-8ec3-e81b8d4c3cd6</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This fix is included in SDK 17.0. Have you been able to reproduce it with that version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC tag stops working suddenly in very rare cases</title><link>https://devzone.nordicsemi.com/thread/275103?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 13:02:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9744bbae-3903-49cc-b95e-24de1c45e103</guid><dc:creator>Otso Jousimaa</dc:creator><description>&lt;p&gt;Any update on this one? I diffed SDK17.2 files&amp;nbsp;to SDK15.3&amp;nbsp;files and found only changes in comments and binaries&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC tag stops working suddenly in very rare cases</title><link>https://devzone.nordicsemi.com/thread/206926?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 14:37:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d003cc22-2e6e-41eb-ade6-527339195d74</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;Thank you for a good explanation of both the bug and the steps for reproducing it. I&amp;#39;ve reproduced the bug and have reported it. I assume that it will be fixed in a future release.&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><item><title>RE: NFC tag stops working suddenly in very rare cases</title><link>https://devzone.nordicsemi.com/thread/205785?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 08:16:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d2d5841-0fa7-45ef-861a-71336237f0ec</guid><dc:creator>timo151</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, I am&amp;nbsp;&lt;span&gt;seeing the bug every time&amp;nbsp;the&amp;nbsp;FIELDDETECTED and&amp;nbsp;FIELDLOST event is generated simultaneously. When these event are not generated&amp;nbsp;simultaneously, there is no issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The problem to reproduce is that it&amp;#39;s difficult to generate&amp;nbsp;FIELDDETECTED and a&amp;nbsp;FIELDLOST&amp;nbsp;event simultaneously. You can increase the probability of error case, if you spend more time in interrupts (e.g. add a delay&amp;nbsp;in an interrupt handler&amp;nbsp;--&amp;gt; I added a 10ms delay at the end of nrfx_nfct_irq_handler to reproduce&amp;nbsp;it). Then you have to read the NFC tag multiple times with a mobile phone.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can use an example of the nRF5 SDK v15.3.0, e.g.&amp;nbsp;examples\nfc\record_text. Add the macro&amp;nbsp;DEBUG_NRF to the Makefile in order to see the assertion. It also helps, when you enable the log in&amp;nbsp;nrfx_nfct.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;RTT Viewer output, when the error occurs:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;0&amp;gt; &amp;lt;debug&amp;gt; NFCT: Field detected
0&amp;gt; &amp;lt;debug&amp;gt; NFCT: Field lost
0&amp;gt; &amp;lt;debug&amp;gt; NFCT: Field detected
0&amp;gt; &amp;lt;debug&amp;gt; NFCT: Field lost
0&amp;gt; &amp;lt;error&amp;gt; app: ASSERTION FAILED at ../nRF5_SDK_15.3.0_59ac345/integration/nrfx/legacy/nrf_drv_clock.c:328&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Timo&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC tag stops working suddenly in very rare cases</title><link>https://devzone.nordicsemi.com/thread/205012?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 11:55:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6731bd07-ad08-4917-9ead-769295de7cea</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank your for a great explanation of the problem&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="timo151"]It happens very, very rarely. Therefore it is difficult to reproduce.[/quote]
&lt;p&gt;What happens when the issue doesn&amp;#39;t reproduce? Is the problem that it&amp;#39;s difficult to generate&amp;nbsp;&lt;span&gt;FIELDDETECTED and a&amp;nbsp;FIELDLOST&amp;nbsp;event simultaneously, or is that the driver sometimes &lt;strong&gt;doesn&amp;#39;t&lt;/strong&gt;&amp;nbsp;ignore the&amp;nbsp;FIELDDETECTED&amp;nbsp;event which doesn&amp;#39;t&amp;nbsp;cause the bug to happen? In other words, are you seeing the bug every time&amp;nbsp;the&amp;nbsp;FIELDDETECTED and&amp;nbsp;FIELDLOST event is generated simultaneously?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I would have to reproduce the issue before i could report it as a bug. Could you share a project that would be able to reproduce the issue sometimes and can run on the DK , and could you give a rough estimate % wise of how frequently you&amp;#39;re seeing this bug?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC tag stops working suddenly in very rare cases</title><link>https://devzone.nordicsemi.com/thread/204462?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2019 10:50:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9c356fb-aaa1-499d-8a12-355aea0400a7</guid><dc:creator>timo151</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;Yes, this is working fine.&lt;/p&gt;
&lt;p&gt;The problem is really in the NFCT IRQ handler. Only one field event is handled (field detected or field lost) at once, even&amp;nbsp;if both events has occurred.&amp;nbsp;This can cause the lost event to be handled twice in a row. The first time, when the filed is gone. And the second time (later in time), when the field was there for a really short time and both events were handled in the same IRQ handler call. In this case&amp;nbsp;&lt;span&gt;nrf_drv_clock_hfclk_release() was called one time too much, which leads to an assertion.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It is really a bug in the NFCT driver. It can be fixed as described.&lt;br /&gt;It happens very, very rarely. Therefore it is difficult to reproduce.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I hope, my explanation&amp;nbsp;is clear enough...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Timo&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC tag stops working suddenly in very rare cases</title><link>https://devzone.nordicsemi.com/thread/203349?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 13:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b53e98e4-a765-4e58-90d4-598af1965b80</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m suspecting that the issue might be related to &lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_79.html#anomaly_832_79"&gt;this errata &lt;/a&gt;for the nRF52832. Is &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/nfc.html?cp=3_0_0_5_13#register.TASKS_SENSE"&gt;TASK_SENSE&lt;/a&gt; triggered right before the&amp;nbsp;&lt;span&gt;FIELDDETECTED event occurs?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>