<?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>Problem with NFCT when approaching a magnetic field (Mobile phone)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111083/problem-with-nfct-when-approaching-a-magnetic-field-mobile-phone</link><description>Hi! 
 I&amp;#39;m developing a project with functional FreeRTOS ( I started from the blinky_freertos example ) on the DK nRF52840 with the nRF5_SDK_17.1.0_ddde560 version, and now I&amp;#39;m incorporating the &amp;quot;record_url&amp;quot; example into one of my threads. The program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 May 2024 17:12:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111083/problem-with-nfct-when-approaching-a-magnetic-field-mobile-phone" /><item><title>RE: Problem with NFCT when approaching a magnetic field (Mobile phone)</title><link>https://devzone.nordicsemi.com/thread/483123?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 17:12:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:973cbc89-758e-4080-b7cb-8001a9856684</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;The interrupt handler for the NFC is not being correctly set and so the default vector is used. One of the setup calls needs fixing; maybe check to see any functions are returning failure, or look at an example showing the handler setup.&lt;/p&gt;
&lt;p&gt;Edit: Actually I looked at sdk17.1 and don&amp;#39;t see &lt;em&gt;default_handler,&lt;/em&gt;&amp;nbsp;(not gcc, IAR) but this is same issue:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        PUBWEAK  NFCT_IRQHandler
        SECTION .text:CODE:REORDER:NOROOT(1)
NFCT_IRQHandler
        B .
        &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Oh I see the handler in gcc is set via a macro (macros killed off the SDK ..):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/* IRQ Handlers */

    .globl  Default_Handler
    .type   Default_Handler, %function
Default_Handler:
    b       .
    .size   Default_Handler, . - Default_Handler

    .macro  IRQ handler
    .weak   \handler
    .set    \handler, Default_Handler
    .endm
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with NFCT when approaching a magnetic field (Mobile phone)</title><link>https://devzone.nordicsemi.com/thread/483099?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 14:43:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cee77fea-baf8-423e-9e5c-fdb7bcf5db09</guid><dc:creator>JonConesa</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thanks you for the response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I mentioned earlier, I&amp;#39;m using the DK nRF52840 and as for RTOS, I opted for FreeRTOS, since it&amp;#39;s the one I&amp;#39;m familiar with and I currently have no intention of changing.&lt;/p&gt;
&lt;p&gt;Regarding NFC, I&amp;#39;m using the DK&amp;#39;s antenna and trying to read the tag (in my case, I want it to be a URL) with the phone.&lt;/p&gt;
&lt;p&gt;All the different NFC stages are initialized correctly, but when I bring the phone close to the antenna, the program stops working.&lt;/p&gt;
&lt;p&gt;It seems that the magnetic field of the phone is detected by the DK, but it can&amp;#39;t handle it correctly because it freezes at the point I mentioned before.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with NFCT when approaching a magnetic field (Mobile phone)</title><link>https://devzone.nordicsemi.com/thread/483077?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 13:45:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bd77624-7b05-40e5-a78b-0801dc722f5c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Is there a specific reason you&amp;#39;re using the nRF5 SDK and not the nRF Connect SDK? Since you&amp;#39;re using an RTOS I think it&amp;#39;s worth noting that we would recommend using the Zephyr RTOS that the nRF Connect SDK is based on. More information on that in our &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement"&gt;nRF Connect SDK vs. nRF5 SDK statement here&lt;/a&gt;. What are you trying to achieve exactly, is the phone supposed to read the NFC tag and the URL you&amp;#39;re broadcasting? Are you working on an nRF52840 DK or a custom board? If it&amp;#39;s a custom board I&amp;#39;m interested in seeing your NFC antenna and circuitry.&amp;nbsp;&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></channel></rss>