<?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>How to debug NFC APDUs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26691/how-to-debug-nfc-apdus</link><description>Hi,
we have implemented the experimental_writeable_ndef_msg example from SDK12.2 with Nordic NRF52 on a custom board. Reading the NDEF Message works fine with smartphones (Android and IOS11 with Iphone 7). We have used NFC in previous Projects together</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Nov 2017 15:24:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26691/how-to-debug-nfc-apdus" /><item><title>RE: How to debug NFC APDUs</title><link>https://devzone.nordicsemi.com/thread/104976?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2017 15:24:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e0bedb4-1037-4283-98d9-5767072ba77c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;For TX, you can try adding log in hal_nfc_send(), the buffer is in p_data with data_length. But I would assume it is exactly what the application provides.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug NFC APDUs</title><link>https://devzone.nordicsemi.com/thread/104974?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2017 14:00:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15d52bbb-a53f-465c-a3d2-a23c1364cd18</guid><dc:creator>Mik</dc:creator><description>&lt;p&gt;Hi Hung Bui,
thanks for the comment and it worked fine to get the rx_buffer. I&amp;#39;ve just added the NRF_LOG_HEXDUMP_DEBUG() at the suggested line and i can see the difference between the two readers. I would also like to see the tx, but there is no m_nfc_tx_buffer. What would you suggest?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug NFC APDUs</title><link>https://devzone.nordicsemi.com/thread/104975?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2017 13:37:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67c27ab5-e25a-4b36-855a-58cd821520c9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Mik,&lt;/p&gt;
&lt;p&gt;You mean you want to see deeper log level like the &lt;code&gt;&amp;quot;HAL_NFC:DEBUG: 02 00 A4 04 00 07 D2 76 00 00 85 01 01 &amp;quot;&lt;/code&gt; in the other case  ?&lt;/p&gt;
&lt;p&gt;You should first enable logging in the sdk_config file, remember to enable logging in both nRF_LOG and nRF_NFC. Change the default logging level to DEBUG instead of Info.
Logging with RTT is suggested as I found that when I enable logging with UART i have problem communicate with NFC, could be some timing issue.&lt;/p&gt;
&lt;p&gt;Then you can print out the RX data (m_nfc_rx_buffer) when you receive RX event (look for the place where we print &amp;quot;Rx fend&amp;quot; in hal_nfc_t4t.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>