<?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 LIS3DH I2C</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68508/nrf52832-lis3dh-i2c</link><description>Hi, Im using a nRF52DK to read LIS3DH accelerometer readings in putty. Im new to this platform, I tried couple of example programs like blinkey, uart, and button in BLE. Now Im trying to establish I2C connection between DK and LIS3DH. I found some programs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Nov 2020 23:33:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68508/nrf52832-lis3dh-i2c" /><item><title>RE: nRF52832 LIS3DH I2C</title><link>https://devzone.nordicsemi.com/thread/281003?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2020 23:33:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:115eb902-03ac-4810-a565-4f782e5684fe</guid><dc:creator>awneil</dc:creator><description>[quote userid="95071" url="~/f/nordic-q-a/68508/nrf52832-lis3dh-i2c/281001#281001"]In the future, this project work might be commercialized, so we decided to go with visual studio[/quote]
&lt;p&gt;Again, there is a free licence for commercial use of SES.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 LIS3DH I2C</title><link>https://devzone.nordicsemi.com/thread/281002?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2020 23:32:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:658b553b-b5a0-4922-99fb-46c8105fcb0e</guid><dc:creator>awneil</dc:creator><description>[quote userid="95071" url="~/f/nordic-q-a/68508/nrf52832-lis3dh-i2c/281001#281001"]what I think my problem might be is, I did not include the header file properly[/quote]
&lt;p&gt;If there was a problem with the #include, you would have got a compiler error about it.&lt;/p&gt;
&lt;p&gt;A header just provide &lt;em&gt;&lt;strong&gt;declarations&lt;/strong&gt;&lt;/em&gt;; usually, the problem is that you&amp;#39;ve included the header but not provided the corresponding &lt;em&gt;&lt;strong&gt;definitions&lt;/strong&gt;&lt;/em&gt;&amp;nbsp;- hence the linker says, &amp;quot;un-&lt;em&gt;&lt;strong&gt;defined&lt;/strong&gt;&lt;/em&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.avrfreaks.net/comment/3027231#comment-3027231"&gt;https://www.avrfreaks.net/comment/3027231#comment-3027231&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 LIS3DH I2C</title><link>https://devzone.nordicsemi.com/thread/281001?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2020 23:18:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3185f5bf-61fc-4994-aa1e-48e7ee1ddada</guid><dc:creator>Karthiknk</dc:creator><description>&lt;p&gt;1. no it does not use&amp;nbsp;&lt;strong&gt;nrf_twi_sensor_init()&lt;/strong&gt;&lt;span&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;strong&gt;nrf_twi_sensor_reg_read()&lt;span&gt;&amp;nbsp;.&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;2. In the future, this project work might be commercialized, so we decided to go with visual studio.&lt;/p&gt;
&lt;p&gt;what I think my problem might be is, I did not include the header file properly. Initially, I just copied the required library files and pasted in the workspace folder. I think that gave me the undefined reference problems.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Initially,&amp;nbsp;I use to have one more error,&amp;nbsp;&lt;strong&gt;undefined reference to `nrf_twi_mngr_init&amp;#39; &lt;/strong&gt;that error disappeared when I created the project from twi_master example folder.&lt;/p&gt;
&lt;p&gt;can anyone help me to include the libraries in visual studio code?&lt;/p&gt;
&lt;p&gt;I included the path in &lt;em&gt;c_cpp_properties.json&lt;/em&gt;&amp;nbsp;but the header doesn&amp;#39;t seem to be found. I get &lt;strong&gt;no such file or directory error&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1040x240/__key/communityserver-discussions-components-files/4/5226.error.png" /&gt;&lt;/p&gt;
&lt;p&gt;correct me if I&amp;#39;m wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 LIS3DH I2C</title><link>https://devzone.nordicsemi.com/thread/280710?ContentTypeID=1</link><pubDate>Wed, 18 Nov 2020 22:13:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:930d6ba3-af76-4b40-844b-275ced6af2a3</guid><dc:creator>awneil</dc:creator><description>[quote userid="95071" url="~/f/nordic-q-a/68508/nrf52832-lis3dh-i2c/280706#280706"]the unmodified example builds without any error[/quote]
&lt;p&gt;does it use&amp;nbsp;&lt;strong&gt;nrf_twi_sensor_init()&lt;/strong&gt; and&amp;nbsp;&lt;strong&gt;nrf_twi_sensor_reg_read() &lt;/strong&gt;?&lt;/p&gt;
[quote userid="95071" url="~/f/nordic-q-a/68508/nrf52832-lis3dh-i2c/280706#280706"]unlike SES I can use this without a license for professional purposes[/quote]
&lt;p&gt;There is a free licence to use SES professionally with Nordic devices&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 LIS3DH I2C</title><link>https://devzone.nordicsemi.com/thread/280706?ContentTypeID=1</link><pubDate>Wed, 18 Nov 2020 20:56:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d759188b-a0d7-41d3-ac2e-236ab9e88d69</guid><dc:creator>Karthiknk</dc:creator><description>&lt;p&gt;1. Yes, the unmodified example builds without any error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. I use visual studio code because in the future I&amp;#39;m planning to use this for professional purposes, unlike SES I can use this without a license for professional purposes.&lt;/p&gt;
&lt;p&gt;Thank you for the link, I will check it and update if it works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 LIS3DH I2C</title><link>https://devzone.nordicsemi.com/thread/280674?ContentTypeID=1</link><pubDate>Wed, 18 Nov 2020 16:05:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5429d0e0-8d96-49ba-9ea0-3b9687a3d8ae</guid><dc:creator>awneil</dc:creator><description>[quote userid="95071" url="~/f/nordic-q-a/68508/nrf52832-lis3dh-i2c"]I used the twi_sensor example[/quote]
&lt;p&gt;So did you get that unmodified example to build cleanly first?&lt;/p&gt;
&lt;p&gt;&amp;quot;Undefined Reference&amp;quot; indicates that you have called those functions, but not provided the definitions.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39503/undefined-reference-on-the-linker-level"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/39503/undefined-reference-on-the-linker-level&lt;/a&gt;&lt;/p&gt;
[quote userid="95071" url="~/f/nordic-q-a/68508/nrf52832-lis3dh-i2c"]I&amp;#39;m using visual studio coder.[/quote]
&lt;p&gt;Any particular reason not to use Segger Embedded Studio (SES) - for which you get ready-configured projects with the examples ... ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>