<?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>Trying to combine BLE Central UART with NFC URI examples</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66231/trying-to-combine-ble-central-uart-with-nfc-uri-examples</link><description>This is a beginner question and may well related to a misplaced setting in Segger Embedded Studio. 
 I am working towards a BLE scanner application which will include NFC tag capability. 
 To start me off I copied the NFC code from the record_url example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Nov 2020 11:07:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66231/trying-to-combine-ble-central-uart-with-nfc-uri-examples" /><item><title>RE: Trying to combine BLE Central UART with NFC URI examples</title><link>https://devzone.nordicsemi.com/thread/281511?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 11:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cb6c9bf-5b22-4df4-a694-272464325864</guid><dc:creator>hkarthik97</dc:creator><description>&lt;p&gt;This solution works for me too Thankyou very much for sharing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to combine BLE Central UART with NFC URI examples</title><link>https://devzone.nordicsemi.com/thread/271407?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 20:35:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ea854d5-ef63-4915-9c59-3429065f5e55</guid><dc:creator>Gerrikoio</dc:creator><description>&lt;p&gt;I did not get very far with approach shown above.&lt;/p&gt;
&lt;p&gt;Anyway, now that I&amp;#39;ve become more familiar with the SDK and the many BLE and NFC based examples, I thought to have a more thorough review of all the &amp;quot;experimental&amp;quot; examples.&lt;/p&gt;
&lt;p&gt;I finally found an experimental example in the BLE central folder which used the t2t_lib and started with this...&lt;/p&gt;
&lt;p&gt;I then slowly modified to convert to just a BLE central scanning process and to just to have the NDEF URL part (I had no need for pairing etc.)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Well I am happy to say I now have this working&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I believe the problem was caused by parameters missing or not set in the sdk_config file. It is only now that I am more familiar with this file was I able to work out what to change.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There are two Segger Embedded Studio IDE tools that were used to solve the problem. Namely:&lt;/p&gt;
&lt;p&gt;1. The CMSIS Configuration Wizard.&lt;/p&gt;
&lt;p&gt;This helped quickly identify which parameters were missing in the sdk_confiig file, which then threw up errors in the various library files when ported across.&lt;/p&gt;
&lt;p&gt;2. The Project -&amp;gt; Open Solution in Editor option&lt;/p&gt;
&lt;p&gt;I found that this was the quickest way to port across library folders and files and to make sure the path to each folder was correct.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to combine BLE Central UART with NFC URI examples</title><link>https://devzone.nordicsemi.com/thread/271370?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 14:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bb75a9f-b78c-4f04-9369-b324354ba087</guid><dc:creator>Gerrikoio</dc:creator><description>&lt;p&gt;Nothing worse than hacking around in circles, so I&amp;#39;ve returned back to my original error log to see if there is something I missed.&lt;/p&gt;
&lt;p&gt;And there is... staring me right in the face... it relates to a driver &amp;quot;&lt;strong&gt;nrfx_nfct&lt;/strong&gt;&amp;quot; and I had not included this file in my project.&lt;/p&gt;
&lt;p&gt;So I now included that driver within my project and also I found that there is a setting in &lt;strong&gt;sdk_config&lt;/strong&gt;: &lt;strong&gt;NRFX_NFCT_ENABLED&lt;/strong&gt; which needs to set as this flag is disabled by default for non nfc projects.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But this is now throwing up &lt;strong&gt;another error&lt;/strong&gt; with this &lt;strong&gt;macro&lt;/strong&gt; in nrfx_nfct.h.&lt;/p&gt;
&lt;p&gt;/** @brief Macro for creating a timer driver instance. */&lt;br /&gt;#define NRFX_TIMER_INSTANCE(id)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;br /&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .p_reg&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = NRFX_CONCAT_2(NRF_TIMER, id),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .instance_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = NRFX_CONCAT_3(NRFX_TIMER, id, _INST_IDX), \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .cc_channel_count = NRF_TIMER_CC_CHANNEL_COUNT(id),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My error log tells me the following:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;--&amp;nbsp; Compiling &amp;#39;nrfx_nfct.c&amp;#39; &lt;strong&gt;1 Error&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;--&amp;nbsp; &amp;lsquo;NRFX_TIMER4_INST_IDX&amp;rsquo; undeclared here (not in a function); did you mean &amp;lsquo;NRFX_TIMER_INSTANCE&amp;rsquo;?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;--&amp;nbsp; in definition of macro &amp;lsquo;NRFX_CONCAT_3_&amp;rsquo;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;--&amp;nbsp; in expansion of macro &amp;lsquo;NRFX_CONCAT_3&amp;rsquo;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;--&amp;nbsp; in expansion of macro &amp;lsquo;NRFX_TIMER_INSTANCE&amp;rsquo;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to combine BLE Central UART with NFC URI examples</title><link>https://devzone.nordicsemi.com/thread/271310?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 11:36:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b93aa83-24ed-46a5-a27a-e6a15db35824</guid><dc:creator>Gerrikoio</dc:creator><description>&lt;p&gt;Thanks for the suggestion. That was actually the one and only example that came up when searching on the forum. Because it related to t4t I decided not to use for the purposes of writing a NDEF URL and also want to stick with tag type 2 for now.&lt;/p&gt;
&lt;p&gt;For now I continue on this path and I am now attempting to build the other way.&lt;/p&gt;
&lt;p&gt;As in, start with a working NFC example and add in the BLE elements. This too is proving a troublesome process.&lt;/p&gt;
&lt;p&gt;The first build error I get (and all I&amp;#39;ve done to my code is add in libraries etc.) is that it tells me that it cannot find NRF_ERROR_INVALID_PARAM or NRF_SUCCESS.&lt;/p&gt;
&lt;p&gt;It took awhile to figure out why and it relates to the use of SOFTDEVICE_PRESENT in the Preprocessor Definitions. I need to use this definition for BLE.&lt;/p&gt;
&lt;p&gt;This in turn relates to the file &amp;quot;nrf_error&amp;quot;.&lt;/p&gt;
&lt;p&gt;What makes this messy is that there are apparently 2 nrf_error files.&lt;/p&gt;
&lt;p&gt;The BLE example use &amp;quot;nrf_error&amp;quot; from &amp;quot;components/softdevice/...&amp;quot; folder while non BLE examples use the one in the &amp;quot;components/drivers_nrf/nrf_soc_nosd&amp;quot; folder.&lt;/p&gt;
&lt;p&gt;What I cannot figure out is where in the apps is reference to the correct nrf_error.h file as this appears not to be included in the main.c file as standard.&lt;/p&gt;
&lt;p&gt;Any advice as to how best to resolve will be greatly appreciated.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Or should the advice really be that the tag type 2 library is incompatible with BLE softdevice and thus cannot be used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to combine BLE Central UART with NFC URI examples</title><link>https://devzone.nordicsemi.com/thread/271257?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 08:43:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79a5ca3b-4f2d-41f3-a7a6-62c8403a5370</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I could find this SES example for nRF52832 with BLE and NFC (based on nRF5 SDK v15.2 I believe):&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/43734/combining-ble-and-nfc-in-nrf52832/171638#171638"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/43734/combining-ble-and-nfc-in-nrf52832/171638#171638&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Maybe that can be used as reference? I notice it is using the t4t library though, but that should also work.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to combine BLE Central UART with NFC URI examples</title><link>https://devzone.nordicsemi.com/thread/271187?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 18:12:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f009f419-60c5-4aed-8fd6-f9720b630f3a</guid><dc:creator>Gerrikoio</dc:creator><description>&lt;p&gt;Thanks for your help so far. YEs I&amp;#39;ve tried all those options.&lt;/p&gt;
&lt;p&gt;I have rechecked over and over the preprocessor options and user include directories and these are all referencing the correct files, because if I change the reference it tells me that it cannot find the file.&lt;/p&gt;
&lt;p&gt;No, for some reason when linking everything together it bombs. I am still convinced it has to do with the precompiled t2t_lib file. There must be some simple setting in the SES compiler that clears this problem.&lt;/p&gt;
&lt;p&gt;There has to be someone out there that got this working before. It is now getting very frustrating.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to combine BLE Central UART with NFC URI examples</title><link>https://devzone.nordicsemi.com/thread/271179?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 16:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5e8f207-386c-4d8f-9d00-f6a0fdda3996</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I don&amp;#39;t have any good suggestion than to check that NFC defines from the example project is copied over, and all the source (.c) files are included in the project and paths. Also try to do a clean build after saving all changes.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to combine BLE Central UART with NFC URI examples</title><link>https://devzone.nordicsemi.com/thread/271177?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 16:30:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcdfbd4f-50fd-4da7-a6ba-ffce364d991f</guid><dc:creator>Gerrikoio</dc:creator><description>&lt;p&gt;yes I have.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to combine BLE Central UART with NFC URI examples</title><link>https://devzone.nordicsemi.com/thread/271175?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 16:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17192722-9f97-4cf9-8d5a-d536777910f7</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You have included in your main.c?&lt;/p&gt;
&lt;p&gt;#include &amp;quot;nfc_t2t_lib.h&amp;quot;&lt;br /&gt;#include &amp;quot;nfc_uri_msg.h&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to combine BLE Central UART with NFC URI examples</title><link>https://devzone.nordicsemi.com/thread/271147?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 14:53:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a559f4bb-0ae2-480a-9828-392d7e3f2e65</guid><dc:creator>Gerrikoio</dc:creator><description>&lt;p&gt;Thanks for the suggestion. Yes, I did notice that there are a couple of BLE central/NFC combo examples under the experimental folder inside BLE central examples. However, these go way beyond what I need as these deal with ble oob pairing and in some cases use t4t (tag type 4) library files.&lt;/p&gt;
&lt;p&gt;Also, I noticed that none of these examples use &lt;strong&gt;nfc_t2t_lib&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The NFC &lt;strong&gt;record_url&lt;/strong&gt; example does use &lt;strong&gt;nfc_t2t_lib&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;So, as soon as I include the necessary file, i.e. .../components/nfc/t2t_lib/nfc_t2t_lib_gcc.a then I get all these errors as in it cannot find the functions etc. within this file even though IDE&amp;#39;s &amp;quot;intelli-sense&amp;quot; knows of functions etc.&lt;/p&gt;
&lt;p&gt;So something is not right.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to combine BLE Central UART with NFC URI examples</title><link>https://devzone.nordicsemi.com/thread/271061?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 11:39:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca1abb93-af63-4b69-8ea1-309638787af1</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You may find some help by looking at the ble peripheral examples that enable nfc, such as ble_app_hrs_nfc_pairing and ble_hids_keyboard_nfc_pairing. Unfortunately I am not aware of any good lookup other than to look at the sdk_config.h and the usage of the define in the header/source files.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to combine BLE Central UART with NFC URI examples</title><link>https://devzone.nordicsemi.com/thread/270906?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 15:08:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aec56a4-5b34-4fe7-948f-376038601e59</guid><dc:creator>Gerrikoio</dc:creator><description>&lt;p&gt;I hadn&amp;#39;t thought to check the &lt;strong&gt;sdk_config.h&lt;/strong&gt; file. It appears there are quite a few NFC settings within this file that probably require a manual change. Other than 1 or 2 obvious &amp;quot;enable&amp;quot; flags I cannot figure what else to chance etc.&lt;/p&gt;
&lt;p&gt;I am thus also curious to know where I can find documentation about what changes impact what etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>