<?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 Tag reader example with ST25R3911B fails</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109500/nfc-tag-reader-example-with-st25r3911b-fails</link><description>Hi, 
 I try to run the example nfc tag reader with ST25R3911B but it fails. In terminal, following errors occur: 
 
 *** Booting Zephyr OS build v3.3.99-ncs1-1 *** Starting NFC TAG Reader example E: Oscillator start failed E: st25r3911b initialization</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Mar 2024 12:21:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109500/nfc-tag-reader-example-with-st25r3911b-fails" /><item><title>RE: NFC Tag reader example with ST25R3911B fails</title><link>https://devzone.nordicsemi.com/thread/475382?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 12:21:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e80da40b-3c72-4196-a8ef-a66dae3f5865</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The 5340 supports up to 5 SPI slave/masters instances. So the different SPI0-4 would reflect different SPI instances.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC Tag reader example with ST25R3911B fails</title><link>https://devzone.nordicsemi.com/thread/475338?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 09:36:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83ed84fd-7fa3-4d4e-bea0-7fd358cf4cc4</guid><dc:creator>kahlenberg</dc:creator><description>&lt;p&gt;I am using nRF Version 2.4.2.&lt;/p&gt;
&lt;p&gt;I already activated SPI with CONFIG_SPI=y, but why are there multiple SPI nodes in device-tree? spi0, spi1, spi3... and even spi4.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC Tag reader example with ST25R3911B fails</title><link>https://devzone.nordicsemi.com/thread/475334?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 09:29:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:583baceb-5030-402b-86e5-dee13917b257</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;You should only need to use the CONFIG_SPI=y to enable the SPI interface. I can&amp;#39;t see anything stands out. Could you build the project with optimized for debug and see if anything more is printed. I&amp;#39;m also curious regarding the&amp;nbsp;&lt;span&gt;E: Oscillator start failed.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Which version of the SDK are you using?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Runar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC Tag reader example with ST25R3911B fails</title><link>https://devzone.nordicsemi.com/thread/475317?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 08:35:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b85fe4e-7530-4096-bf4a-cf9eadc69f36</guid><dc:creator>kahlenberg</dc:creator><description>&lt;p&gt;One more question about selecting SPI instances.&lt;/p&gt;
&lt;p&gt;In device-tree there are a couple of SPI nodes, i.e. spi0, spi1, spi3... and in proj.conf SPI is activated with CONFIG_SPI=y. But which instance is used in particular case? spi0 or spi1 or spi3? How / where is the selection occur?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC Tag reader example with ST25R3911B fails</title><link>https://devzone.nordicsemi.com/thread/475248?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2024 21:58:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b5a1800-4851-4097-ad89-9f181934462c</guid><dc:creator>kahlenberg</dc:creator><description>&lt;p&gt;Edit:&lt;br /&gt;I am using a device tree overlay as in the example code:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi1 {
	compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	cs-gpios = &amp;lt;&amp;amp;gpio1 12 GPIO_ACTIVE_LOW&amp;gt;;

	pinctrl-0 = &amp;lt;&amp;amp;spi1_default_alt&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi1_sleep_alt&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	st25r3911b@0 {
		compatible = &amp;quot;st,st25r3911b&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
		spi-max-frequency = &amp;lt;4000000&amp;gt;;
		irq-gpios = &amp;lt;&amp;amp;gpio0 3 GPIO_ACTIVE_HIGH&amp;gt;;
		led-nfca-gpios = &amp;lt;&amp;amp;gpio0 7 GPIO_ACTIVE_HIGH&amp;gt;;
	};
};

&amp;amp;pinctrl {
	spi1_default_alt: spi1_default_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(SPIM_SCK, 1, 15)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MOSI, 1, 13)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MISO, 1, 14)&amp;gt;;
		};
	};

	spi1_sleep_alt: spi1_sleep_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(SPIM_SCK, 1, 15)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MOSI, 1, 13)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MISO, 1, 14)&amp;gt;;
			low-power-enable;
		};
	};

};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The connections from X-NUCLOE-NFC08A1 seem correct.&lt;br /&gt;&lt;br /&gt;proj.conf&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2019 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
CONFIG_NCS_SAMPLES_DEFAULTS=y

CONFIG_SPI=y

CONFIG_ST25R3911B_LIB=y

CONFIG_NFC_NDEF=y
CONFIG_NFC_NDEF_RECORD=y
CONFIG_NFC_NDEF_MSG=y
CONFIG_NFC_NDEF_PARSER=y
CONFIG_NFC_NDEF_LE_OOB_REC_PARSER=y
CONFIG_NFC_T2T_PARSER=y
CONFIG_NFC_T4T_HL_PROCEDURE=y
CONFIG_NFC_NDEF_CH_PARSER=y

CONFIG_POLL=y

CONFIG_MAIN_STACK_SIZE=2048
&lt;/pre&gt;&lt;br /&gt;Still doesn&amp;#39;t work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC Tag reader example with ST25R3911B fails</title><link>https://devzone.nordicsemi.com/thread/475239?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2024 20:21:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98b76dad-8c7c-4d72-8ec4-5782f337874d</guid><dc:creator>kahlenberg</dc:creator><description>&lt;p&gt;Hi Runar,&lt;/p&gt;
&lt;p&gt;I am using the example code without changing anything:&lt;br /&gt;&lt;a id="" href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/nfc/tag_reader"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/samples/nfc/tag_reader&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am not sure and searching for If the&amp;nbsp;&lt;span&gt;ST25R3911B must be programmed with a firmware before usage.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC Tag reader example with ST25R3911B fails</title><link>https://devzone.nordicsemi.com/thread/475017?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2024 08:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d2a071a-866b-4f10-bcca-03e492085025</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi Mubin&lt;/p&gt;
&lt;p&gt;The error indicate that the device is not found. Could you post devicetree and the prj.conf. What interface do you use to communicate with the&amp;nbsp;&lt;span&gt;ST25R3911B? Have you checked if there is any activity on the pins?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Runar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>