<?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>How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52279/how-to-get-accelerometer-value-of-thingy-91</link><description>I want to tranceive data to ADXL362 through SPI and refer to this program. 
 https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/spi 
 However, I can&amp;#39;t get data. 
 I only modified tx_buffer value. 
 
 Also, I added nrf9160_pca20035_v0_3_0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Nov 2019 14:18:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52279/how-to-get-accelerometer-value-of-thingy-91" /><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/219704?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2019 14:18:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f261fdc3-f02b-41c6-9ed8-6a0d200e6644</guid><dc:creator>Dheeraj</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I hope you are doing good..!!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes. She is trying to help me. But looks like this is pretty much a critical issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please suggest me, if you have some&amp;nbsp;solution as it completely blocked my work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I hope you might have remembered, as we are NOT able to flash the &lt;strong&gt;nRF52840 on thingy91 (PCA20035)&lt;/strong&gt; device using &amp;quot; &lt;strong&gt;mcumgr&lt;/strong&gt; &amp;quot; (&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;MCUBoot driver issue on Windows 10&lt;/strong&gt;&lt;/span&gt;),&lt;/p&gt;
&lt;p&gt;[&amp;nbsp; &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/53730/nrf-connect-v3-2-0-issue-for-nfr9160"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/53730/nrf-connect-v3-2-0-issue-for-nfr9160&lt;/a&gt;&amp;nbsp; ]&lt;/p&gt;
&lt;p&gt;I have bought this &lt;strong&gt;nRF9160 DK (10090)&lt;/strong&gt;, but unfortunately, it is NOT working as expected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am wondering&amp;nbsp;&lt;strong&gt;nRF9160 DK (10090)&amp;nbsp;&lt;/strong&gt;is NOT working with pre-compiled Images provided by Nordic as well.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/219701?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2019 14:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3782cdac-2db8-4291-ae78-166512458e92</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi, &lt;a href="https://devzone.nordicsemi.com/members/dheeraj-bansal"&gt;Dheeraj&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I looked at the ticket you have, where &lt;a href="https://devzone.nordicsemi.com/members/heidi"&gt;Heidi&lt;/a&gt; is helping you.&lt;/p&gt;
&lt;p&gt;She is waiting for a reply to her latest comment. Could you try to work with her to solve your problem?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/219653?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2019 12:27:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7080e0c-bb22-49ad-8617-595a5fc46921</guid><dc:creator>Dheeraj</dc:creator><description>&lt;p&gt;Hi Yusuke,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am facing the same rebooting issue as above on &lt;strong&gt;nRF9160 DK (PCA10090)&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Actually, I bought the new&amp;nbsp;&lt;strong&gt;nRF9160 DK (PCA10090)&amp;nbsp;&lt;/strong&gt;and trying to connect it, but unfortunately, its getting reboot automatically (Logs similar as above).&lt;/p&gt;
&lt;p&gt;I have tried to flash the latest Nordic&amp;#39;s pre-compiled Image from nRF9160 DK ==&amp;gt; Downloads [&amp;nbsp;&lt;strong&gt;nrf9160dk_asset_tracker_09-10-2019_c9c833b1.hex&lt;/strong&gt;&amp;nbsp;], but no luck.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have tried to compile manually with v1.1.0 branch code, no use.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you please help me with this issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Refer me, how you had overcome with this issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is a roadblock for me.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/212638?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 14:03:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31816efd-dd80-4c2f-89a0-778744213697</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/didrik-rokhaug"&gt;Didrik Rokhaug&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hi Didrik, if I&amp;#39;m honest, last week I was all over the SPI comunication trying different configurations to reduce the inaccuracies. I don&amp;#39;t know if the build I sent in .hex form was the same build as the results above as it was a build from the next day but most likely they were different builds.&lt;/p&gt;
&lt;p&gt;The build I am using at the moment is more stable than the last ones but it still spikes on my end with movement above 250mg while stationary. I find the initial boot up is generally fine but after one sleep cycle followed by another motion detected cycle, when the device next goes to sleep you can see spiking results that are a little too close to the threshold for my liking. The problem of demonstrating this is that the device loves to change it&amp;#39;s response with every flash. Sometimes it works amazing and then others it self reacts and you need to increase the thresholds.&lt;/p&gt;
&lt;p&gt;Last week 250mg was perfect, today I need 300mg to prevent false positives which requires a decent shove. Unfortunately, if I set INT1 to be only for Activity and Inactivity Interrupts, the callback on INT1&amp;#39;s pin will read two instances of the INT1 pin going low, it never reads a HIGH response on the edge detection, just LOW when it reads the pin.&lt;/p&gt;
&lt;p&gt;I might have to change how the whole thing works to run Linked mode and impliment a status reg reader that can tell what interrupt spawned it and set INT1 on the nRF91 to Rising HIGH detection only. Problem with that is that an interrupt callback will hang if a function is called inside it (even a small one, which I would need to read the register quickly) so I&amp;#39;ll have to figure out a way to implement this so that the ISRs actually get read in my main application as a simple pin HIGH/LOW was much simpler.&lt;br /&gt;&lt;br /&gt;EDIT: Realised I haven&amp;#39;t actually been flashing the ACTIVITY TIME register. Might be able to silence the spikes&amp;nbsp; now with that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/212311?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 13:47:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e6ab26e-2b90-4415-b85b-8a1f60bb49be</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I just tested your hex file provided to &lt;a href="https://devzone.nordicsemi.com/members/yusuke"&gt;yusuke&lt;/a&gt; and did not see the same inaccuracy on the Z-axis.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-98abd2ec8764419aadd7a371ed72a323/log.txt"&gt;devzone.nordicsemi.com/.../log.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The PCB was not in its enclosure, so it is not lying perfectly flat and was moved a bit (especially in the beginning).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/yusuke"&gt;yusuke&lt;/a&gt;, do you see similar behavior?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/212223?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 09:24:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10cb3a3b-8bcd-4d87-a859-e1c1f8a4be48</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;I agree with &lt;a href="https://devzone.nordicsemi.com/members/mjd093"&gt;MJD093&lt;/a&gt; in that it looked like a missing erase command. To rule out any issues with your code, can you try to program your code using the programmer application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/212186?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 07:21:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:578fcc3c-6ef6-4fad-881f-2e79dcb5c2a0</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;Not sure to be honest, it should have been simple for the code sample I posted to work. All I needed was the code, a prj.conf and &amp;nbsp;a generic CMakeList.txt.&lt;/p&gt;
&lt;p&gt;It really did look like your Thingy:91 was acting like it had been reflashed without an erase command.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/212151?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 00:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bff31c7a-5504-4908-b150-4303a5a17977</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Great! It works out!&lt;/p&gt;
&lt;p&gt;What&amp;#39;s wrong with my code.....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/212009?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 09:41:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96a3c464-f517-4709-964a-d88710e68269</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;That&amp;#39;s weird, have you had success flashing applications to your Thingy:91 in the past?&lt;/p&gt;
&lt;p&gt;Try flashing this to your Thingy:91 with the nRF Connect Programmer app&lt;br /&gt;It should configure your ADXL362 and print XYZ data to the terminal.&lt;/p&gt;
&lt;p&gt;The main functionality of this sample is 30 second online (green LED flashing) when motion is detected.&lt;/p&gt;
&lt;p&gt;It will start up in online mode and sleep after 30seconds of no activity. Shake it to wake it up. It&amp;#39;s not very sensitive atm due to this issues I&amp;#39;m having with the Z axis so shake it reasonably or flip the orientation. &lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1325.merged.hex"&gt;devzone.nordicsemi.com/.../1325.merged.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I still don&amp;#39;t know why the DevZone adds that number at the start of the file, do rename it to just merged.hex to avoid any computer issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/211940?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 04:26:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e80e09dc-1570-45ae-abda-a5b28bf038e5</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Thank you, guys, to help me:)&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t fix the issue with no luck.&lt;/p&gt;
&lt;p&gt;- install nrfjprog tool&lt;br /&gt;- run nrfjprog -e&amp;nbsp;&lt;br /&gt;- build and run on SES&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/211834?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 13:04:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40ff1309-ed9b-40cc-b52d-487574a867ca</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;It seems to be just the Z-axis, all axis fluxuate somewhat but the Z axis while flat is definitely the worst of the fluxuations.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;This above was when it was configured in Wake Mode, I have placed it into Measurement mode without Wake Mode set and it seems more stable in the results from XYZ but it is having a hard time understanding motion from no motion.&lt;/p&gt;
&lt;p&gt;It will pass inactive threshold checks, drive the interrupt low but then it will detect &amp;quot;movement&amp;quot; over the activity threshold and bring the interrupt pin back to high. The Activity threshold is set higher than the inactivity threshold so that alone is very strange.&lt;/p&gt;
&lt;p&gt;Here are some results from measurement mode with the device on it&amp;#39;s side so X is the axis experiencing -1g. Z will still bounce around a bit but it&amp;#39;s more reasonable than registering drops of 400mg.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;X_INT   : -991  | Y_INT : 0003  | Z_INT : -063   (mg)                           
X_INT   : -991  | Y_INT : 0127  | Z_INT : -123   (mg)                           
X_INT   : -903  | Y_INT : 0000  | Z_INT : -054   (mg)                           
X_INT   : -911  | Y_INT : 0062  | Z_INT : -095   (mg)                           
X_INT   : -928  | Y_INT : 0016  | Z_INT : -095   (mg)                           
X_INT   : -984  | Y_INT : 0024  | Z_INT : -071   (mg)                           
X_INT   : -1020  | Y_INT : -031  | Z_INT : 0072   (mg)                          
X_INT   : -899  | Y_INT : 0032  | Z_INT : -023   (mg)                           
X_INT   : -927  | Y_INT : 0047  | Z_INT : -123   (mg)                           
X_INT   : -960  | Y_INT : -031  | Z_INT : 0032   (mg)                           
X_INT   : -1015  | Y_INT : -086  | Z_INT : 0124   (mg)                          
X_INT   : -960  | Y_INT : 0040  | Z_INT : -087   (mg)                           
X_INT   : -887  | Y_INT : -031  | Z_INT : -008   (mg)                           
X_INT   : -896  | Y_INT : 0016  | Z_INT : -047   (mg)                           
X_INT   : -911  | Y_INT : -047  | Z_INT : -094   (mg)                           
X_INT   : -948  | Y_INT : 0048  | Z_INT : 0096   (mg)                           
X_INT   : -927  | Y_INT : -031  | Z_INT : -046   (mg)                           
X_INT   : -960  | Y_INT : 0000  | Z_INT : 0032   (mg)                           
X_INT   : -944  | Y_INT : 0048  | Z_INT : -043   (mg)                           
X_INT   : -960  | Y_INT : 0072  | Z_INT : 0004   (mg)                           
X_INT   : -992  | Y_INT : 0048  | Z_INT : -087   (mg)                           
X_INT   : -895  | Y_INT : 0031  | Z_INT : -127   (mg)                           
X_INT   : -960  | Y_INT : 0024  | Z_INT : 0000   (mg)                           
X_INT   : -895  | Y_INT : 0008  | Z_INT : -092   (mg)                           
X_INT   : -903  | Y_INT : 0032  | Z_INT : 0000   (mg)                           
X_INT   : -960  | Y_INT : 0032  | Z_INT : 0024   (mg)                           
X_INT   : -959  | Y_INT : 0127  | Z_INT : -079   (mg)                           
X_INT   : -928  | Y_INT : 0036  | Z_INT : -087   (mg)                           
X_INT   : -839  | Y_INT : -055  | Z_INT : 0201   (mg)                           
X_INT   : -943  | Y_INT : 0081  | Z_INT : -048   (mg)                           
X_INT   : -944  | Y_INT : 0036  | Z_INT : 0048   (mg)                           
X_INT   : -1000  | Y_INT : 0032  | Z_INT : -095   (mg)                          
X_INT   : -983  | Y_INT : -068  | Z_INT : 0200   (mg)                           
X_INT   : -984  | Y_INT : 0064  | Z_INT : -023   (mg)                           
X_INT   : -960  | Y_INT : -031  | Z_INT : 0000   (mg)                           
X_INT   : -863  | Y_INT : 0015  | Z_INT : -015   (mg)                           
X_INT   : -896  | Y_INT : 0064  | Z_INT : 0048   (mg)                           
X_INT   : -975  | Y_INT : 0032  | Z_INT : -076   (mg)                           
X_INT   : -991  | Y_INT : -064  | Z_INT : 0144   (mg)                           
X_INT   : -960  | Y_INT : -011  | Z_INT : 0016   (mg)                           
X_INT   : -968  | Y_INT : 0032  | Z_INT : 0032   (mg)                           
X_INT   : -864  | Y_INT : -063  | Z_INT : -031   (mg)                           
X_INT   : -911  | Y_INT : -015  | Z_INT : 0000   (mg)                           
X_INT   : -944  | Y_INT : 0032  | Z_INT : 0000   (mg)                           
X_INT   : -960  | Y_INT : -031  | Z_INT : 0064   (mg)                           
X_INT   : -879  | Y_INT : -048  | Z_INT : 0024   (mg)                           
X_INT   : -895  | Y_INT : 0048  | Z_INT : -036   (mg)                           
X_INT   : -880  | Y_INT : -039  | Z_INT : -031   (mg)                           
X_INT   : -924  | Y_INT : 0016  | Z_INT : -031   (mg)                           
X_INT   : -896  | Y_INT : -031  | Z_INT : 0000   (mg)                           
X_INT   : -879  | Y_INT : -047  | Z_INT : 0031   (mg)                           
X_INT   : -992  | Y_INT : 0064  | Z_INT : -063   (mg)  &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Z = 1g:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;X_INT   : 0097  | Y_INT : 0000  | Z_INT : 0904   (mg)                           
X_INT   : 0039  | Y_INT : 0124  | Z_INT : 0832   (mg)                           
X_INT   : 0097  | Y_INT : -016  | Z_INT : 0904   (mg)                           
X_INT   : 0104  | Y_INT : -007  | Z_INT : 0864   (mg)                           
X_INT   : 0015  | Y_INT : 0152  | Z_INT : 0792   (mg)                           
X_INT   : 0112  | Y_INT : 0032  | Z_INT : 0903   (mg)                           
X_INT   : -079  | Y_INT : -048  | Z_INT : 1220   (mg)                           
X_INT   : 0127  | Y_INT : -007  | Z_INT : 0884   (mg)                           
X_INT   : 0073  | Y_INT : 0000  | Z_INT : 0884   (mg)                           
X_INT   : -047  | Y_INT : 0032  | Z_INT : 0975   (mg)                           
X_INT   : -056  | Y_INT : 0000  | Z_INT : 1001   (mg)                           
X_INT   : 0049  | Y_INT : 0024  | Z_INT : 0928   (mg)                           
X_INT   : -031  | Y_INT : 0056  | Z_INT : 0969   (mg)                           
X_INT   : -007  | Y_INT : -032  | Z_INT : 1112   (mg)                           
X_INT   : 0065  | Y_INT : -064  | Z_INT : 1074   (mg)                           
X_INT   : -063  | Y_INT : 0000  | Z_INT : 1111   (mg)                           
X_INT   : 0064  | Y_INT : 0015  | Z_INT : 0836   (mg)                           
X_INT   : -095  | Y_INT : -048  | Z_INT : 0984   (mg)                           
X_INT   : 0000  | Y_INT : -023  | Z_INT : 1009   (mg)                           
X_INT   : -084  | Y_INT : 0031  | Z_INT : 1000   (mg)                           
X_INT   : -048  | Y_INT : 0016  | Z_INT : 0956   (mg)                           
X_INT   : -062  | Y_INT : -048  | Z_INT : 1010   (mg)                           
X_INT   : 0024  | Y_INT : -007  | Z_INT : 1057   (mg)                           
X_INT   : -047  | Y_INT : 0159  | Z_INT : 0848   (mg)                           
X_INT   : -039  | Y_INT : 0016  | Z_INT : 0969   (mg)                           
X_INT   : -003  | Y_INT : 0080  | Z_INT : 0972   (mg)                           
X_INT   : 0032  | Y_INT : 0000  | Z_INT : 1093   (mg)                           
X_INT   : -031  | Y_INT : 0100  | Z_INT : 0880   (mg)                           
X_INT   : -080  | Y_INT : 0000  | Z_INT : 1068   (mg)        &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Z = -1g&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;X_INT   : -064  | Y_INT : 0080  | Z_INT : -927   (mg)                           
X_INT   : -064  | Y_INT : -087  | Z_INT : -767   (mg)                           
X_INT   : 0113  | Y_INT : -048  | Z_INT : -1007   (mg)                          
X_INT   : -064  | Y_INT : -047  | Z_INT : -831   (mg)                           
X_INT   : 0032  | Y_INT : 0036  | Z_INT : -958   (mg)                           
X_INT   : -016  | Y_INT : -023  | Z_INT : -863   (mg)                           
X_INT   : -064  | Y_INT : 0128  | Z_INT : -1055   (mg)                          
X_INT   : -023  | Y_INT : 0132  | Z_INT : -1118   (mg)                          
X_INT   : 0000  | Y_INT : 0017  | Z_INT : -984   (mg)                           
X_INT   : -031  | Y_INT : 0096  | Z_INT : -1054   (mg)                          
X_INT   : -065  | Y_INT : -063  | Z_INT : -687   (mg)                           
X_INT   : 0112  | Y_INT : -063  | Z_INT : -928   (mg)                           
X_INT   : -023  | Y_INT : 0088  | Z_INT : -1023   (mg)                          
X_INT   : -064  | Y_INT : 0032  | Z_INT : -943   (mg)                           
X_INT   : -030  | Y_INT : 0160  | Z_INT : -1031   (mg)                          
X_INT   : 0096  | Y_INT : -094  | Z_INT : -928   (mg)                           
X_INT   : 0053  | Y_INT : 0015  | Z_INT : -1039   (mg)                          
X_INT   : -028  | Y_INT : -064  | Z_INT : -671   (mg)                           
X_INT   : 0055  | Y_INT : 0064  | Z_INT : -1087   (mg)                          
X_INT   : -015  | Y_INT : 0128  | Z_INT : -1055   (mg)                          
X_INT   : -001  | Y_INT : 0048  | Z_INT : -1096   (mg)                          
X_INT   : 0048  | Y_INT : -031  | Z_INT : -888   (mg)                           
X_INT   : -003  | Y_INT : 0001  | Z_INT : -1008   (mg)                          
X_INT   : 0000  | Y_INT : -110  | Z_INT : -784   (mg)                           
X_INT   : -039  | Y_INT : -063  | Z_INT : -880   (mg)                           
X_INT   : -048  | Y_INT : 0176  | Z_INT : -895   (mg)                           
X_INT   : -063  | Y_INT : -062  | Z_INT : -800   (mg)                           
X_INT   : -032  | Y_INT : 0064  | Z_INT : -927   (mg)          &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Configuration currently sent to the device to make the above results&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define ACC_POWER_CTRL_STANDBY        0x00 /* Standby */
#define ACC_POWER_CTRL_WAKE		        0x12 /* Measure, Low Noise Mode */
#define ACC_FILTER_CTRL               0x03 /* 2g, 1/2 BW, 100Hz */
#define ACC_SOFT_RESET                0x52 /* Reset Key */
#define ACC_ACTIVITY_TIME             0x64 /* 100 Samples */
#define ACC_ACTIVITY_THRESHOLD_MSB    0x02 /* See Act Thresh LSB */
#define ACC_ACTIVITY_THRESHOLD_LSB    0xBC /* 700mg @ 2g */
#define ACC_INACTIVITY_THRESHOLD_MSB  0x01 /* See Inact Thesh LSB */
#define ACC_INACTIVITY_THRESHOLD_LSB  0x90 /* 400mg @ 2g */
#define ACC_INACTIVITY_TIME_MSB       0x46 /* See Inact Time LSB */
#define ACC_INACTIVITY_TIME_LSB       0x50 /* 18000 Samples */
#define ACC_ACT_INACT_CTRL            0x3F /* Loop Mode, Inact Ref &amp;amp; EN, Act Ref &amp;amp; EN */
#define ACC_INT1_MAP                  0x40 /* Active High, Map Awake */
#define ACC_INT2_MAP                  0x00 /* Active High, Map Nothing */&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/211786?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 11:38:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0382126-3f5e-4714-b562-ee5517162a32</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi. I was unable to find any internal information about this.&lt;/p&gt;
&lt;p&gt;Is it always the Z-axis, or does it depend on the orientation of the device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/211708?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 08:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df48355d-8f78-43d1-b65e-e54d40594721</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;That would be my thought as well, are you sure you have erased the SiP before flashing that sample code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/211704?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 08:07:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96755ef4-482e-4927-abd3-1a48f1ea13a8</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi, please try to run nrfjprog -e before programming the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/211657?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 03:51:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85131b80-86d0-45d3-b3d2-9bb54f84a200</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;sorry for late reply.&lt;/p&gt;
&lt;p&gt;Sadly, it doesn&amp;#39;t work. It always reset itself.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;SRAM region             Domain          Permissions
00 0x00000 0x02000      Secure          rwxl
01 0x02000 0x04000      Secure          rwxl
02 0x04000 0x06000      Secure          rwxl
03 0x06000 0x08000      Secure          rwxl
04 0x08000 0x0a000      Secure          rwxl
05 0x0a000 0x0c000      Secure          rwxl
06 0x0c000 0x0e000      Secure          rwxl
07 0x0e000 0x10000      Secure          rwxl
08 0x10000 0x12000      Non-Secure      rwxl
09 0x12000 0x14000      Non-Secure      rwxl
10 0x14000 0x16000      Non-Secure      rwxl
11 0x16000 0x18000      Non-Secure      rwxl
12 0x18000 0x1a000      Non-Secure      rwxl
13 0x1a000 0x1c000      Non-Secure      rwxl
14 0x1c000 0x1e000      Non-Secure      rwxl
15 0x1e000 0x20000      Non-Secure      rwxl
16 0x20000 0x22000      Non-Secure      rwxl
17 0x22000 0x24000      Non-Secure      rwxl
18 0x24000 0x26000      Non-Secure      rwxl
19 0x26000 0x28000      Non-Secure      rwxl
20 0x28000 0x2a000      Non-Secure      rwxl
21 0x2a000 0x2c000      Non-Secure      rwxl
22 0x2c000 0x2e000      Non-Secure      rwxl
23 0x2e000 0x30000      Non-Secure      rwxl
24 0x30000 0x32000      Non-Secure      rwxl
25 0x32000 0x34000      Non-Secure      rwxl
26 0x34000 0x36000      Non-Secure      rwxl
27 0x36000 0x38000      Non-Secure      rwxl
28 0x38000 0x3a000      Non-Secure      rwxl
29 0x3a000 0x3c000      Non-Secure      rwxl
30 0x3c000 0x3e000      Non-Secure      rwxl
31 0x3e000 0x40000      Non-Secure      rwxl

Peripheral              Domain          Status
00 NRF_P0               Non-Secure      OK
01 NRF_CLOCK            Non-Secure      OK
02 NRF_RTC1             Non-Secure      OK
03 NRF_NVMC             Non-Secure      OK
04 NRF_UARTE1           Non-Secure      OK
05 NRF_UARTE2           Secure          SKIP
06 NRF_TWIM2            Non-Secure      OK
07 NRF_SPIM3            Non-Secure      OK
08 NRF_TIMER0           Non-Secure      OK
09 NRF_TIMER1           Non-Secure      OK
10 NRF_TIMER2           Non-Secure      OK
11 NRF_SAADC            Non-Secure      OK
12 NRF_PWM0             Non-Secure      OK
13 NRF_PWM1             Non-Secure      OK
14 NRF_PWM2             Non-Secure      OK
15 NRF_PWM3             Non-Secure      OK
16 NRF_IPC              Non-Secure      OK
17 NRF_VMC              Non-Secure      OK
18 NRF_FPU              Non-Secure      OK
19 NRF_EGU1             Non-Secure      OK
20 NRF_EGU2             Non-Secure      OK
21 NRF_GPIOTE1          Non-Secure      OK

SPM: NS image at 0xc000
SPM: NS MSP at 0x20003f60
SPM: NS reset vector at 0xe22d
SPM: prepare to jump to Non-Secure image.
***** Booting Zephyr OS v1.14.99-ncs2 *****
Flash region            Domain          Permissions
00 0x00000 0x08000      Secure          rwxl
01 0x08000 0x10000      Non-Secure      rwxl
02 0x10000 0x18000      Non-Secure      rwxl
03 0x18000 0x20000      Non-Secure      rwxl
04 0x20000 0x28000      Non-Secure      rwxl
05 0x28000 0x30000      Non-Secure      rwxl
06 0x30000 0x38000      Non-Secure      rwxl
07 0x38000 0x40000      Non-Secure      rwxl
08 0x40000 0x48000      Non-Secure      rwxl
09 0x48000 0x50000      Non-Secure      rwxl
10 0x50000 0x58000      Non-Secure      rwxl
11 0x58000 0x60000      Non-Secure      rwxl
12 0x60000 0x68000      Non-Secure      rwxl
13 0x68000 0x70000      Non-Secure      rwxl
14 0x70000 0x78000      Non-Secure      rwxl
15 0x78000 0x80000      Non-Secure      rwxl
16 0x80000 0x88000      Non-Secure      rwxl
17 0x88000 0x90000      Non-Secure      rwxl
18 0x90000 0x98000      Non-Secure      rwxl
19 0x98000 0xa0000      Non-Secure      rwxl
20 0xa0000 0xa8000      Non-Secure      rwxl
21 0xa8000 0xb0000      Non-Secure      rwxl
22 0xb0000 0xb8000      Non-Secure      rwxl
23 0xb8000 0xc0000      Non-Secure      rwxl
24 0xc0000 0xc8000      Non-Secure      rwxl
25 0xc8000 0xd0000      Non-Secure      rwxl
26 0xd0000 0xd8000      Non-Secure      rwxl
27 0xd8000 0xe0000      Non-Secure      rwxl
28 0xe0000 0xe8000      Non-Secure      rwxl
29 0xe8000 0xf0000      Non-Secure      rwxl
30 0xf0000 0xf8000      Non-Secure      rwxl
31 0xf8000 0x100000     Non-Secure      rwxl
Non-secure callable region 0 placed in flash region 0 with size 32.


SRAM region             Domain          Permissions
00 0x00000 0x02000      Secure          rwxl
01 0x02000 0x04000      Secure          rwxl
02 0x04000 0x06000      Secure          rwxl
03 0x06000 0x08000      Secure          rwxl
04 0x08000 0x0a000      Secure          rwxl
05 0x0a000 0x0c000      Secure          rwxl
06 0x0c000 0x0e000      Secure          rwxl
07 0x0e000 0x10000      Secure          rwxl
08 0x10000 0x12000      Non-Secure      rwxl
09 0x12000 0x14000      Non-Secure      rwxl
10 0x14000 0x16000      Non-Secure      rwxl
11 0x16000 0x18000      Non-Secure      rwxl
12 0x18000 0x1a000      Non-Secure      rwxl
13 0x1a000 0x1c000      Non-Secure      rwxl&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/211527?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 12:00:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eeb25e27-26c9-4d6d-976e-62abeea430b1</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/didrik-rokhaug"&gt;Didrik Rokhaug&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Not sure about Yusuke, but I have gotten the AXDL362 fully configured. I have one question though. I have placed the accelerometer into a ultra low noise state to try and control some of the values I&amp;#39;m getting in the Z direction when the device is upright and stationary (where Z should be -1g). Is there a reason the Z direction is unstable, X and Y seem reasonably stable (they still flick about by 150mg&amp;plusmn; when the device is on it&amp;#39;s side) as the Z values flick up and down by 400mg&amp;plusmn; centered around 850mg.&lt;/p&gt;
&lt;p&gt;I can compensate for this by making my interrupt thresholds less sensitive but seems odd to be getting large changes in XYZ data while not moving. I would like to make my thresholds a bit more sensitive though if the Z direction can be filtered some more.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;X_HEX   : 0x040 | Y_HEX : 0x007 | Z_HEX : 0x274                                 
X_INT   : -64     | Y_INT : -7     | Z_INT : -628   (mg)                        
X_HEX   : 0x03f | Y_HEX : 0x010 | Z_HEX : 0x2f0                                 
X_INT   : -63     | Y_INT : 16     | Z_INT : -752   (mg)                        
X_HEX   : 0x02f | Y_HEX : 0x050 | Z_HEX : 0x27f                                 
X_INT   : -47     | Y_INT : -80     | Z_INT : -639   (mg)                       
X_HEX   : 0x020 | Y_HEX : 0x057 | Z_HEX : 0x2a8                                 
X_INT   : -32     | Y_INT : -87     | Z_INT : -680   (mg)                       
X_HEX   : 0x040 | Y_HEX : 0x01f | Z_HEX : 0x2b0                                 
X_INT   : -64     | Y_INT : -31     | Z_INT : -688   (mg)                       
X_HEX   : 0x001 | Y_HEX : 0x060 | Z_HEX : 0x2ff                                 
X_INT   : 1     | Y_INT : 96     | Z_INT : -767   (mg)                          
X_HEX   : 0x047 | Y_HEX : 0x000 | Z_HEX : 0x3b0                                 
X_INT   : -71     | Y_INT : 0     | Z_INT : -944   (mg)                         
X_HEX   : 0x03f | Y_HEX : 0x041 | Z_HEX : 0x2b7                                 
X_INT   : -63     | Y_INT : -65     | Z_INT : -695   (mg)                       
X_HEX   : 0x000 | Y_HEX : 0x0fc | Z_HEX : 0x33e                                 
X_INT   : 0     | Y_INT : 252     | Z_INT : -830   (mg)                         
X_HEX   : 0x043 | Y_HEX : 0x044 | Z_HEX : 0x2f8                                 
X_INT   : -67     | Y_INT : 68     | Z_INT : -760   (mg)                        
X_HEX   : 0x017 | Y_HEX : 0x01f | Z_HEX : 0x3bf                                 
X_INT   : 23     | Y_INT : -31     | Z_INT : -959   (mg)                        
X_HEX   : 0x030 | Y_HEX : 0x040 | Z_HEX : 0x397                                 
X_INT   : 48     | Y_INT : -64     | Z_INT : -919   (mg)                        
X_HEX   : 0x031 | Y_HEX : 0x043 | Z_HEX : 0x3d7                                 
X_INT   : 49     | Y_INT : -67     | Z_INT : -983   (mg)                        
X_HEX   : 0x070 | Y_HEX : 0x00f | Z_HEX : 0x3e0                                 
X_INT   : 112     | Y_INT : -15     | Z_INT : -992   (mg)                       
X_HEX   : 0x063 | Y_HEX : 0x03f | Z_HEX : 0x35a                                 
X_INT   : 99     | Y_INT : -63     | Z_INT : -858   (mg)                        
X_HEX   : 0x02c | Y_HEX : 0x050 | Z_HEX : 0x2df                                 
X_INT   : -44     | Y_INT : 80     | Z_INT : -735   (mg)                        
X_HEX   : 0x030 | Y_HEX : 0x020 | Z_HEX : 0x2cf                                 
X_INT   : 48     | Y_INT : 32     | Z_INT : -719   (mg)                         
X_HEX   : 0x043 | Y_HEX : 0x067 | Z_HEX : 0x3b7                                 
X_INT   : 67     | Y_INT : -103     | Z_INT : -951   (mg)                       
X_HEX   : 0x05a | Y_HEX : 0x024 | Z_HEX : 0x33f                                 
X_INT   : -90     | Y_INT : 36     | Z_INT : -831   (mg)                        
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/211501?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 10:53:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:833cdd87-a870-42bc-b18d-2bdf7b3aff59</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Were you able to find a solution to your problems, or do you still have any questions?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/210662?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2019 09:45:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd15b2e3-a029-48f8-af4b-4b025fcf1aba</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;Ah found my mistake, needed to initialise the gpio CS for the ADXL362. I can now read the ADXL part ID.&lt;/p&gt;
&lt;p&gt;Yusuke,&lt;/p&gt;
&lt;p&gt;Try this for reading a register from the ADXL362 on the PCA20035 device&lt;/p&gt;
&lt;p&gt;main.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*
* Copyright (c) 2012-2014 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;misc/printk.h&amp;gt;
#include &amp;lt;spi.h&amp;gt;
#include &amp;lt;gpio.h&amp;gt;

#define cs_controller DT_NORDIC_NRF_SPI_SPI_3_CS_GPIOS_CONTROLLER_0
#define cd_pin  DT_NORDIC_NRF_SPI_0_CS_GPIOS_PIN_0

static const struct spi_config spi_cfg = {
	.operation = SPI_WORD_SET(8) | SPI_TRANSFER_MSB,
	.frequency = 8000000,
	.slave = 0,
};

struct device * spi_dev;
struct device * cs_gpio;

static void spi_init(void)
{
	const char* const spiName = &amp;quot;SPI_3&amp;quot;;
	spi_dev = device_get_binding(spiName);

	if (spi_dev == NULL) {
		printk(&amp;quot;Could not get %s device\n&amp;quot;, spiName);
		return;
	}
}

void spi_test_send(void)
{
	int err;
	static u8_t tx_buffer[1];
	static u8_t rx_buffer[1];

	const struct spi_buf tx_buf = {
		.buf = tx_buffer,
		.len = sizeof(tx_buffer)
	};
	const struct spi_buf_set tx = {
		.buffers = &amp;amp;tx_buf,
		.count = 1
	};

	struct spi_buf rx_buf = {
		.buf = rx_buffer,
		.len = sizeof(rx_buffer),
	};
	const struct spi_buf_set rx = {
		.buffers = &amp;amp;rx_buf,
		.count = 1
	};

	err = spi_transceive(spi_dev, &amp;amp;spi_cfg, &amp;amp;tx, &amp;amp;rx);
	if (err) {
		printk(&amp;quot;SPI error: %d\n&amp;quot;, err);
	} else {
		/* Connect MISO to MOSI for loopback */
		printk(&amp;quot;TX sent: %x\n&amp;quot;, tx_buffer[0]);
		printk(&amp;quot;RX recv: %x\n&amp;quot;, rx_buffer[0]);
		tx_buffer[0]++;
	}
}

void spi_read_reg(void)
{
  u8_t cmd =      0x0B;
  u8_t reg_addr = 0x02;
  u8_t value = 0x00;
  void *data = &amp;amp;value;
  int length = 1;
	u8_t access[2] = { cmd, reg_addr };

  gpio_pin_write(cs_gpio, cd_pin, 0);

	const struct spi_buf buf[2] = {
		{
			.buf = access,
			.len = 2
		},
		{
			.buf = data,
			.len = length
		}
	};
	struct spi_buf_set tx = {
		.buffers = buf,
	};


	const struct spi_buf_set rx = {
		.buffers = buf,
		.count = 2
	};

	tx.count = 1;

	int spi_result = spi_transceive(spi_dev, &amp;amp;spi_cfg, &amp;amp;tx, &amp;amp;rx);

  printk(&amp;quot;SPI result: %d\n&amp;quot;,spi_result);
  printk(&amp;quot;Value: 0x%02X\n&amp;quot;, value);

  gpio_pin_write(cs_gpio, cd_pin, 1);

}

void cs_setup(void)
{

  cs_gpio = device_get_binding(cs_controller);

  if (cs_gpio == NULL) {
    printk(&amp;quot;Could not get gpio device\n&amp;quot;);
    return;
  }

  /* Set cs pin as output */
  gpio_pin_configure(cs_gpio, cd_pin, GPIO_DIR_OUT);

  gpio_pin_write(cs_gpio, cd_pin, 1);

}

void main(void)
{
	printk(&amp;quot;SPIM Example\n&amp;quot;);
  cs_setup();
	spi_init();

	while (1) {
		//spi_test_send();
    spi_read_reg();
		k_sleep(1000);
	}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SERIAL=y
CONFIG_TRUSTED_EXECUTION_NONSECURE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_0_NRF_UARTE=y

# LTE link control
CONFIG_LTE_LINK_CONTROL=n
CONFIG_LTE_AUTO_INIT_AND_CONNECT=n

# BSD library
CONFIG_BSD_LIBRARY=y
CONFIG_BSD_LIBRARY_TRACE_ENABLED=n

# network
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NETWORKING=y
CONFIG_NET_BUF_USER_DATA_SIZE=1
CONFIG_NET_SOCKETS_OFFLOAD=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y
CONFIG_NET_RAW_MODE=y
CONFIG_HEAP_MEM_POOL_SIZE=1024

# SPI
CONFIG_SPI=y
CONFIG_SPI_3=y
CONFIG_SPI_3_NRF_SPIM=y
CONFIG_SPI_3=y
CONFIG_SPI_NRFX=y
CONFIG_MAIN_STACK_SIZE=4096

#CONFIG_SENSOR=y
#CONFIG_ADXL362=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You should get:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;SPM: NS image at 0xc000                                                         
SPM: NS MSP at 0x20023f98                                                       
SPM: NS reset vector at 0xe7b1                                                  
SPM: prepare to jump to Non-Secure image.                                       
***** Booting Zephyr OS v1.14.99-ncs2 *****                                     
SPIM Example                                                                    
SPI result: 0                                                                   
Value: 0xf2    &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/210627?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2019 08:16:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:beba37e8-cd58-4c57-8ec2-3e45a3b9a9f3</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;To be honest, I would like to know this too. I have no experience with SPI and spi_transceive() didn&amp;#39;t seem to fail (returned 0) but I haven&amp;#39;t a clue how to read the response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/210586?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2019 06:08:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dab6a2a-c86d-4d2d-a02c-afe92a89964c</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;May I ask one more related question?&lt;/p&gt;
&lt;p&gt;I want to configure motion detection function of&amp;nbsp;&lt;span&gt;ADXL362 and let it output H level when it detects movement. This is a simple function.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How can I achieve this?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To do so, you need to write value in a certain register through SPI.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, there is no writing and even reading functions in sensor.h.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I added the above&amp;nbsp;spi_test_send function to&amp;nbsp;&amp;nbsp;/path/to/ncs/zephyr/samples/sensor/adxl362 program but it returns -35 error code. Any help?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/210568?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2019 01:41:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e23f1bd3-7383-47a4-966b-7d76d5142e68</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Thank you guys!&lt;/p&gt;
&lt;p&gt;It works!&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;prj.conf&amp;gt;

CONFIG_STDOUT_CONSOLE=y
CONFIG_SPI=y
CONFIG_SENSOR=y
CONFIG_ADXL362=y
CONFIG_ADXL362_TRIGGER_GLOBAL_THREAD=y
CONFIG_ADXL362_INTERRUPT_MODE=1
CONFIG_ADXL362_ABS_REF_MODE=1

###########ADD BELOW###########################
# CONFIG_SPI=y
CONFIG_SPI_3=y
CONFIG_SPI_3_NRF_SPIM=y
CONFIG_SPI_3=y 
CONFIG_SPI_NRFX=y
CONFIG_MAIN_STACK_SIZE=4096&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/210498?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 15:50:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97583fed-7f87-46d2-be1e-73859d25fd19</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;I am trying to do the same thing, Zephyr do have a sensor example for the ADXL362.&lt;/p&gt;
&lt;p&gt;/path/to/ncs/zephyr/samples/sensor/adxl362&lt;/p&gt;
&lt;p&gt;As Didrik says, this example uses the sensor.h API library. Don&amp;#39;t ask me how to get it to work though, it straight up refused to get the device for 2 hours then randomly started working and I didn&amp;#39;t change the example code apart from enabling SPI in the prj.conf &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f605.svg" title="Sweat smile"&gt;&amp;#x1f605;&lt;/span&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get accelerometer value of Thingy:91?</title><link>https://devzone.nordicsemi.com/thread/210476?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 14:33:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e586b1b8-5e7d-4197-9163-9ea3a697701f</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;There is a driver for the ADXL362 in Zephyr that implements Zephyr sensor API. The easiest approach is to use that.&lt;/p&gt;
&lt;p&gt;The Thingy:91 source code is present in the master branch, where you can see an example of how to use that driver, or you can use the layer the Thingy firmware has built on top of the driver.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>