<?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>Not able to find I2C address of sensirion SGP40 sensor with nrfSDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111635/not-able-to-find-i2c-address-of-sensirion-sgp40-sensor-with-nrfsdk</link><description>Hii, 
 i used nrf5sdk and i am trying to scanning i2c address of Sensirion sgp40 Sensor but unable to sacn i2c address. 
 I try SGP40 sensor with arduino code its work correctly and give me i2c address and VOC value. 
 when i use latest nrfSDK its give</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Jun 2024 06:52:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111635/not-able-to-find-i2c-address-of-sensirion-sgp40-sensor-with-nrfsdk" /><item><title>RE: Not able to find I2C address of sensirion SGP40 sensor with nrfSDK</title><link>https://devzone.nordicsemi.com/thread/487025?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2024 06:52:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60294826-4f3c-4766-8e35-72b89718afd3</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;And can you confirm you&amp;#39;re not using the SPI1 instance for example, since these are mutually exclusive and use the same base address in the code?&amp;nbsp;&lt;span&gt;Have you done any kind of debugging and get an error code that might explain what is happening/going wrong here? Is there a specific reason you can&amp;#39;t use the nRF Connect SDK by the way?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to find I2C address of sensirion SGP40 sensor with nrfSDK</title><link>https://devzone.nordicsemi.com/thread/486778?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 06:32:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4955152c-06fa-4d1a-8b2e-6d7e46f28d77</guid><dc:creator>Sahil_D</dc:creator><description>&lt;p&gt;Yes I am using nRF5 SDK for ZIgbee/Thread with SGP40.&lt;/p&gt;
&lt;p&gt;This is my I2c address scan code.&lt;/p&gt;
&lt;p&gt;void BSP_I2C_Scanner(nrf_drv_twi_t const *handler)&lt;br /&gt;{&lt;br /&gt; ret_code_t err_code;&lt;br /&gt; uint8_t address;&lt;br /&gt; uint8_t sample_data;&lt;br /&gt; bool detected_device = false;&lt;/p&gt;
&lt;p&gt;for (address = 1; address &amp;lt;= 127; address++)&lt;br /&gt; {&lt;br /&gt; err_code = nrf_drv_twi_rx(handler, address, &amp;amp;sample_data, sizeof(sample_data));&lt;br /&gt; if (err_code == NRF_SUCCESS)&lt;br /&gt; {&lt;br /&gt; detected_device = true;&lt;br /&gt; NRF_LOG_INFO(&amp;quot;I2C device detected at address 0x%x.&amp;quot;, address);&lt;br /&gt; printf(&amp;quot;I2C device detected at address 0x%x.&amp;quot;, address);&lt;br /&gt; }&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;if (!detected_device)&lt;br /&gt; {&lt;br /&gt; NRF_LOG_ERROR(&amp;quot;I2C Error: No device was found.&amp;quot;);&lt;br /&gt; }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is my I2c init code&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/* I2C Peripheral */&lt;br /&gt;#define SNODE_I2C1_SCL_PIN NRF_GPIO_PIN_MAP(0,14)&lt;br /&gt;#define SNODE_I2C1_SDA_PIN NRF_GPIO_PIN_MAP(0,13)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;/**&lt;br /&gt; * Initialize all hard- and software components that are needed for the I2C&lt;br /&gt; * communication.&lt;br /&gt; */&lt;br /&gt;void sensirion_i2c_hal_init(void) {&lt;/p&gt;
&lt;p&gt;int8_t err;&lt;br /&gt; const nrf_drv_twi_config_t i2c_instance_config = {.scl = SNODE_I2C1_SCL_PIN,&lt;br /&gt; .sda = SNODE_I2C1_SDA_PIN,&lt;br /&gt; .frequency =NRF_TWI_FREQ_100K,&lt;br /&gt; .interrupt_priority = 0};&lt;br /&gt; /* initiate TWI instance */&lt;br /&gt; err = nrf_drv_twi_init(&amp;amp;i2c_instance, &amp;amp;i2c_instance_config, NULL, NULL);&lt;br /&gt; if (err) {&lt;br /&gt; /* Could be omitted if the prototyp is changed to non-void or an error&lt;br /&gt; * flag is introduced */&lt;br /&gt; printf(&amp;quot;Error %d: Initialization of I2C connection failed!\n&amp;quot;, err);&lt;br /&gt; }&lt;br /&gt; /* enable TWI instance */&lt;br /&gt; nrf_drv_twi_enable(&amp;amp;i2c_instance);&lt;br /&gt; return;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and this is my configure file&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/*######################################################################&lt;br /&gt; Configuration for enabling NRFX TWI/TWIM peripheral&lt;br /&gt;#######################################################################*/&lt;/p&gt;
&lt;p&gt;#define TWI_ENABLED 1 // enable TWI peripherl driver (legacy layer) &lt;br /&gt;#define NRFX_TWI_ENABLED 1 // enable NRFX TWI peripherl driver&lt;br /&gt;#define NRFX_TWIM_ENABLED 1 // enable TWIM peripheral driver&lt;br /&gt;#define TWI0_ENABLED 1 // Enable TWI0 Instance&lt;br /&gt;#define TWI1_ENABLED 1 // Enable TWI1 Instance&lt;/p&gt;
&lt;p&gt;/* Use EasyDMA (if present). Determines if you use the&lt;br /&gt; TWI peripheral (without DMA) or the TWIM peripheral (with DMA).*/&lt;br /&gt;#define TWI0_USE_EASY_DMA 1&lt;br /&gt;#define TWI1_USE_EASY_DMA 1&lt;/p&gt;
&lt;p&gt;/* (TWI/NRFX_TWI/NRFX_TWIM)_DEFAULT_CONFIG_FREQUENCY - Frequency &lt;br /&gt;&amp;lt;26738688=&amp;gt; 100k ,67108864=&amp;gt; 250k, &amp;lt;104857600=&amp;gt; 400k */&lt;br /&gt;#define TWI_DEFAULT_CONFIG_FREQUENCY 26738688&lt;br /&gt;#define NRFX_TWI_DEFAULT_CONFIG_FREQUENCY 26738688&lt;br /&gt;#define NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY 26738688&lt;/p&gt;
&lt;p&gt;/* &amp;lt;o&amp;gt; (TWI/NRFX_TWI/NRFX_TWIM)_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority &lt;br /&gt; Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice&lt;br /&gt; &amp;lt;0=&amp;gt; 0 (highest) &lt;br /&gt; &amp;lt;1=&amp;gt; 1 &lt;br /&gt; &amp;lt;2=&amp;gt; 2 &lt;br /&gt; &amp;lt;3=&amp;gt; 3 &lt;br /&gt; &amp;lt;4=&amp;gt; 4 &lt;br /&gt; &amp;lt;5=&amp;gt; 5 &lt;br /&gt; &amp;lt;6=&amp;gt; 6 &lt;br /&gt; &amp;lt;7=&amp;gt; 7 &lt;br /&gt;*/&lt;br /&gt;#define TWI_DEFAULT_CONFIG_IRQ_PRIORITY 6&lt;br /&gt;#define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY 6&lt;br /&gt;#define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 6&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to find I2C address of sensirion SGP40 sensor with nrfSDK</title><link>https://devzone.nordicsemi.com/thread/486776?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 06:24:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65ff56ed-6146-4bb2-a172-497e060bf359</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Are you using the nRF5 SDK for Mesh or Zigbee/Thread here? Have you done any kind of debugging and get an error code that might explain what is happening/going wrong here? Is there a specific reason you can&amp;#39;t use the nRF Connect SDK by the way?&lt;/p&gt;
&lt;p&gt;Based on the info you provide it&amp;#39;s really hard to tell what the issue might be, so please share some more information on what your end goal here is, what pins you&amp;#39;re using for I2C, and what libraries/drivers you&amp;#39;re using in your project.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to find I2C address of sensirion SGP40 sensor with nrfSDK</title><link>https://devzone.nordicsemi.com/thread/486423?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 12:20:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bb43a86-9c44-4bb3-83b7-eb1d5f075e5d</guid><dc:creator>Sahil_D</dc:creator><description>&lt;p&gt;I use currently 4.1.0 version nrfSDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>