<?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>I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63708/i2s-loopback-example-missing-in-installation-folder</link><description>I setup NRF SDK using nrfconnectsetup341ia32 executable. 
 I2S example file should be located at &amp;lt;InstallFolder&amp;gt;\examples\peripheral\i2s according to https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Fi2s_example_loopback</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Jul 2020 13:07:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63708/i2s-loopback-example-missing-in-installation-folder" /><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/262208?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 13:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7528b9e-6f2f-42b7-b15a-10b2d60995a1</guid><dc:creator>Anjaneyulu Sana</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Thanks a lot for helping in fixing the crash issue.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Sana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/262188?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 12:40:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee299390-03c7-4da9-90e3-aebe68d94ea4</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi, and sorry for the slow responses.&lt;/p&gt;
&lt;p&gt;Due to summer vacations here in Norway, we are a bit short on staff at the moment.&lt;/p&gt;
&lt;p&gt;During the summer, we have had some students working on a project using I2S.&lt;/p&gt;
&lt;p&gt;As a part of that project, they made a simple demo showing how to use the nrfx I2S driver: &lt;a href="https://github.com/siguhe/NCS_I2S_nrfx_driver_example"&gt;https://github.com/siguhe/NCS_I2S_nrfx_driver_example&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/261982?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2020 12:54:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8d0c76c-ba4c-4c7a-9102-4926d4bd472b</guid><dc:creator>Anjaneyulu Sana</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;In the above provided example,&amp;nbsp;nrfx_i2s_start() is not used.&lt;/p&gt;
&lt;p&gt;My project is crashing in&amp;nbsp;nrfx_i2s_start() function.&lt;/p&gt;
&lt;p&gt;Can you please help in resolving this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/261563?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 10:54:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44229095-fd72-43a4-9581-ed5663c02948</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-ef3c16b2047a41a2baae1448147da522/i2s.zip"&gt;devzone.nordicsemi.com/.../i2s.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know why you&amp;#39;re modifying an integration test sample. I attached a project the should serve as a template to test the I2S peripheral.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m going on vacation for a week, but I&amp;#39;ll assign your case to another Tech Supporter.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;BR,&lt;br /&gt;Håkon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/261347?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 11:40:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5af9cc26-c50f-470d-9a1f-bdf34e9e42c0</guid><dc:creator>Anjaneyulu Sana</dc:creator><description>&lt;p&gt;Do you have any update on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/261203?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 13:08:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c5cb70e-35f6-41c4-a083-f207b461c6ef</guid><dc:creator>Anjaneyulu Sana</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrfProj.zip"&gt;devzone.nordicsemi.com/.../nrfProj.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have attached my project here. I am using this for nrf5340 board.&lt;/p&gt;
&lt;p&gt;Please help me in resolving crash issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/261192?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 12:22:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f0b7351-484b-42a0-9f9d-da98b0394201</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I can&amp;#39;t see anything wrong here, can you share the whole project so that I can debug it on my side?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/261017?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 14:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:861f8315-079c-430b-b2de-f8d8128d9332</guid><dc:creator>Anjaneyulu Sana</dc:creator><description>&lt;p&gt;Can you please check the above code and let me know if I am doing anything wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/260857?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2020 15:12:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71c1ea95-d30e-4009-ac09-220abb516fba</guid><dc:creator>Anjaneyulu Sana</dc:creator><description>&lt;p&gt;Here is the code used&lt;/p&gt;
&lt;p&gt;#include &amp;lt;zephyr.h&amp;gt;&lt;br /&gt;#include &amp;lt;ztest.h&amp;gt;&lt;br /&gt;#include &amp;lt;device.h&amp;gt;&lt;br /&gt;#include &amp;lt;drivers/i2s.h&amp;gt;&lt;br /&gt;#include &amp;lt;nrf.h&amp;gt;&lt;br /&gt;#include &amp;lt;nrfx.h&amp;gt;&lt;br /&gt;#include &amp;lt;nrfx_i2s.h&amp;gt;&lt;br /&gt;#include &amp;quot;i2s_api_test.h&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;static void data_handler(nrfx_i2s_buffers_t const * p_released,&lt;br /&gt; uint32_t status)&lt;br /&gt;{&lt;br /&gt; if(p_released != NULL) {&lt;br /&gt; if(p_released-&amp;gt;p_rx_buffer != NULL) {&lt;br /&gt; printf(&amp;quot;RX buffer received\n&amp;quot;);&lt;br /&gt; } else if(p_released-&amp;gt;p_tx_buffer) {&lt;br /&gt; printf(&amp;quot;TX buffer received\n&amp;quot;);&lt;br /&gt; } else {&lt;br /&gt; printf(&amp;quot;RX/TX buffer not received\n&amp;quot;);&lt;br /&gt; }&lt;br /&gt; } else {&lt;br /&gt; printf(&amp;quot;Received buffers are NULL\n&amp;quot;);&lt;br /&gt; }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;#define PAUSE_TIME 500&lt;br /&gt;#define I2S_BUFFER_SIZE 1000&lt;br /&gt;static uint32_t m_buffer_rx[I2S_BUFFER_SIZE];&lt;br /&gt;static uint32_t m_buffer_tx[I2S_BUFFER_SIZE];&lt;/p&gt;
&lt;p&gt;void test_main(void)&lt;br /&gt;{&lt;/p&gt;
&lt;p&gt;nrfx_i2s_config_t i2s_cfg = NRFX_I2S_DEFAULT_CONFIG(0, 1, 17, 20, 22);&lt;br /&gt; nrfx_i2s_buffers_t nrx_buf;&lt;br /&gt; nrx_buf.p_rx_buffer = m_buffer_rx;&lt;br /&gt; nrx_buf.p_tx_buffer = m_buffer_tx;&lt;br /&gt; err_code = nrfx_i2s_init(&amp;amp;i2s_cfg, data_handler);&lt;br /&gt; printf(&amp;quot;nrfx_i2s_init return code is %u\n&amp;quot;, err_code);&lt;/p&gt;
&lt;p&gt;for(index = 0; index &amp;lt; 10; index++)&lt;br /&gt; {&lt;br /&gt; err_code = nrfx_i2s_start(&amp;amp;nrx_buf, I2S_BUFFER_SIZE, 0);&lt;br /&gt; printf(&amp;quot;nrfx_i2s_start return code is %u\n&amp;quot;, err_code);&lt;br /&gt; k_sleep(K_MSEC(100));&lt;br /&gt; nrfx_i2s_stop();&lt;br /&gt; printf(&amp;quot;After nrfx_i2s_stop \n&amp;quot;);&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/260841?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2020 14:38:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:219b1d5c-8c65-437c-8471-359573a9af6a</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Can you share your I2S specific code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/260745?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2020 07:27:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e644ce44-13bc-4308-b412-b3ed4fa0cb1c</guid><dc:creator>Anjaneyulu Sana</dc:creator><description>&lt;p&gt;Thank you for this information. I am able to build and run the application.&lt;br /&gt;When I ran the application i got &amp;quot;E: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 1: Unhandled interrupt on CPU 0&amp;quot; error. &amp;quot;nrfx_i2s_init&amp;quot; is successful. I used 26, 27, 28, 29, 30 for&amp;nbsp;sck_pin,&amp;nbsp;lrck_pin,&amp;nbsp;mck_pin,&amp;nbsp;sdout_pin and&amp;nbsp;sdin_pin respectively.&lt;/p&gt;
&lt;p&gt;When &amp;quot;nrfx_i2s_start&amp;quot; is called, app crashed with above mentioned error.&lt;/p&gt;
&lt;p&gt;When debugged further, crash occurred inside &amp;quot;nrf_i2s_task_trigger&amp;quot; function.&lt;br /&gt;&lt;br /&gt;Can you please let me know how to fix this error?&lt;/p&gt;
&lt;p&gt;Can you please let me know what pins should I be using for IN, OUT and clocks of I2S?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/260589?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 13:08:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7843de6c-d833-4cf1-b85a-c93b284d4fdd</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Add&amp;nbsp;&lt;span&gt;CONFIG_NRFX_I2S&lt;/span&gt;&lt;span&gt;=y&amp;nbsp;&lt;/span&gt;to prj.conf file in order to include the driver&amp;#39;s source file in the build system.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Add&amp;nbsp;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;lt;nrfx_i2s.h&amp;gt; to your main.c file.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/260537?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 10:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be1bd0bb-8d7e-4623-acb5-3bcd3f88ef67</guid><dc:creator>Anjaneyulu Sana</dc:creator><description>&lt;p&gt;Is there any update on this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/260296?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 08:38:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c827c094-4117-481d-bc84-b09e6eeee3b4</guid><dc:creator>Anjaneyulu Sana</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/haakonsh"&gt;haakonsh&lt;/a&gt; Can you please answer my questions posted above?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/260087?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 09:51:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b766a94a-c1f6-4d38-9412-88088642a0f8</guid><dc:creator>Anjaneyulu Sana</dc:creator><description>&lt;p&gt;Can you please answer my question posted above?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/259924?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 13:34:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:043a4cff-2aec-4835-9ea8-b49d0ea5ffdc</guid><dc:creator>Anjaneyulu Sana</dc:creator><description>&lt;p&gt;When I am using &amp;quot;nrfx_i2s_init&amp;quot;, build is failing with undefined reference to &amp;quot;nrfx_i2s_init&amp;quot;.&lt;/p&gt;
&lt;p&gt;Can you please help me in resolving this issue?&lt;/p&gt;
&lt;p&gt;Are there any dependencies that I need to add or any CMakeList changes needs to be done for this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/259907?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 12:25:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38e12e53-8312-425b-8e2c-85a38feed739</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;We don&amp;#39;t have any example for I2S in nRF Connect SDK yet.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Although Zephyr has unit tests for its driver API for I2S it does not mean that there is support for the zephyr driver in NCS yet.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You can use the nRFX I2S drivers directly by adding #include &amp;lt;nrfx.h&amp;gt; to your source file&lt;br /&gt;&lt;br /&gt;See&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;quot;ncs root&amp;quot;\modules\hal\nordic\nrfx\drivers\src\nrfx_i2s.c.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/259892?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 11:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6465332-078b-4639-b55b-9034d2d49fba</guid><dc:creator>Anjaneyulu Sana</dc:creator><description>&lt;p&gt;Can you please let me know where can I find examples for I2S receive/transmit which used &amp;quot;nrfx_i2s_init&amp;quot; and related functions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/259864?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 09:46:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:981478b7-158b-435e-95c1-44a0c7595808</guid><dc:creator>Anjaneyulu Sana</dc:creator><description>&lt;p&gt;SDK vesrion v1.3 for nrf5340&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/259849?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 09:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:780da997-3730-415d-8340-65459aff077a</guid><dc:creator>haakonsh</dc:creator><description>[quote user="Anjaneyulu Sana"]I found I2S loopback example in &amp;lt;InstallFolder&amp;gt;\tests\drivers\i2s.[/quote]
&lt;p&gt;&amp;nbsp;What SDK are you using?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/259789?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 06:08:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a277d35-f09e-4af3-ad3d-4c19fd1ef3a5</guid><dc:creator>Anjaneyulu Sana</dc:creator><description>&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;I found I2S loopback example in &amp;lt;InstallFolder&amp;gt;\tests\drivers\i2s.&lt;/p&gt;
&lt;p&gt;However this example does not use nrfx_i2s_init or any related functions.&lt;/p&gt;
&lt;p&gt;On compiling and running this &amp;quot;Assertion failed at ../src/test_i2s_loopback.c:42: test_i2s_tx_transfer_configure_0: (dev_i2s is NULL) device I2S_0 not found&amp;quot; error occurred.&lt;/p&gt;
&lt;p&gt;Can you please let me know if what should be I2S device name to be used?&lt;/p&gt;
&lt;p&gt;Can you please let me know where can I find I2S receive/transmit example which uses &amp;quot;nrfx_i2s_init&amp;quot; and related functions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S loopback example missing in installation folder</title><link>https://devzone.nordicsemi.com/thread/259729?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2020 14:40:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f2a700a-f98d-43c1-bb38-0abb8c58a8ca</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;nRF Connect SDK does not have an I2S loopback example. To use the I2S with NCS and the nRF5340 you will have to use the nRFX drivers in&amp;nbsp;&amp;quot;ncs root&amp;quot;\modules\hal\nordic\nrfx\drivers\src\nrfx_i2s.c&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>