<?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>We are trying to interface the VL53L1X with nrf52832. but &amp;quot;slave address = 0x52&amp;quot; is not getting reflected in the address register of TWI0.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79619/we-are-trying-to-interface-the-vl53l1x-with-nrf52832-but-slave-address-0x52-is-not-getting-reflected-in-the-address-register-of-twi0</link><description>1. Slave address is not reflected in the address register of TWI0. 
 2. other information is reflected in registers like operating frequency, SDA, SCL as well as enable. 
 3. due to the problem of the slave address is not getting reflected, I2C communication</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Oct 2021 09:43:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79619/we-are-trying-to-interface-the-vl53l1x-with-nrf52832-but-slave-address-0x52-is-not-getting-reflected-in-the-address-register-of-twi0" /><item><title>RE: We are trying to interface the VL53L1X with nrf52832. but "slave address = 0x52" is not getting reflected in the address register of TWI0.</title><link>https://devzone.nordicsemi.com/thread/335037?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 09:43:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92d3fb6c-6d2c-48e9-b49a-cf5ee4036f34</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
[quote user="ShubMane"]How to enable the multiple writes as well as multiple reads in the TWI.[/quote]
&lt;p&gt;By this, do you mean multiple reads or writes without a stop condition in between?&lt;br /&gt;If so, please see my mention of the SUSPEND flag in my previous comment.&lt;/p&gt;
[quote user="ShubMane"]if possible please send the example for multiple writes as well as multiple read.[/quote]
&lt;p&gt;Unfortunately I do not have any example that demonstrate the use of the SUSPEND flag, but you could try it out by modifying the TWI sensor example, for instance.&lt;br /&gt;If you intend to do this, you will have to change the&amp;nbsp;TWI0_USE_EASY_DMA define to 0, so that the example uses the TWI driver (that has the SUSPEND option) rather than the TWIM driver (that does not have the SUSPEND option) behind the scenes.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: We are trying to interface the VL53L1X with nrf52832. but "slave address = 0x52" is not getting reflected in the address register of TWI0.</title><link>https://devzone.nordicsemi.com/thread/335032?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 09:30:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37703488-170e-49c4-91ab-746afe4719d8</guid><dc:creator>ShubMane</dc:creator><description>&lt;p&gt;Hello Karl,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;How to enable the multiple writes as well as multiple reads in the TWI.&lt;/p&gt;
&lt;p&gt;if possible please send the example for multiple writes as well as multiple read.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: We are trying to interface the VL53L1X with nrf52832. but "slave address = 0x52" is not getting reflected in the address register of TWI0.</title><link>https://devzone.nordicsemi.com/thread/330798?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 10:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f414a718-a9d8-402c-8182-8e7fbf3564e9</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
[quote user="ShubMane"]we had an interface with the hts221 with vl53l1x on TWI bus. hts221 is workingly fine but vl53l1x is not working fine.[/quote]
&lt;p&gt;Are you saying that you connected the HTS221 in the exact same way as you have tried connecting the VL53l1X, and was able to communicate with it as expected?&lt;/p&gt;
[quote user="ShubMane"]because all the external sensor drivers provided in SDK having the register&amp;#39;s address length is 8 bit.[/quote]
&lt;p&gt;All TWI addresses are 7 bit, with the 8th bit of the byte indicating whether it is a read or a write command for the 7 bit address. Sometimes, this is concatinated into a single address, such as WHO_AM_I_READ or similar. All TWI addresses are 7 bit as per the specification.&lt;/p&gt;
[quote user="ShubMane"]For resolving the issue, can we have some options like multiple read or write???[/quote]
&lt;p&gt;Sure,&amp;nbsp;you can do multiple reads or writes in the same transaction if you would like (no STOP between reads, for example). You can do this by using the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Fgroup__nrfx__twi.html&amp;amp;anchor=ga5c9b6d700f27de583917838647057658"&gt;nrfx_twi_xfer&lt;/a&gt; with the SUSPEND flag.&lt;br /&gt;&lt;br /&gt;I repeat myself because it would be very helpful to know for the continued debugging of this case:&lt;/p&gt;
[quote user="Karl Ylvisaker"]&lt;blockquote&gt;&lt;div&gt;Karl Ylvisaker said:&lt;/div&gt;&lt;div&gt;Which pins are you using for this on the nRF52832?&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;
&lt;p&gt;Exactly which pins on the nRF device are you trying to use for your TWI peripheral? Your drawing does not include this information.&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;Karl Ylvisaker said:&lt;/div&gt;&lt;div&gt;Do you have access to a logic analyzer, so we could take a look at what might be happening on the lines?&lt;/div&gt;&lt;/blockquote&gt;[/quote]
&lt;p&gt;Please take a moment to answer these questions.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: We are trying to interface the VL53L1X with nrf52832. but "slave address = 0x52" is not getting reflected in the address register of TWI0.</title><link>https://devzone.nordicsemi.com/thread/330751?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 07:10:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61ef18c7-1c36-4fab-a744-30e1a12dcb7f</guid><dc:creator>ShubMane</dc:creator><description>&lt;p&gt;Hello Karl,&lt;/p&gt;
&lt;p&gt;For resolving the issue, can we have some options like multiple read or write???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: We are trying to interface the VL53L1X with nrf52832. but "slave address = 0x52" is not getting reflected in the address register of TWI0.</title><link>https://devzone.nordicsemi.com/thread/330748?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 06:32:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50d9330a-10e3-460c-9e46-79bddcc5666b</guid><dc:creator>ShubMane</dc:creator><description>&lt;p&gt;Hello Karl,&lt;/p&gt;
&lt;p&gt;In the above, I am talking about the internal register&amp;#39;s address length of the sensors for reading and writing in them. and not about the slave address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: We are trying to interface the VL53L1X with nrf52832. but "slave address = 0x52" is not getting reflected in the address register of TWI0.</title><link>https://devzone.nordicsemi.com/thread/330747?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 06:25:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c7af0e5-c806-4905-9f65-5e1e4ff54dd0</guid><dc:creator>ShubMane</dc:creator><description>&lt;p&gt;Hello Karl,&lt;/p&gt;
&lt;p&gt;Suspecting that we had been found the issue regarding the I2C communication of the vl53l1x.&lt;/p&gt;
&lt;p&gt;please refer to the image. (I2C) the frame format of VL53L1x.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/787x240/__key/communityserver-discussions-components-files/4/I2C_5F00_frame.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;Address length size is about to be 16 bit with the separation of the MSB[15:8] and LSB[7:0]. so we have seen the TWI driver regarding that, files are &amp;quot;nrf_drv_twi.h&amp;quot; and &amp;quot;nrf_drv_twi.c&amp;quot; files. so in the TWI driver, only 8 bits of data were allowed to be passed within them&lt;/p&gt;
&lt;p&gt;might be this is an issue that happens for the I2C communication. because we had even checked all the external sensor drivers that are provided in the SDK for example HTS221 the address length size is 8 bit.&lt;/p&gt;
&lt;p&gt;we had an interface with the hts221 with vl53l1x on TWI bus. hts221 is workingly fine but vl53l1x is not working fine.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The nrfx TWI driver was also enabled even we had that also checked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/430x300/__key/communityserver-discussions-components-files/4/nrf_5F00_drv_5F00_twi.JPG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/484x293/__key/communityserver-discussions-components-files/4/nrf_5F00_drv_5F00_twi_5F00_1.JPG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;please check for the issue and let us know. please refer to the I2C frame format of VL53L1X.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;because all the external sensor drivers provided in SDK having the register&amp;#39;s address length is 8 bit.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: We are trying to interface the VL53L1X with nrf52832. but "slave address = 0x52" is not getting reflected in the address register of TWI0.</title><link>https://devzone.nordicsemi.com/thread/330482?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 12:14:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bdcced1-0618-4d56-ba57-6d6c7e0617da</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, Shubham&lt;br /&gt;&lt;br /&gt;Thank you for providing the drivers.&lt;br /&gt;As mentioned I do not expect this to stem from a logical error in the officially supplied drivers, but it could stem from a mismatch in configuration. In your diagram you are using external pullup resistors. The nrfx TWI driver enables internal pullups by default. Have you disabled the internal pullups, since you are using external ones?&lt;br /&gt;Please see these questions from my previous comment:&lt;/p&gt;
[quote user="ShubMane"]4. Please refer to the attached diagram. same connection configurations are working with ESP32.[/quote][quote user="Karl Ylvisaker"]Which pins are you using for this on the nRF52832?[/quote]
&lt;p&gt;Exactly which pins on the nRF device are you trying to use for your TWI peripheral? Your drawing does not include this information.&lt;/p&gt;
[quote user="Karl Ylvisaker"]Do you have access to a logic analyzer, so we could take a look at what might be happening on the lines?[/quote]
&lt;p&gt;&lt;br /&gt;Please answer these questions so we may proceed with the debugging of your issue.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: We are trying to interface the VL53L1X with nrf52832. but "slave address = 0x52" is not getting reflected in the address register of TWI0.</title><link>https://devzone.nordicsemi.com/thread/330378?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 05:49:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41809713-4fee-4345-9aa3-344cfde7a065</guid><dc:creator>ShubMane</dc:creator><description>&lt;p&gt;Hello Karl,&lt;/p&gt;
&lt;p&gt;1. When we are going to interfacing the TOF sensor(VL53L1X) with ESP32. It is working absolutely fine with the ESP32 platform with Arduino&amp;nbsp; IDE. I am attaching the library of the TOF sensor which is working on ESP32.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/VL53L1X.h"&gt;devzone.nordicsemi.com/.../VL53L1X.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/VL53L1X.cpp"&gt;devzone.nordicsemi.com/.../VL53L1X.cpp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2. It&amp;#39;s giving the problem with the nRF52832 platform&amp;nbsp;here I am attaching the library file of the TOF sensor given by the manufacturer (STMicroelectronics).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_api.c"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_api.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_api.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_api.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_api_5F00_calibration.c"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_api_5F00_calibration.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_api_5F00_calibration.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_api_5F00_calibration.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_api_5F00_core.c"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_api_5F00_core.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_api_5F00_core.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_api_5F00_core.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_api_5F00_debug.c"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_api_5F00_debug.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_api_5F00_debug.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_api_5F00_debug.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_api_5F00_preset_5F00_modes.c"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_api_5F00_preset_5F00_modes.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_api_5F00_preset_5F00_modes.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_api_5F00_preset_5F00_modes.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_api_5F00_strings.c"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_api_5F00_strings.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_api_5F00_strings.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_api_5F00_strings.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_core.c"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_core.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_core.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_core.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_core_5F00_support.c"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_core_5F00_support.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_core_5F00_support.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_core_5F00_support.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_def.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_def.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_error_5F00_codes.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_error_5F00_codes.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_error_5F00_exceptions.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_error_5F00_exceptions.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_error_5F00_strings.c"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_error_5F00_strings.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_error_5F00_strings.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_error_5F00_strings.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_ll_5F00_def.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_ll_5F00_def.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_ll_5F00_device.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_ll_5F00_device.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_nvm_5F00_map.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_nvm_5F00_map.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_preset_5F00_setup.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_preset_5F00_setup.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_register_5F00_funcs.c"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_register_5F00_funcs.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_register_5F00_funcs.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_register_5F00_funcs.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_register_5F00_map.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_register_5F00_map.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_register_5F00_settings.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_register_5F00_settings.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_register_5F00_structs.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_register_5F00_structs.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_silicon_5F00_core.c"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_silicon_5F00_core.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_silicon_5F00_core.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_silicon_5F00_core.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_tuning_5F00_parm_5F00_defaults.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_tuning_5F00_parm_5F00_defaults.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_wait.c"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_wait.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_wait.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_wait.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_platform.c"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_platform.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_platform.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_platform.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_platform_5F00_log.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_platform_5F00_log.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_platform_5F00_user_5F00_config.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_platform_5F00_user_5F00_config.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_platform_5F00_user_5F00_data.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_platform_5F00_user_5F00_data.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_platform_5F00_user_5F00_defines.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_platform_5F00_user_5F00_defines.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vl53l1_5F00_types.h"&gt;devzone.nordicsemi.com/.../vl53l1_5F00_types.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;3. Resistor value is from R1-R4 is 20k.&lt;/p&gt;
&lt;p&gt;4. Please refer to the attached diagram. same connection configurations are working with ESP32.&lt;/p&gt;
&lt;p&gt;5. Please refer to the attached library and help us with the TWI communication with the TOF sensor (VL53L1X).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Shubham&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: We are trying to interface the VL53L1X with nrf52832. but "slave address = 0x52" is not getting reflected in the address register of TWI0.</title><link>https://devzone.nordicsemi.com/thread/330016?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 11:46:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69ab37c5-965c-4def-8ae0-2754954f4e42</guid><dc:creator>ShubMane</dc:creator><description>&lt;p&gt;Hello Karl,&lt;/p&gt;
&lt;p&gt;1. Here is the detail for the hardware connection (nRF52832 -&amp;gt; VL53L1X).&lt;/p&gt;
&lt;p&gt;2. According to me, there is nothing that goes wrong with the hardware connection&lt;/p&gt;
&lt;p&gt;3. We had studied the datasheet of the VL53L1X.&lt;/p&gt;
&lt;p&gt;4. Even there is no driver available in the SDK for this sensor. Can u provide the driver of this???&lt;/p&gt;
&lt;p&gt;5. Please refer the image.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1040x2769/__key/communityserver-discussions-components-files/4/0878.hardware_5F00_connection_5F00_VL53L1X_5F00_nrf52832.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: We are trying to interface the VL53L1X with nrf52832. but "slave address = 0x52" is not getting reflected in the address register of TWI0.</title><link>https://devzone.nordicsemi.com/thread/330002?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 11:19:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ba4be82-302b-4b1c-ab7f-fed4de05667e</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Thank you for providing the drawing.&lt;br /&gt;Which pins are you using for this on the nRF52832?&lt;br /&gt;The TWI driver by default enables external pullups. Have you disabled these? How much resistance is the resistors R1-R4?&lt;br /&gt;Could you also confirm whether or not you are working with a nRF52 DK?&lt;/p&gt;
[quote user="ShubMane"]2. According to me, there is nothing that goes wrong with the hardware connection[/quote]
&lt;p&gt;Do you have access to a logic analyzer, so we could take a look at what might be happening on the lines?&lt;/p&gt;
[quote user="ShubMane"]4. Even there is no driver available in the SDK for this sensor. Can u provide the driver of this???[/quote]
&lt;p&gt;Unfortunately we do not provide drivers for all third party sensors in our SDK, but if you have an existing driver written in C it should not require too much work to port it to the nRF52832.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: We are trying to interface the VL53L1X with nrf52832. but "slave address = 0x52" is not getting reflected in the address register of TWI0.</title><link>https://devzone.nordicsemi.com/thread/329997?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 11:06:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60224c7e-31c4-482a-875f-98af86d34f07</guid><dc:creator>ShubMane</dc:creator><description>&lt;p&gt;Hello Karl,&lt;/p&gt;
&lt;p&gt;1. Here is the detail for the hardware connection (nRF52832 -&amp;gt; VL53L1X).&lt;/p&gt;
&lt;p&gt;2. According to me, there is nothing that goes wrong with the hardware connection&lt;/p&gt;
&lt;p&gt;3. We had studied the datasheet of the VL53L1X.&lt;/p&gt;
&lt;p&gt;4. Even there is no driver available in the SDK for this sensor. Can u provide the driver of this???&lt;/p&gt;
&lt;p&gt;5. Please refer the image.&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1040x2769/__key/communityserver-discussions-components-files/4/hardware_5F00_connection_5F00_VL53L1X_5F00_nrf52832.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: We are trying to interface the VL53L1X with nrf52832. but "slave address = 0x52" is not getting reflected in the address register of TWI0.</title><link>https://devzone.nordicsemi.com/thread/329965?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 09:10:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:361704e0-fce3-4605-9538-3aa1f140c055</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
[quote user="ShubMane"]&lt;p&gt;1. I had tried with &amp;quot;Twi scanner code&amp;quot; but the slave device address was not found.&lt;/p&gt;
&lt;p&gt;2. even I had again checked the hardware connections for it.&lt;/p&gt;[/quote]
&lt;p&gt;That is strange. Could you detail how you connected the nRF to the TWI slave? Which pins on the nRF is connected to which pins on the slave device, and how is the slave device powered? Could you also elaborate on how you have initialized the TWI - what configuration are you using?&lt;/p&gt;
[quote user="ShubMane"]3. for chacking the hardware connection We had tried to with ESP32 platform &amp;quot;I2C scanner code&amp;quot;.[/quote]
&lt;p&gt;How was your connections between the ESP32 and the TWI slave? What TWI configuration did you use on your ESP32 when you successfully found the device?&amp;nbsp;&lt;/p&gt;
[quote user="ShubMane"]5. Is VL53L1X is compatible with NRF52832???&amp;nbsp; because even in basic TWI scanner code the device is not found&amp;nbsp;[/quote]
&lt;p&gt;No, as long as they both follow the TWI protocol there is no notion of compatibility, since none of the devices actually know what is on the other side of the connection - all they need to know is what will be coming in on the TWI pins, and what to do with that information.&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: We are trying to interface the VL53L1X with nrf52832. but "slave address = 0x52" is not getting reflected in the address register of TWI0.</title><link>https://devzone.nordicsemi.com/thread/329945?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 07:48:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eedcdef-bfc0-4be4-97e9-93d9b3e9d344</guid><dc:creator>ShubMane</dc:creator><description>&lt;p&gt;hello Karl,&lt;/p&gt;
&lt;p&gt;1. I had tried with &amp;quot;Twi scanner code&amp;quot; but the slave device address was not found.&lt;/p&gt;
&lt;p&gt;2. even I had again checked the hardware connections for it.&lt;/p&gt;
&lt;p&gt;3. for chacking the hardware connection We had tried to with ESP32 platform &amp;quot;I2C scanner code&amp;quot;.&lt;/p&gt;
&lt;p&gt;4. on the ESP32 platform the slave address was found.&lt;/p&gt;
&lt;p&gt;5. Is VL53L1X is compatible with NRF52832???&amp;nbsp; because even in basic TWI scanner code the device is not found&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1040x730/__key/communityserver-discussions-components-files/4/ESP32.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1040x720/__key/communityserver-discussions-components-files/4/nrf52.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: We are trying to interface the VL53L1X with nrf52832. but "slave address = 0x52" is not getting reflected in the address register of TWI0.</title><link>https://devzone.nordicsemi.com/thread/329459?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 13:25:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddd6dfaf-55e9-4b17-a500-87932dd578b1</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;&lt;span&gt;You should first try to run&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/twi_scanner_example.html"&gt;the TWI Scanner example from the SDK&lt;/a&gt;&lt;span&gt;&amp;nbsp;to verify that your hardware connections is correct. The example will scan through all devices on the TWI bus and report any found devices in the log. If all your hardware connections are correct and the TWI Slave is operating as intended it will be found here.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Please also make sure that you have DEBUG defined in your preprocessor defines, like shown in the included image.&lt;/span&gt;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3808.enabling_5F00_debug_5F00_SES.PNG" /&gt;&lt;br /&gt;&lt;span&gt;This will make a detailed error message be output by your logger in the case that a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Are you using the TWI or TWIM driver in your application? It would be helpful to see the section of the code where you are using the TWI peripheral.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;For future reference, please use the&amp;nbsp;&lt;/span&gt;&lt;em&gt;Insert -&amp;gt; Code&amp;nbsp;&lt;/em&gt;&lt;span&gt;option when sharing code here on DevZone.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;On another note it seems that you are getting a lot of non-zero error codes in your log - what are these, and where do they originate?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>