<?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 problem on nRF52840 when using mesh DFU bootloader.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67942/nfc-problem-on-nrf52840-when-using-mesh-dfu-bootloader</link><description>I have developped an application using bluetooth mesh with NFC to read a text record. I am currently using the nRF52840 DK Rev 2.0.1 2020.11. 
 Regarding my software setup I am using the nrf mesh sdk v4.2.0 and nrf sdk v.17.0.0. 
 My application use the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Nov 2020 13:37:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67942/nfc-problem-on-nrf52840-when-using-mesh-dfu-bootloader" /><item><title>RE: NFC problem on nRF52840 when using mesh DFU bootloader.</title><link>https://devzone.nordicsemi.com/thread/279498?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 13:37:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:878e38ec-4074-431f-9ca9-873fcac1c146</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Tony&lt;/p&gt;
&lt;p&gt;Edvin is currently on leave, and I have been tasked to look after this case while he&amp;#39;s away. I&amp;#39;m sorry about the late reply, but we just now got to his backlog.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note that if you&amp;#39;re using SDK v17.0.0 it is&amp;nbsp;&lt;strong&gt;strongly&amp;nbsp;&lt;/strong&gt;recommended to switch to SD v17.0.2, as this is a bug fix release replacing v17.0.0.&lt;/p&gt;
&lt;p&gt;Regarding Edvin&amp;#39;s questions in his last reply, when running the NFC with the default bootloader, are you able to use a logic analyzer or similar to see if there is any &amp;quot;action&amp;quot; at all on the NFC pins (P0.09 and P0.10)? While debugging, are you able to see any differences in the nfc_init() function at all between using the default bootloader and the one excluding the init_clock() function?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC problem on nRF52840 when using mesh DFU bootloader.</title><link>https://devzone.nordicsemi.com/thread/278720?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 07:46:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cf0aa55-4825-4f7e-82ac-88669c95865d</guid><dc:creator>TonyAkiki</dc:creator><description>&lt;p&gt;Here is my different versions I use:&lt;/p&gt;
&lt;p&gt;nrf mesh sdk v4.2.0 &lt;br /&gt;nrf sdk v.17.0.0&lt;br /&gt;softdevice s140_nrf52_7.0.1_softdevice &lt;br /&gt;mesh_bootloader_gccarmemb_nrf52840_xxAA&lt;br /&gt;&lt;br /&gt;When using NFC library with a mesh application and default mesh bootloader everything seems to work fine ...main is reached nfc init function is reached without problem , no crashes no errors BUT I&amp;nbsp;cant scan the NFC tag with my phone ... nothing is detected!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC problem on nRF52840 when using mesh DFU bootloader.</title><link>https://devzone.nordicsemi.com/thread/278594?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2020 12:48:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e1818eb-aedf-4f55-bc2f-a1259e4d42fa</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;It may be that the NFC is checking whether the clock is running, and requesting the clock only if it is not.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What SDK version and mesh SDK version are you using?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have not been able to replicate this, but I have not imported the NFC libraries to a mesh example. I tried to add the same init_clock function to the beginning of the record_text nfc example from SDK17. I did not find any issues there. What does it behave like? Does the app crash when you don&amp;#39;t comment out the init_clock function in the bootloader? What does the application behave like? Is the main() function reached? Is the nfc init function reached? Does it return any errors?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you are content with the workaround to comment out the init_clock() function from the bootloader, that is perfectly fine. No need to reply. If you want to try to find the reason, we can continue to dig a bit for the reason for this issue. If so, do you have a mesh example that replicates this issue when you program the default bootloader?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC problem on nRF52840 when using mesh DFU bootloader.</title><link>https://devzone.nordicsemi.com/thread/278585?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2020 12:15:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:462cd392-c47d-4e15-a1f8-4bfb00851fef</guid><dc:creator>TonyAkiki</dc:creator><description>&lt;p&gt;Yes the bootloader still working!&amp;nbsp;&lt;br /&gt;It feels actually strange that initiating the clock in the bootloader affects the NFC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC problem on nRF52840 when using mesh DFU bootloader.</title><link>https://devzone.nordicsemi.com/thread/278548?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2020 08:36:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b873251e-799f-4424-ab10-07f19684a2f3</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;The softdevice will start the clocks, yes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What I find strange is that if the bootloader starts the clock, the NFC doesn&amp;#39;t work. However, as long as you start the clock from your application (which the softdevice does), it shouldn&amp;#39;t matter that you comment it out in the bootloader.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Perhaps it is one of the init functions in the NFC libraries that doesn&amp;#39;t like that the clocks are running from the start.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Your bootloader still works, right? After you comment out the clock init function?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC problem on nRF52840 when using mesh DFU bootloader.</title><link>https://devzone.nordicsemi.com/thread/278479?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2020 14:34:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2c6ed0c-971e-4d25-a057-d3d4128dc6ff</guid><dc:creator>TonyAkiki</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;/p&gt;
&lt;p&gt;As i mentioned before, I had no issues when running just the application and softdevice without the bootloader,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Commenting out the clock_init() in the mesh bootloader seems to fix the NFC issue. It does not either seems that the application run into issues. And above all the NFC works again! I guess the softedvice configure and start the clock but not sure about it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC problem on nRF52840 when using mesh DFU bootloader.</title><link>https://devzone.nordicsemi.com/thread/278465?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2020 14:06:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:639a40d3-a743-448d-983f-f6876ec4a268</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;As you said in your private ticket, the clock is started in the bootloader, and it works if you comment out this in the bootloader. In that case, I would recommend that you make sure it is running from the application.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Did you try to debug the application before modifying the bootloader? Does the application run into any issues? Is the error handler picking up something, or is the application running as before?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>