<?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>I2C burst write for nRF5340 fails</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75159/i2c-burst-write-for-nrf5340-fails</link><description>I2C burst write for nRF5340 at 100kHz is failing with a reply of -5. (Trying to use the BMI270 drivers sample, it will fail during reg_write of the configuration file) 
 Reading works. with nRF5340. I can read the Chip ID correctly. 
 Same code on nRF52480</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Jun 2021 08:16:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75159/i2c-burst-write-for-nrf5340-fails" /><item><title>RE: I2C burst write for nRF5340 fails</title><link>https://devzone.nordicsemi.com/thread/315524?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 08:16:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e964c4e-12e9-4b1d-b269-c7c37cced4b8</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Thanks for the feedback, Samuel! I’m glad to hear that this solved the issue.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Cheers!&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C burst write for nRF5340 fails</title><link>https://devzone.nordicsemi.com/thread/315506?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 05:53:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ffcfca4-e430-4497-bb60-db59b2c7cce9</guid><dc:creator>SamA</dc:creator><description>&lt;p&gt;Sorry for reporting back late.. the&amp;nbsp;concat-buf-size = &amp;lt;128&amp;gt;; worked.&amp;nbsp; &amp;nbsp;I had to tune it to fit my array size.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C burst write for nRF5340 fails</title><link>https://devzone.nordicsemi.com/thread/310887?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 01:50:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9547333b-882d-47ee-9492-5d7935b64aa9</guid><dc:creator>SamA</dc:creator><description>&lt;p&gt;Great, will experiment more. ! thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C burst write for nRF5340 fails</title><link>https://devzone.nordicsemi.com/thread/310708?ContentTypeID=1</link><pubDate>Thu, 20 May 2021 11:11:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c497384-a248-4f1c-ba1c-54cf7f6cd765</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Samuel,&lt;/p&gt;
&lt;p lang="en-GB"&gt;one difference between those two devices is that the nRF5340 is using TWIM drivers while the nRF52840 is using TWI drivers. TWIM has a hardware limitation which results in burst writes not all sensors are supporting. You can read more about this &lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/15116"&gt;here&lt;/a&gt;. There is also a similar &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/70514/i2c_burst_read-and-i2c_burst_write-not-working-on-nrf5340"&gt;case&lt;/a&gt; in DevZone.&lt;/p&gt;
&lt;p lang="en-GB"&gt;A good starting point could be to add the concat-buf-size &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/devicetree/bindings/i2c/nordic,nrf-twim.html?highlight=concat%20buf%20size"&gt;attribute&lt;/a&gt; in an overlay file and check if that makes any differences. Below you can see an example of the attribute usage:&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2021 Bosch Sensortec GmbH
 *
 * SPDX-License-Identifier: Apache-2.0
 */
&amp;amp;arduino_i2c {
    status = &amp;quot;okay&amp;quot;;
    zephyr,concat-buf-size = &amp;lt;128&amp;gt;;
    bmi270@68 {
        compatible = &amp;quot;bosch,bmi270&amp;quot;;
        reg = &amp;lt;0x68&amp;gt;;
        label = &amp;quot;BMI270&amp;quot;;
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;I hope this will help you!&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C burst write for nRF5340 fails</title><link>https://devzone.nordicsemi.com/thread/310592?ContentTypeID=1</link><pubDate>Thu, 20 May 2021 02:44:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f254d50c-2afb-43f3-b111-08322363da75</guid><dc:creator>SamA</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56253/nrf5340-unable-to-write-with-i2c_1-in-zephyr"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/56253/nrf5340-unable-to-write-with-i2c_1-in-zephyr&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This seems to be related&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C burst write for nRF5340 fails</title><link>https://devzone.nordicsemi.com/thread/310590?ContentTypeID=1</link><pubDate>Thu, 20 May 2021 02:36:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a5cd562-831f-4140-9781-5214766fbd86</guid><dc:creator>SamA</dc:creator><description>&lt;p&gt;Using latest NCS 1.5.99, the default SES.&amp;nbsp; &amp;nbsp;Latest Zephyr for the BMI270 code. (Which worked on NRF52840 when I generated it for that board type).&lt;/p&gt;
&lt;p&gt;Seem to see others having trouble also from the forum.&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C burst write for nRF5340 fails</title><link>https://devzone.nordicsemi.com/thread/310169?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 12:58:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1a2d8ea-d2dd-4a26-90a2-0d184aeddf5c</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Hello Samuel,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;again, my apologies for the late reply.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;What kind of toolchain and which version of it are you using? I see that you have tagged the nRF5 SDK, but it does not support the nRF5340.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Markus&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C burst write for nRF5340 fails</title><link>https://devzone.nordicsemi.com/thread/309830?ContentTypeID=1</link><pubDate>Fri, 14 May 2021 14:25:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:017eaf34-5f55-4b86-ad7f-ecf595cae77b</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;Hello Samuel,&lt;/p&gt;
&lt;p&gt;Due to public holidays in Norway, we are short on staff at the moment. I might need some time to analyse your case, but I will come back to you as soon as possible.&lt;/p&gt;
&lt;p&gt;I apologise for any inconvenience caused.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>