This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I2S loopback example missing in installation folder

I setup NRF SDK using nrfconnectsetup341ia32 executable. 

I2S example file should be located at <InstallFolder>\examples\peripheral\i2s according to https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Fi2s_example_loopback.html.

But no such folder is available.

Can you please help?

Parents
  • 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 "ncs root"\modules\hal\nordic\nrfx\drivers\src\nrfx_i2s.c 

  • Thank you for your reply.

    I found I2S loopback example in <InstallFolder>\tests\drivers\i2s.

    However this example does not use nrfx_i2s_init or any related functions.

    On compiling and running this "Assertion failed at ../src/test_i2s_loopback.c:42: test_i2s_tx_transfer_configure_0: (dev_i2s is NULL) device I2S_0 not found" error occurred.

    Can you please let me know if what should be I2S device name to be used?

    Can you please let me know where can I find I2S receive/transmit example which uses "nrfx_i2s_init" and related functions?

  • Anjaneyulu Sana said:
    I found I2S loopback example in <InstallFolder>\tests\drivers\i2s.

     What SDK are you using? 

  • SDK vesrion v1.3 for nrf5340

  • Can you please let me know where can I find examples for I2S receive/transmit which used "nrfx_i2s_init" and related functions?

  • We don't have any example for I2S in nRF Connect SDK yet. 

    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. 

    You can use the nRFX I2S drivers directly by adding #include <nrfx.h> to your source file

    See  "ncs root"\modules\hal\nordic\nrfx\drivers\src\nrfx_i2s.c.


  • When I am using "nrfx_i2s_init", build is failing with undefined reference to "nrfx_i2s_init".

    Can you please help me in resolving this issue?

    Are there any dependencies that I need to add or any CMakeList changes needs to be done for this?

Reply
  • When I am using "nrfx_i2s_init", build is failing with undefined reference to "nrfx_i2s_init".

    Can you please help me in resolving this issue?

    Are there any dependencies that I need to add or any CMakeList changes needs to be done for this?

Children