<?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>nRF52832 cannot stop adxl362&amp;#39;s spi</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56183/nrf52832-cannot-stop-adxl362-s-spi</link><description>Hello, I tried to work with nRF52832 to read adxl362 registers, Here is my function to read all 3 received bytes from adxl362 (according to datasheets, the last byte must have the right value): 
 
 every time I run this code to read a specific register</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Jan 2020 10:28:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56183/nrf52832-cannot-stop-adxl362-s-spi" /><item><title>RE: nRF52832 cannot stop adxl362's spi</title><link>https://devzone.nordicsemi.com/thread/227847?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2020 10:28:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a58a63f9-c902-4951-818c-1843762297b5</guid><dc:creator>haakonsh</dc:creator><description>[quote user="bardia3000"]Actually there are some other chips on the SPI bus, So I set the&amp;nbsp;spi_config.ss_pin as NRF_DRV_SPI_PIN_NOT_USED and control CS pin manually.[/quote]
&lt;p&gt;&amp;nbsp;Fair enough.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
[quote user="bardia3000"]Also I use SDK version 16.0.0. Can this happen because of NFC2 pin which is at the same pin as P0.10?[/quote]
&lt;p&gt;Not unless it&amp;#39;s configured as an NFC pin and not a GPIO. To use these pins as GPIO&amp;#39;s you need to set the preprocessor definition&amp;nbsp;CONFIG_NFCT_PINS_AS_GPIOS.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You should always scope your communication lines whenever there&amp;#39;s a problem, it will help immensely in debugging the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 cannot stop adxl362's spi</title><link>https://devzone.nordicsemi.com/thread/227750?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 15:56:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c6283dc-4e5e-4eff-95e9-2ab29342e4ba</guid><dc:creator>bardia3000</dc:creator><description>&lt;p&gt;&lt;span&gt;Actually there are some other chips on the SPI bus, So I set the&amp;nbsp;spi_config.ss_pin as NRF_DRV_SPI_PIN_NOT_USED and control CS pin manually. Also I use SDK version 16.0.0. Can this happen because of NFC2 pin which is at the same pin as P0.10?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 cannot stop adxl362's spi</title><link>https://devzone.nordicsemi.com/thread/227741?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 15:22:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80d9bee1-5c59-4668-9a02-8e4d175ca0b3</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;You seem to be controlling the CS pin manually, the driver should handle that. What SDK version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 cannot stop adxl362's spi</title><link>https://devzone.nordicsemi.com/thread/227717?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 14:45:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6466607c-d128-4411-b36b-4b9b467a100f</guid><dc:creator>bardia3000</dc:creator><description>&lt;p&gt;Thanks a lot, I define SPI_ACC_SS_PIN as p0.10, It seems like it is always zero with a digital analyzer! Why is that and what can I do? (I set this pin as an output before)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 cannot stop adxl362's spi</title><link>https://devzone.nordicsemi.com/thread/227676?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 13:13:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:065b330f-08c0-4965-8295-4a4a1984691b</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Take a scope of the SPI lines with a digital analyzer and share it with us.&lt;br /&gt;&lt;br /&gt;Also, the first two bytes you receive are not valid for a single register read, so your return value should only be one byte long.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>