<?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>Interfacing the SPH0645 Mic with the I2S in Zephyr.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105505/interfacing-the-sph0645-mic-with-the-i2s-in-zephyr</link><description>I want to interface the sph0645 mic in zephyr with the I2S but I am not able to do the same. 
 I am using the following code, because of the I2S 24 bit protocol with 32 bit word size is currently not supported in master mode by Nordic NRFX drivers. I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Apr 2024 10:45:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105505/interfacing-the-sph0645-mic-with-the-i2s-in-zephyr" /><item><title>RE: Interfacing the SPH0645 Mic with the I2S in Zephyr.</title><link>https://devzone.nordicsemi.com/thread/477767?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 10:45:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:155d8ddb-eb85-476c-8298-6866a934343e</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Qwelectric,&lt;/p&gt;
&lt;p&gt;I can see that you got support and solved the issue in your ticket &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109354/i2s-configuration-error-when-running-code"&gt;I2S configuration error when running code.&lt;/a&gt; . Linking it here as well to make it visible for other customers.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing the SPH0645 Mic with the I2S in Zephyr.</title><link>https://devzone.nordicsemi.com/thread/474176?ContentTypeID=1</link><pubDate>Sun, 17 Mar 2024 08:08:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aa8a0d9-d820-4680-8c4f-8557f9c70a34</guid><dc:creator>Qwelectric</dc:creator><description>&lt;p&gt;hello, I am having the same error as him. I2S_read() outputs -11 error. I can send my code and pin connections if you want&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing the SPH0645 Mic with the I2S in Zephyr.</title><link>https://devzone.nordicsemi.com/thread/457705?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 22:17:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02b6bcfe-5a5f-4968-84cf-9b733815a459</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;This code is not building for me.&lt;/p&gt;
&lt;p&gt;Which NCS version you are using, and can you send your project as zip folder (that contains any overlays and configs)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing the SPH0645 Mic with the I2S in Zephyr.</title><link>https://devzone.nordicsemi.com/thread/456581?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 05:56:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e05fc90-8605-4960-8983-6e5b13097789</guid><dc:creator>Lokesh Mahajan</dc:creator><description>&lt;p&gt;You can use nrf52840dk for reproduce the issue, I am also use this same code and able to recreate the issue on dk using the P0.08&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing the SPH0645 Mic with the I2S in Zephyr.</title><link>https://devzone.nordicsemi.com/thread/456479?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 14:51:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5fe8720-0cae-40ec-a54c-a3913a2c220f</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;As this is custom board, I can not reproduce your issue&lt;/p&gt;
&lt;p&gt;On the DK for example, I would disable the uart0 as we are using the P0.08 for I2S&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing the SPH0645 Mic with the I2S in Zephyr.</title><link>https://devzone.nordicsemi.com/thread/455784?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2023 13:50:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a5b4a22-b153-461a-8b30-68cada54de66</guid><dc:creator>Lokesh Mahajan</dc:creator><description>&lt;p&gt;I am using the&amp;nbsp;customized board which is having the inbuild microphone in it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is my overlay file.&lt;/p&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="text"&gt;
&amp;amp;i2c0 {
	tmp108@48 {
		compatible = &amp;quot;ti,tmp108&amp;quot;;
		reg = &amp;lt;0x48&amp;gt;;
		status = &amp;quot;okay&amp;quot;;
		//int-gpios = &amp;lt;&amp;amp;gpio0 11 GPIO_ACTIVE_HIGH&amp;gt;;
	};
};

&amp;amp;i2c0 {
	si7210@32 {
		compatible = &amp;quot;silabs,si7210&amp;quot;;
		reg = &amp;lt;0x32&amp;gt;;
		status = &amp;quot;okay&amp;quot;;
		//int-gpios = &amp;lt;&amp;amp;gpio0 11 GPIO_ACTIVE_HIGH&amp;gt;;
	};
};

&amp;amp;i2c0 {
    lis2dh@19 {
        compatible = &amp;quot;st,lis2dh&amp;quot;;
        reg = &amp;lt;0x19&amp;gt;;
		status = &amp;quot;okay&amp;quot;;		
        label = &amp;quot;LIS3DH&amp;quot;;
    };
};

&amp;amp;spi1 {
	status = &amp;quot;okay&amp;quot;;
    cs-gpios = &amp;lt; &amp;amp;gpio0 5 GPIO_ACTIVE_LOW &amp;gt;;
	adxl372@0 {
		compatible = &amp;quot;adi,adxl372&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
        spi-max-frequency = &amp;lt; 125000 &amp;gt;;
		//spi-max-frequency = &amp;lt; 8000000 &amp;gt;;
        int1-gpios = &amp;lt; &amp;amp;gpio0 11 GPIO_ACTIVE_HIGH &amp;gt;;
	};
};


i2s_rx: &amp;amp;i2s0 {
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;i2s0_default&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;;

};
&lt;/pre&gt;&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;and this was my pinctrl file.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="text"&gt;
&amp;amp;pinctrl {

    pwm0_default: pwm0_default {
		group1 {
			
            psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 3)&amp;gt;;
			nordic,invert;
		};
	};

	pwm0_sleep: pwm0_sleep {
		group1 {
			
            psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 3)&amp;gt;;
			low-power-enable;
		};
	};

    pwm1_default: pwm1_default {
		group1 {
			
            psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 28)&amp;gt;;
			nordic,invert;
		};
	};

	pwm1_sleep: pwm1_sleep {
		group1 {
            psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 28)&amp;gt;;
			low-power-enable;
		};
	};

    i2c0_default: i2c0_default {
        group1 {
            psels = &amp;lt;NRF_PSEL(TWIM_SDA, 0, 26)&amp;gt;,
                    &amp;lt;NRF_PSEL(TWIM_SCL, 0, 25)&amp;gt;;
        };
    };

    i2c0_sleep: i2c0_sleep {
        group1 {
            psels = &amp;lt;NRF_PSEL(TWIM_SDA, 0, 26)&amp;gt;,
                    &amp;lt;NRF_PSEL(TWIM_SCL, 0, 25)&amp;gt;;
            low-power-enable;
        };
    };
    
    spi1_default: spi1_default {
        group1 {
            psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 27)&amp;gt;,
                &amp;lt;NRF_PSEL(SPIM_MOSI, 0, 22)&amp;gt;,
                &amp;lt;NRF_PSEL(SPIM_MISO, 0, 20)&amp;gt;;
        };
    };

    spi1_sleep: spi1_sleep {
        group1 {
            psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 27)&amp;gt;,
                &amp;lt;NRF_PSEL(SPIM_MOSI, 0, 22)&amp;gt;,
                &amp;lt;NRF_PSEL(SPIM_MISO, 0, 20)&amp;gt;;
            low-power-enable;
        };
    };

   
i2s0_default: i2s0_default {
	group1 {
		psels = &amp;lt;NRF_PSEL(I2S_SDIN, 0, 8)&amp;gt;;           
	};
};

i2s0_sleep: i2s0_sleep {
	group1 {
		psels = &amp;lt;NRF_PSEL(I2S_SDIN, 0, 8)&amp;gt;;             
		low-power-enable;
	};
};


};&lt;/pre&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing the SPH0645 Mic with the I2S in Zephyr.</title><link>https://devzone.nordicsemi.com/thread/455409?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2023 19:49:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ac6f1d5-09f0-4c58-856c-24b783bf4370</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;how does your hardware setup look like? please share the snap of your connections&lt;/p&gt;
&lt;p&gt;Please also share your overlay file and the compiled dts.&lt;/p&gt;
&lt;p&gt;/BR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing the SPH0645 Mic with the I2S in Zephyr.</title><link>https://devzone.nordicsemi.com/thread/455051?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2023 06:38:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bef9eca7-2f1e-4633-8749-a515e2820e01</guid><dc:creator>Lokesh Mahajan</dc:creator><description>&lt;p&gt;I am getting the -11 error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing the SPH0645 Mic with the I2S in Zephyr.</title><link>https://devzone.nordicsemi.com/thread/455027?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 22:46:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13ef7183-8985-4f9d-ab8e-84a7959fa6b8</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;The i2s_read() may return one of the following values&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1699569978532v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Please make sure your hardware connections are correct and the device is on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>