Cannot build I2S echo application for NRF5340

Hi, I am a beginner into the embedded audio space, and happened upon this board to use for our university project. Our team's current plan would be to produce audio directly on the board and play it through the headphone jack, but have not found much success with the NRF5340 Audio application, as it has a lot of integration with Bluetooth (which we don't need for now). Right now we just need a simple application that plays a tune on the board.

In my search I have found the I2S echo application, which seems like a simple start for our use case. However, when trying to build the application we encountered the following error:

-- Found BOARD.dts: C:/ncs/v2.6.2/zephyr/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp.dts
-- Found devicetree overlay: boards/nrf5340dk_nrf5340_cpuapp.overlay
devicetree error: pinctrl-names property in /soc/peripheral@50000000/i2s@28000 in C:/ncs/v2.6.2/zephyr/misc/empty_file.c has 1 strings, expected 2 strings

This is our build configuration (all other options left as default):

SDK version:

Any help would be appreciated! Thanks!

Parents
No Data
Reply Children
  • Hi,

    In the sample requirements, you can read this "The sample uses the WM8731 audio CODEC that can be found, for example, on the Audio Codec Shield, but it can be easily adapted to use other CODECs." but it is not the same codec that is used by the nrf5340_audio-dk board. You could try to add the lines below to your nrf5340_audio_dk_nrf5340_cpuapp.overlay file:

    &spi4 {
    	compatible = "nordic,nrf-spim";
    	status = "okay";
    	cs-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>, <&gpio0 17 GPIO_ACTIVE_LOW>;
    	pinctrl-0 = <&spi4_default>;
    	pinctrl-1 = <&spi4_sleep>;
    	pinctrl-names = "default", "sleep";
    
    	cs47l63: cs47l63@1 {
    		compatible = "cirrus,cs47l63";
    		reg = <1>;
    		spi-max-frequency = <8000000>;
    		irq-gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
    		reset-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
    		gpio9-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
    	};
    };

    Best regards,
    Dejan

Related