<?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>Can you use nfc T4T and T2T libraries in same application/build?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76028/can-you-use-nfc-t4t-and-t2t-libraries-in-same-application-build</link><description>Can you use/link both nfc T4T and T2T libraries and wrapper/driver source in same application/build? 
 I don&amp;#39;t mean emulating both modes at the same time. 
 Thanks.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Jun 2021 10:39:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76028/can-you-use-nfc-t4t-and-t2t-libraries-in-same-application-build" /><item><title>RE: Can you use nfc T4T and T2T libraries in same application/build?</title><link>https://devzone.nordicsemi.com/thread/314877?ContentTypeID=1</link><pubDate>Fri, 11 Jun 2021 10:39:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61acb821-1068-41e4-8392-6291a999cd5b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;When the NFC_tXt_setup() functions return error code 8 (INVALID_STATE) it means that the emulation already is in running state.&amp;nbsp;This is related to a bug discovered in SDK v17, &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/63863/nfc-nfc_t4t_setup-returns-nrf_error_invalid_state-on-nrf5-sdk-v17-0-0-worked-on-14"&gt;described here&lt;/a&gt;, where the nfc_t4t_done() call actually doesn&amp;#39;t uninit the NFCT driver, and you need to call the nrfx_nfct_uninit() function after nfc_t4t_done() in order to be able to reinitialize the NFC peripheral.&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: Can you use nfc T4T and T2T libraries in same application/build?</title><link>https://devzone.nordicsemi.com/thread/314544?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 16:06:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0596cec-cfea-47e1-9589-761374be4158</guid><dc:creator>jp_is_my_name</dc:creator><description>&lt;p&gt;I tried it.&lt;/p&gt;
&lt;p&gt;There were no link errors or warnings. I&amp;#39;m using IAR tools. I didn&amp;#39;t make any SDK17 t2t or t4t&amp;nbsp; related source changes. I didn&amp;#39;t see anything in nrfx_nfct.c that needed changing.&lt;/p&gt;
&lt;div&gt;The bad news is that the NFC functionality only works once. In other words you can start t2t or t4t and they work normally, but once you stop nfc neither mode will restart.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;This is true even if only one mode is ever used. Seems like the problem may be with&amp;nbsp; _stop() and/or _done(), but it is odd that one mode doesn&amp;#39;t still work if the other mode is never used.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;@@@@@@ Case 1 only T4 mode from RESET&amp;nbsp;@@@@@@&lt;/div&gt;
&lt;div&gt;nfc_t4t_setup() OK&lt;/div&gt;
&lt;div&gt;nfc_t4t_parameter_set() OK&lt;/div&gt;
&lt;div&gt;nfc_t4t_emulation_start() OK&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&amp;lt;t4t functionality is working OK here &amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;nfc_t4t_emulation_stop() OK&lt;/div&gt;
&lt;div&gt;nfc_t4t_done()&amp;nbsp; OK&lt;/div&gt;
&lt;div&gt;&amp;lt;reader no longer detects device&amp;gt;&lt;/div&gt;
&lt;div&gt;=======================&lt;/div&gt;
&lt;div&gt;//2nd attempted use&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;nfc_t4t_setup() FAILS code 8&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;@@@@@@ Case 2 only T2 mode from RESET @@@@@@&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;nfc_t2t_setup() OK&lt;/div&gt;
&lt;div&gt;nfc_t2t_payload_set() OK&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;nfc_t2t_emulation_start() OK&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&amp;lt;t2t functionality is working normally here&amp;gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;nfc_t2t_emulation_stop() OK&lt;/div&gt;
&lt;div&gt;nfc_t2t_done()&amp;nbsp; OK&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;(also receive NFC_T2T_EVENT_STOPPED)&lt;/div&gt;
&lt;div&gt;&amp;lt;reader no longer detects device&amp;gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;//2nd attempted use&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;nfc_t2t_setup() FAILS code 8&lt;/strong&gt;&lt;/div&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: Can you use nfc T4T and T2T libraries in same application/build?</title><link>https://devzone.nordicsemi.com/thread/314041?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 20:53:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac894859-b603-4f84-9453-08ea1c8060d6</guid><dc:creator>jp_is_my_name</dc:creator><description>&lt;p&gt;Thanks. I guess I&amp;#39;ll try it and update the ticket with the results.&lt;/p&gt;
&lt;p&gt;As far as I could tell from inspection the&amp;nbsp;&lt;strong&gt;nrfx_nfct_init&lt;/strong&gt;() isn&amp;#39;t called from the src so it is probably called in the&amp;nbsp; library nfc_t4/2t_emulation_start(), which if true is good.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can you use nfc T4T and T2T libraries in same application/build?</title><link>https://devzone.nordicsemi.com/thread/313940?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 13:15:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c94f83d-2a49-4947-bce3-89292c1bc31a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I think these libraries use the same IRQHandler, so I&amp;#39;m guessing trying to add both into one project might cause some &amp;quot;multiple definitions&amp;quot; errors, but as other than that, I can&amp;#39;t think of why it should be a problem to have T4T and T2T in the same project. Please note that you might have to make some changes to the existing code in order to ensure that they use different handlers. The handler seems to be located in &lt;strong&gt;nrfx_nfct&lt;/strong&gt;.c and it calls a callback set in &lt;strong&gt;nrfx_nfct_init&lt;/strong&gt;().&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>