nrf5340 Audio DK Digital MIC Sample Build Error Occurring

I am using VS Code IDE and have installed nrf Connect Extension and done with the installation part and blinky and few other samples. So, basically I just copied an available sample application titled "DMIC Sample" in the application samples. Added build configurations as shown in fig.1 below



After running build I am getting following error.
1. "macro "_CONCAT" requires 2 arguments, but only 1 given" - In device.h file
2. "too few arguments in invocation of macro "_CONCAT""  - In main.c file 



I have tried running the same sample in other laptop too. But still same error occurs. It might be issue with the application sample itself but I need solution to it asap. 
 Thank You!


Parents Reply
  • Hi Prasad,

    This might be because you are trying the sample with an audio DK. DMIC sample will work with the nRF52840 DK and nRF5340 DK. But for other boards, like the nRF5340 Audio DK, you may need to create a separate overlay file to specify the dmic_dev node and make other necessary configurations.
    On the nRF5340 Audio DK, the onboard microphone is not directly connected to the nRF5340 SoC, but goes through a hardware codec and is connected via I2S interface. Therefore, the PDM-related API used in this sample may not be suitable for the onboard microphone of the nRF5340 Audio DK without modifications. This might be why you are seeing errors.

    -Priyanka

Children
Related