6 years, 6 months ago.

porting I2S to nrf52 DK

I'm trying to port I2S to nrf52 DK board, but even though I include nrf_drv_i2s.h where nrf_drv_i2s_init, nrf_drv_i2s_start and nrf_drv_i2s_stop are I always get undefined reference error when linking is in the process:

/Users/bostjan/peskovnik/mauu/i2s_nordic_example/./main.cpp:190: undefined reference to `nrf_drv_i2s_init' /Users/bostjan/peskovnik/mauu/i2s_nordic_example/./main.cpp:199: undefined reference to `nrf_drv_i2s_start' /Users/bostjan/peskovnik/mauu/i2s_nordic_example/./main.cpp:205: undefined reference to `nrf_drv_i2s_stop'

Any ideas what I need to do?

1 Answer

6 years, 6 months ago.

Hi Boštjan,

We think the issue is that you likely haven't configured the Nordic SDK to include the I2S. Please try setting the "I2S_ENABLED" macro to "1" in the sdk_config.h file located here:

We think that will get the build working.

Regards,

Ralph, Team Mbed

Accepted Answer

You're right. Tested it and it works out of the box.

Thanks.

posted by Boštjan Jerko 26 Feb 2019