<?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>Only Sending 1 Byte</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60889/only-sending-1-byte</link><description>Hi 
 Hopefully a quick question. I want to send a set of bytes &amp;#39;shtpData&amp;#39; between to routines but only one byte is being sent: 
 Sending &amp;#39;unit8_t *dataPacket&amp;#39; of 5 bytes. 
 
 Receiver &amp;#39;pData&amp;#39; is only the first byte. 
 
 Any ideas?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 May 2020 12:05:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60889/only-sending-1-byte" /><item><title>RE: Only Sending 1 Byte</title><link>https://devzone.nordicsemi.com/thread/249452?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 12:05:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5843e82-d7b3-4b70-a7c7-c19bf1dce6d9</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Technically, you can set this to the maximum size of the data type (size_t = unsigned int = uint32_t = 2^32 - 1 = &lt;span&gt;4294967295)&lt;/span&gt;, but you will run out of memory long before that. The TWI peripheral that nrfx_twi runs on does only send one byte at a time, the application needs to provide a new pointer for every byte being transferred. The buffer part is only used in software for the driver to handle this for you.&lt;/p&gt;
&lt;p&gt;If you were to use the TWIM peripheral with nrfx_twim, there is a limitation of 65534 bytes for each transfer in nRF52840 (&lt;a href="https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52.html"&gt;16-bit MAXCNT register&lt;/a&gt;), while it is limited to 255 bytes (8-bit MAXCNT register) on nRF52832.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only Sending 1 Byte</title><link>https://devzone.nordicsemi.com/thread/249405?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 10:32:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b157708-dd6c-491d-98c8-f23d4462353a</guid><dc:creator>aplatts</dc:creator><description>&lt;p&gt;Hi Jorgen&lt;/p&gt;
&lt;p&gt;Having an I2C Analyser has solved many issues! I have one question I need help with.&lt;/p&gt;
&lt;p&gt;With &amp;#39;nrfx_twi_xfer&amp;#39; what is the largest buffer size which can be read (value set by primary_length within nrfx_twi_xfer_desc_t)?&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Andrew&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only Sending 1 Byte</title><link>https://devzone.nordicsemi.com/thread/247854?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 12:13:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39b91aec-8cee-4bd0-be35-5838701b195e</guid><dc:creator>aplatts</dc:creator><description>&lt;p&gt;Hi the BNO-080 Address is -&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; BNO080_ADDR_SH2_0 &lt;/span&gt;&lt;span&gt;0x4A&lt;/span&gt;&lt;span&gt; //default&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Give me 48hrs, I have a new I2C analyser being delivered which I hope will shed some light on the issue. Let me get that in place and see what the actual traffic is on the I2C bus.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Please bare with me.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only Sending 1 Byte</title><link>https://devzone.nordicsemi.com/thread/247844?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 12:02:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a439f097-577c-440a-a8b8-4ccba044a922</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What is&amp;nbsp;BNO080_ADDR_SH2_0 defined as? Note that the address parameter should be set to the I2C address of the sensor, not the register you want to write to. The register address should normally be included in the tx_buffer.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>