<?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>(URGENT) Initialising Accelerometer in Segger Embedded Studios SES and Reading X, Y and Z Values nRF52840 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73896/urgent-initialising-accelerometer-in-segger-embedded-studios-ses-and-reading-x-y-and-z-values-nrf52840-dk</link><description>Hi, 
 My project involves an nRF52840 DK connected to an accelerometer on a breadboard, connecting to my Mac via USB-micro. 
 I&amp;#39;m editing the twi_scanner SES project so that my accelerometer can communicate with the DK via the TWI protocol. I&amp;#39;ve been</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Apr 2021 16:48:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73896/urgent-initialising-accelerometer-in-segger-embedded-studios-ses-and-reading-x-y-and-z-values-nrf52840-dk" /><item><title>RE: (URGENT) Initialising Accelerometer in Segger Embedded Studios SES and Reading X, Y and Z Values nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/304658?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 16:48:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26e8c620-21ab-48b6-9eb7-0f12c48abb25</guid><dc:creator>Jaz</dc:creator><description>&lt;p&gt;I&amp;#39;m also unsure on how to link the MC36XX TWI functions to Segger Embedded Studios as it mentions on page 9 of the guide:&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-2021_2D00_04_2D00_13-at-17.47.19.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (URGENT) Initialising Accelerometer in Segger Embedded Studios SES and Reading X, Y and Z Values nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/304645?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 15:31:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b430518-a836-413c-8650-7996c958c451</guid><dc:creator>Jaz</dc:creator><description>&lt;p&gt;I really need help obtaining these values by the end of today so any help would be appreciated! Thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (URGENT) Initialising Accelerometer in Segger Embedded Studios SES and Reading X, Y and Z Values nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/304632?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 15:04:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11809e49-2920-436e-8948-dbad323aa9a2</guid><dc:creator>Jaz</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-2021_2D00_04_2D00_13-at-16.06.13.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-2021_2D00_04_2D00_13-at-16.00.42.png" /&gt;I&amp;#39;ve edited my code as follows but in putty, empty spaces are being printed in a loop. Do you think this could be due to an error in my code or the circuit itself? I&amp;#39;m unclear about what the purpose of setting FIFO is as well, thanks for your help!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (URGENT) Initialising Accelerometer in Segger Embedded Studios SES and Reading X, Y and Z Values nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/304593?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 13:56:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83650bd5-a192-47e3-9e71-95f14155b034</guid><dc:creator>Jaz</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your reply. I&amp;#39;m not sure what you mean by logic analyser trace? Sorry, reading two ReadData() values is a mistake in my code. The ReadData() function should return the number of samples being read but I don&amp;#39;t understand the role of faOuptut and how I should declare the data buffer to store the output data (as mentioned on page 21 of the guide)? &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (URGENT) Initialising Accelerometer in Segger Embedded Studios SES and Reading X, Y and Z Values nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/304587?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 13:49:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79f61975-4076-41f1-9e6f-c33f0c26d6c3</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you have a logic analyzer trace of the twi communication?&lt;/p&gt;
&lt;p&gt;Have you looked into the return value of&amp;nbsp;&lt;span&gt;M_DRV_MC36XX_ReadData() and what it may mean? Looks like you are calling multiple&amp;nbsp;M_DRV_MC36XX_ReadData(), are you checking return value of them all?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>