<?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>nrf5340 spi</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95713/nrf5340-spi</link><description>Hello Sirs 
 I want to use the SPI hardware of nrf5340 in my custom board. I want to communicate with ADXL362 which is a very low power movement 
 sensor. Is there any similar application to guide me through? I have designed the device tree proper for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Jan 2023 10:41:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95713/nrf5340-spi" /><item><title>RE: nrf5340 spi</title><link>https://devzone.nordicsemi.com/thread/407280?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 10:41:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ad4d763-0856-410d-8d98-3975854121f4</guid><dc:creator>saeed mahvis</dc:creator><description>&lt;p&gt;Hi Sigurd&lt;/p&gt;
&lt;p&gt;Please accept my apology for the delay.Now I can read ADXL362 registers successfuly.Thank you very much for your efficient and invaluable suport.Now you can close this ticket.&lt;/p&gt;
&lt;p&gt;Yours faithfully&lt;/p&gt;
&lt;p&gt;Saeed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 spi</title><link>https://devzone.nordicsemi.com/thread/405271?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2023 13:37:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ad627bd-be31-4819-a4c5-7eccc02078ac</guid><dc:creator>saeed mahvis</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thank you very much. It did work. But please do not close this ticket until I can get sensor data&lt;/p&gt;
&lt;p&gt;by NRF completely.&lt;/p&gt;
&lt;p&gt;B.R.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 spi</title><link>https://devzone.nordicsemi.com/thread/405236?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2023 12:36:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b5ddda6-1538-46d9-b74c-f50f21f24a3f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Could be that you have not added the adxl dts node to a SPI node. You can see how it&amp;#39;s done here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/arm/thingy53_nrf5340/thingy53_nrf5340_common.dts#L192"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/arm/thingy53_nrf5340/thingy53_nrf5340_common.dts#L192&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is the version of the file used in NCS 1.8.0:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.7.0-ncs1/boards/arm/thingy53_nrf5340/thingy53_nrf5340_common.dts#L157"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v2.7.0-ncs1/boards/arm/thingy53_nrf5340/thingy53_nrf5340_common.dts#L157&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 spi</title><link>https://devzone.nordicsemi.com/thread/405184?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2023 09:44:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ca5a20e-c873-4e4d-8869-e844c57b109c</guid><dc:creator>saeed mahvis</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;There is a sample program in ncs/v1.8.0/zephyr/samples/sensor/adx362. I am using this sample&lt;/p&gt;
&lt;p&gt;program by adding accl0=&amp;amp;adxl362 in its devicetree file. But while compiling this error is issued:&lt;/p&gt;
&lt;p&gt;&amp;#39;DT_N_INST_0_adi_adxl362_P_label&amp;#39; undeclared (first use in this function) .&lt;/p&gt;
&lt;p&gt;How can I solve this problem.&lt;/p&gt;
&lt;p&gt;B.R.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 spi</title><link>https://devzone.nordicsemi.com/thread/405168?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2023 08:44:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6f156af-5797-49b0-bb89-6e7ecb148ef7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="saeed mahvis"] How can I add this to the devicetree file.[/quote]
&lt;p&gt;Either add it to your board dts file, or use an .overlay file.&lt;/p&gt;
&lt;p&gt;As a reference, it&amp;#39;s added in the board files for the Thingy:53 here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/arm/thingy53_nrf5340/thingy53_nrf5340_common.dts#L119"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/arm/thingy53_nrf5340/thingy53_nrf5340_common.dts#L119&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 spi</title><link>https://devzone.nordicsemi.com/thread/405143?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2023 05:31:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c8b0259-051f-4944-b32e-38f5c7cab9b3</guid><dc:creator>saeed mahvis</dc:creator><description>&lt;p&gt;Hi Sigurd&lt;/p&gt;
&lt;p&gt;There is no accel0 = &amp;amp;adxl362 in my devicetree. How can I add this to the devicetree file.&lt;/p&gt;
&lt;p&gt;B.R.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 spi</title><link>https://devzone.nordicsemi.com/thread/405021?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2023 12:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b441cf4e-0ac3-4f9b-b566-61c0122f55b4</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This sample here have support for&amp;nbsp;&lt;span&gt;ADXL362&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.2.99-ncs1/samples/sensor/accel_polling/src/main.c"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.2.99-ncs1/samples/sensor/accel_polling/src/main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Just make sure you have an alias for it in the devicetree.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        aliases {
                accel0 = &amp;amp;adxl362;
	};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>