<?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 is unstable when DCDEN1 is enabled.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60112/nfc-is-unstable-when-dcden1-is-enabled</link><description>I am using nRF52840 DK on VDD_HV. SW9 (nRF power source) set to USB and I am connecting a USB cable to J3 (nRF USB). SW6 is also set to nRF Only. My IC revision is QIAAD0. 
 In an effort to further reduce current consumption, I have recently tried to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 03 Jul 2021 01:52:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60112/nfc-is-unstable-when-dcden1-is-enabled" /><item><title>RE: NFC is unstable when DCDEN1 is enabled.</title><link>https://devzone.nordicsemi.com/thread/318496?ContentTypeID=1</link><pubDate>Sat, 03 Jul 2021 01:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1b32241-3ac0-4b00-a163-67fd7ad85a90</guid><dc:creator>dmq</dc:creator><description>&lt;div class="trans-left"&gt;
&lt;div class="trans-input-wrap"&gt;
&lt;div class="input-wrap" dir="ltr"&gt;
&lt;div class="input-operate"&gt;&lt;a class="operate-btn op-sound data-hover-tip" href="https://fanyi.baidu.com/?aldtype=85###"&gt;&lt;span class="icon-sound"&gt;&lt;/span&gt;&lt;/a&gt;
&lt;div class="op-favor-container"&gt;&lt;span class="icon-favo"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="trans-right"&gt;
&lt;div class="output-wrap"&gt;
&lt;div class="output-mod ordinary-wrap"&gt;
&lt;div class="output-bd" dir="ltr"&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;Hi&lt;/span&gt;&lt;/p&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;I seem to have encountered a similar issue as this，I didn&amp;#39;t find the&amp;nbsp;&lt;/span&gt;errata FTPAN-98.Would you mind show me where to add the follow code?&lt;/p&gt;
&lt;p&gt;*(volatile uint32_t *) 0x4000568C = 0x0000702&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC is unstable when DCDEN1 is enabled.</title><link>https://devzone.nordicsemi.com/thread/247145?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 14:40:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5de3b903-1972-4d6d-91f4-ccfa6460bf1e</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Ok. I would also state that it&amp;#39;s not clear why your Hardfault disappears when you write to that internal register. I also strongly don&amp;#39;t recommend writing to any non-documented register as it can potentially damage the chip under certain conditions.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC is unstable when DCDEN1 is enabled.</title><link>https://devzone.nordicsemi.com/thread/247047?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 10:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9269a1ca-99d8-456c-a1ca-80bf1c35a6ed</guid><dc:creator>Brad Roberts</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am doing that as of the moment...&lt;/p&gt;
&lt;p&gt;I am trying to build on SDK 16.0.0 to show you that it is not a &amp;quot;&lt;span&gt;hal_nfc_t2t.c&amp;quot; problem. But like I said it is quite impossible to get things done with the pre compiled lib. Now I am using trying out &amp;quot;nrfx_nfct.c&amp;quot; from SDK 16.0.0.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC is unstable when DCDEN1 is enabled.</title><link>https://devzone.nordicsemi.com/thread/246792?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 11:39:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe6d9d6d-b577-450a-92e2-d7c1e253b446</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As mentioned in the previous reply, could you share a minimal project that would reproduce the issue?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;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 is unstable when DCDEN1 is enabled.</title><link>https://devzone.nordicsemi.com/thread/246159?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 07:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8df6c521-18da-4cf8-abf6-5711e5913943</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t really see any reasons for why the Hardfault would disappear as a consequence of you writing to that register. I&amp;#39;m also not confident in that the Hardfault isn&amp;#39;t connected to your usage of a customized&amp;nbsp;&lt;span&gt;hal_t2t.c from SDK 15.2.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The register is an internal undocumented register that we unfortunately don&amp;#39;t share any information about.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;No, the NFCT peripheral is specified at 106 kbps.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I need to discuss this case with some of our developers. I&amp;#39;ll get back to you when I have more information. In the meantime, could you provide a minimal project that would reproduce the issue and the steps to reproduce it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC is unstable when DCDEN1 is enabled.</title><link>https://devzone.nordicsemi.com/thread/245928?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2020 01:13:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f563564-022e-408e-8fec-f31a0c5904c8</guid><dc:creator>Brad Roberts</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;I found a work around by changing the value of an unknown NFCT register used in errata FTPAN-98.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;*(volatile uint32_t *) 0x4000568C = 0x00007029;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This allows me to use DCDCEN1 now.&lt;/p&gt;
&lt;p&gt;As stated in my first post, my IC revision is QIAAD0 and it is not affected by FTPAN-98. Initial reading on register &lt;span&gt;0x4000568C&amp;nbsp;&lt;/span&gt;resulted in a value of&amp;nbsp;&lt;span&gt;0x00038148. I divided this default value by powers of 2 until the hard faults stopped coming. I don&amp;#39;t know why this works. I blindly tried other unknown NFCT registers before I found this one.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I believe the problem was related to EasyDMA causing memory corruptions in the RAM. This resulted to invalid values inside the stack and thus causing the hard faults. Hard faults caused the delays in which resulted to NFC communication failures in some timing constrained readers.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Follow up questions:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. Is it possible for you to&amp;nbsp;tell me what register&amp;nbsp;0x4000568C actually is?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Are there other undocumented NFCT registers that can enable 212 kbps and 424 kbps speeds?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I was checking a very early version of the SDK and I came across these registers:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SHUNT_REG_THRESHOLDS &amp;nbsp;0x40005610&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;MOD_STEP_FIXED &amp;nbsp;0x40005614&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;MOD_STEP_MULTIPLIER &amp;nbsp;0x40005618&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;INITIAL_LOAD_CTRL_VAL &amp;nbsp;0x40005688&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;MOD_STEP_FIXED and MOD_STEP_MULTIPLIER sounded like they could be used to adjust the default 106 kbps communication speed. They don&amp;#39;t do anything to my IC Revision though.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;B.R.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC is unstable when DCDEN1 is enabled.</title><link>https://devzone.nordicsemi.com/thread/245582?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 13:52:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e55a774-58f0-40b9-b409-40ed17570797</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I understand, it seems the hardfaults are coming from the NFC IRQ. I can&amp;#39;t see a clear dependency between the DCDC and the NFC peripheral. A possibility would be that the DCDC switching is affecting the HFXO in the form of noise, but i&amp;#39;m not sure on this. Could you provide a minimal project that would reproduce this issue and the steps to reproduce it? I can make the case private if you prefer it :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC is unstable when DCDEN1 is enabled.</title><link>https://devzone.nordicsemi.com/thread/245338?ContentTypeID=1</link><pubDate>Sat, 18 Apr 2020 09:11:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02110431-424f-4dd6-bbbb-111dec07475e</guid><dc:creator>Brad Roberts</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;I tried&amp;nbsp;the writable NDEF&amp;nbsp;NFC example in SDK 16.0.0 but it cannot replicate the problem because I believe the NFC traffic is too low.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t believe the problem is related to any current NFCT erratas because I have ZERO HARDFAULTS when DCDCEN1 is disabled. If this was related to the supposedly &amp;quot;buggy&amp;quot; NFCT hal_nfc_t2t.c from previous SDKs then I should have the same HARDFAULTS when not using DCDCEN1.&lt;/p&gt;
&lt;p&gt;As I developer, I find the NFCT precompiled libs from SDK 16.0.0 very restricting and practically useless for doing anything &amp;quot;productive&amp;quot;. My current project can never work with precompiled libs in SDK 16.0.0 that is why I am using SDK 15.2.0.&lt;/p&gt;
&lt;p&gt;Anyway, I have&amp;nbsp;imported my project to&amp;nbsp;SDK 16.0.0&amp;nbsp;but using&amp;nbsp;&lt;span&gt;hal_nfc_t2t.c from SDK 15.2.0 and the same&amp;nbsp;&lt;/span&gt;HARDFAULTS appear when DCDCEN1 is again enabled.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you have any idea what those&amp;nbsp;hardfaults mean btw?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC is unstable when DCDEN1 is enabled.</title><link>https://devzone.nordicsemi.com/thread/245022?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 13:45:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1bb667f-7b53-4c2a-af5c-18916593d131</guid><dc:creator>Brad Roberts</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will try to replicate it using those precompiled libs on SDK 16.0.&lt;/p&gt;
&lt;p&gt;B.R&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC is unstable when DCDEN1 is enabled.</title><link>https://devzone.nordicsemi.com/thread/244996?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 12:38:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7f7c95f-e82f-4224-ba4f-7aa29007c95a</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for a good explanation of your issue. I&amp;#39;m not entirely sure in which files the workaround is implemented in SDK 16, but have you implemented the workaround yourself in&amp;nbsp;the custom files? Are you able to reproduce the error with an unmodified (but with DCDC enabled) NFC Tag example from SDK 16.0 that uses the precompiled libs?&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC is unstable when DCDEN1 is enabled.</title><link>https://devzone.nordicsemi.com/thread/244697?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 11:36:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:070d3cd5-22cd-48a2-8bd6-059decf8ea57</guid><dc:creator>Brad Roberts</dc:creator><description>&lt;p&gt;Peripherals used:&lt;/p&gt;
&lt;p&gt;SPIM3 @ 32Mhz (NRF_SPIM_FREQ_32M)&lt;/p&gt;
&lt;p&gt;WDT @&amp;nbsp;NRF_WDT-&amp;gt;CRV&amp;nbsp; &amp;nbsp; =&amp;nbsp;3&amp;nbsp;* 32768 ; &lt;span&gt; &lt;/span&gt;// 3 sec. timeout&lt;/p&gt;
&lt;p&gt;NVMC&lt;/p&gt;
&lt;p&gt;app_timer&lt;/p&gt;
&lt;p&gt;bsp_board_init(BSP_INIT_LEDS);&lt;/p&gt;
&lt;p&gt;bsp_board_init(BSP_INIT_BUTTONS);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;while (1)&lt;br /&gt; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; NRF_LOG_FLUSH();&lt;br /&gt;&amp;nbsp; &amp;nbsp; NRF_WDT-&amp;gt;RR[0] = WDT_RR_RR_Reload; //Reload watchdog register 0&lt;br /&gt;&amp;nbsp; &amp;nbsp; power_manage();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC is unstable when DCDEN1 is enabled.</title><link>https://devzone.nordicsemi.com/thread/244686?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 11:05:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38615712-c65c-4f45-8840-e46c82f367a9</guid><dc:creator>Brad Roberts</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Just to add to this...&lt;/p&gt;
&lt;p&gt;I enabled UART logging and I could see that I am getting hardfault errors when DCDEN1 is set to 0x00000001;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; hardfault: HARD FAULT at 0x0668D20C&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: R0: 0x00000000 R1: 0x00000006 R2: 0x00000000 R3: 0x00000000&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: R12: 0x0000000C LR: 0x00001849 PSR: 0x01000015&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: Cause: Instruction bus error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There is not code at&amp;nbsp;&lt;span&gt;0x0668D20C (obviously)...&amp;nbsp; So why do I get these errors when DCDEN1 is enabled?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The address of the HARD FAULT randomly changes... here are other instances:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: HARD FAULT at 0x0E7C9248&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: R0: 0x00000000 R1: 0x00000006 R2: 0x00000000 R3: 0x0 0000000&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: R12: 0x0000000C LR: 0x00001849 PSR: 0x01000015&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: Cause: Instruction bus error.&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; hardfault: HARD FAULT at 0x00002B72&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: R0: 0x0000E3AF R1: 0x20000B3C R2: 0x0000FFFE R3: 0x000074C4&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: R12: 0x00000000 LR: 0x00000AA7 PSR: 0x81000015&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: Cause: Data bus error (PC value stacked for the exception return points to the instruction that caused the fault).&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: Bus Fault Address: 0x20008000&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; hardfault: HARD FAULT at 0x68D20D30&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: R0: 0x00000000 R1: 0x00000028 R2: 0x200014CC R3: 0x00000004&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: R12: 0x00000000 LR: 0x000016AF PSR: 0x20000015&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: Cause: Instruction bus error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now when I just simply put back&amp;nbsp;&lt;span&gt;&amp;nbsp;DCDEN1 to 0x00000000, the hard faults disappear.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;These hard faults were probably the ones causing the FDT issues...&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Anyway, how can I fix this problem as I really need to enable DCDEN1 to lower my power consumption.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC is unstable when DCDEN1 is enabled.</title><link>https://devzone.nordicsemi.com/thread/244683?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 10:55:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41446bb8-1d03-40eb-be59-23b62458edd1</guid><dc:creator>Brad Roberts</dc:creator><description>&lt;p&gt;Just&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>