<?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>when i was interfacing with adxl375 with nrf52840 error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58529/when-i-was-interfacing-with-adxl375-with-nrf52840-error</link><description>https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ADXL375_5F00_I2C.zip 
 i was using the code from above link 
 my sdk is 16 
 when i run the code ,i get an error like 
 Output/twi_sensor_pca10056 Release/Obj</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Mar 2020 14:46:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58529/when-i-was-interfacing-with-adxl375-with-nrf52840-error" /><item><title>RE: when i was interfacing with adxl375 with nrf52840 error</title><link>https://devzone.nordicsemi.com/thread/240909?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 14:46:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5787ac0-7b9e-43e8-8436-a1546d950625</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The nrf_drv_twi_init function has been changed to include a fourth &amp;#39;context&amp;#39; variable in later version, but you can simply provide NULL or 0 like this:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nrf_drv_twi_init(&amp;amp;m_twi_master, &amp;amp;config, NULL, NULL);&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The nrf_drv_twi_rx function is also changed, but here only the last &amp;#39;no_stop&amp;#39; argument was removed, so you can fix his simply by removing the last &amp;#39;false&amp;#39; in each all to nrf_drv_twi_rx:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nrf_drv_twi_rx(p_twi_master,slave_addr, pdata, bytes);&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;And then it seems you have two main functions in your project. You can only have one main function, so you need to decide which one to keep and which one to remove (simply renaming the one you don&amp;#39;t need should make the project build).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when i was interfacing with adxl375 with nrf52840 error</title><link>https://devzone.nordicsemi.com/thread/240570?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 08:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e97fa25-1b65-426f-b88e-790565acb6ad</guid><dc:creator>saver</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nordic-semiconductor.rar"&gt;devzone.nordicsemi.com/.../nordic-semiconductor.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;sorry for the delay,&lt;/p&gt;
&lt;p&gt;inside the zip folder&amp;nbsp;&lt;/p&gt;
&lt;p&gt;example --&amp;gt; my_name --&amp;gt; twi_sensor_modified&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when i was interfacing with adxl375 with nrf52840 error</title><link>https://devzone.nordicsemi.com/thread/238767?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 10:24:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df4999a5-49a7-4243-8e3d-209faa26e6dd</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you able to zip the entire SDK folder, including your example, so that I can check how you have put it all together?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when i was interfacing with adxl375 with nrf52840 error</title><link>https://devzone.nordicsemi.com/thread/238527?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 13:08:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:482c0deb-a29c-40b3-9223-b69a61f4d458</guid><dc:creator>saver</dc:creator><description>&lt;p&gt;if i do that i am getting so much errors&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/twiadxl.png" /&gt;&lt;/p&gt;
&lt;p&gt;can you just rectify how to make up with this&lt;/p&gt;
&lt;p&gt;i just copied the twi sensor file and added the adxl375.c file&lt;/p&gt;
&lt;p&gt;and that main.c file into application folder ,but error is comming&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when i was interfacing with adxl375 with nrf52840 error</title><link>https://devzone.nordicsemi.com/thread/237624?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 08:23:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5108906b-eafb-4b96-bc3a-26f2d38a9edc</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would copy the entire example first, so you don&amp;#39;t have to modify the original example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can make a separate sub folder in the examples folder for all your own projects, and as long as you keep it on the same level all the examples will work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For example, you can copy the \examples\peripheral\twi_sensor project into \examples\YOUR_NAME\twi_sensor_modified.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Once you do that you can put your c and h files next to the main.c file for simplicity, there is no need to put them into the SDK libraries folder.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when i was interfacing with adxl375 with nrf52840 error</title><link>https://devzone.nordicsemi.com/thread/237461?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 13:33:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecff3835-bfbf-4a15-8059-e5b4140af377</guid><dc:creator>saver</dc:creator><description>&lt;p&gt;Can I just dumb that c file in the twi sensor program by just copy pasting it&lt;/p&gt;
&lt;p&gt;And including the .h file in the libraries&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when i was interfacing with adxl375 with nrf52840 error</title><link>https://devzone.nordicsemi.com/thread/237458?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 13:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:897f9e76-188b-422c-ac18-f319027cb4c5</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Are you using one of the examples in the nRF5 SDK as a starting point?&lt;/p&gt;
&lt;p&gt;If so, which one are you using?&lt;/p&gt;
&lt;p&gt;The zip file you sent me contains source files only, but no projects files or make files.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>