<?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>ADXL345 with nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58510/adxl345-with-nrf52840</link><description>i want to interface the adxl345 accelerometer with the nrf52840 board 
 i got an code from ADXL375_12C.zip 
 https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ADXL375_5F00_I2C.zip 
 line 51:ret_code = nrf_drv_twi_rx</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Mar 2020 10:46:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58510/adxl345-with-nrf52840" /><item><title>RE: ADXL345 with nrf52840</title><link>https://devzone.nordicsemi.com/thread/237390?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 10:46:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55618595-b73c-4647-9fd6-ac7fc2c32957</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;well, if you want to just take that example and use it without modification, then you are obviously going to have to use whatever version that example assumes!&lt;/p&gt;
&lt;p&gt;However, the ADXL - like any other I2C slave - neither knows nor cares what SDK you use.&lt;/p&gt;
&lt;p&gt;The I2C slave doesn&amp;#39;t even know what microcontroller you use - it just sees transactions on the I2C bus.&lt;/p&gt;
&lt;p&gt;So your job is to use the facilities of the SDK to generate those transactions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADXL345 with nrf52840</title><link>https://devzone.nordicsemi.com/thread/237284?ContentTypeID=1</link><pubDate>Sun, 01 Mar 2020 12:41:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55caba04-ec2d-4285-b0b9-1ec0ff847ef0</guid><dc:creator>saver</dc:creator><description>&lt;p&gt;I AM USING SDK 16&amp;nbsp;&lt;/p&gt;
&lt;p&gt;IF THAT IS THE CASE WHICH SDK I SHOULD USE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADXL345 with nrf52840</title><link>https://devzone.nordicsemi.com/thread/237275?ContentTypeID=1</link><pubDate>Sat, 29 Feb 2020 20:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0483ebc-75ca-4e4c-b30a-300a1f34f4e7</guid><dc:creator>awneil</dc:creator><description>[quote userid="86529" url="~/f/nordic-q-a/58510/adxl345-with-nrf52840"]too many arguments to function &amp;#39;nrf_drv_twi_rx&amp;#39; why it comes when i execute the program in twi_sensor program[/quote]
&lt;p&gt;For exactly the reason it says!&lt;/p&gt;
&lt;p&gt;What SDK version are you using?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What SDK version&amp;nbsp;was that code written for?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;A link to the discussion would help&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="86529" url="~/f/nordic-q-a/58510/adxl345-with-nrf52840"]how to change the code for adxl345[/quote]
&lt;p&gt;It has nothing to do with the ADXL&lt;/p&gt;
&lt;p&gt;It is a basic rule of &amp;#39;C&amp;#39; programming: always make sure that you supply the &lt;strong&gt;correct&lt;/strong&gt; number of arguments - no more; no fewer - in &lt;em&gt;&lt;strong&gt;any&lt;/strong&gt;&lt;/em&gt; function call&lt;/p&gt;
&lt;p&gt;EDIT&lt;/p&gt;
&lt;p&gt;Is this where you found the file&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40822/adxl345-and-nrf52832/159190#159190"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/40822/adxl345-and-nrf52832/159190#159190&lt;/a&gt;&amp;nbsp;?&lt;/p&gt;
&lt;p&gt;That was over a year ago - so very likely not for the latest SDK ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>