How to use nRF53 audio dk series to play mp3 audio file

Hi,

I have worked on nRF 5340 (nRF connect SDK v1.9.1) for last few days and now able to use and modify some examples.

Recently, I have received the nRF 5340 audio DK which I need to use to develop an application which will use the audio audio files stored in an external SD card and then will play them to drive external device (Ex. speaker). I have cloned the repo, but could not yet configure the device under the Add Build Configuration as I am unable to find the board name for nrf5340 audio dk. Please let me know what I am missing here and it will be really helpful if I can get a reference for DK configuration and any example available to start with the application development.

Thanks

Parents Reply Children
  • Hi Pirun,

    If you were referring to LC3 codec repository, then currently I am trying to use the SBC codec until I get the access to LC3 repository. But if you were referring to some other repository then please let me know.

    Thanks

  • Hello,

    Even if you will not be using the LC3 codec you will need to perform the steps in the link that Pirun referenced - when you perform the west update you will be prompted for your github login to the account that has the access to the LC3 repository, here it is important that you do not cancel the rest of the update, even if you are not going to use the LC3 codec.
    Just input some junk login information, so that the authentication fails, and then the west update will continue to download the other required dependencies, such as the Cirrus Logic HW Codec repository.

    Please do this, and let us know if this resolves your issue.

    Best regards,
    Karl

  • Hi Karl,

    I have followed your instructions and completed the build procedure. I got the below error which seems to be the LC3 repo access issue.

    By modifying the nrf5340_audio_dk_devices.json file, I am able to see the change in audio DK LED colour as per the "nrf5340_audio_dk_dev" value. However, for our application where I need to use a file from the SD card and play on the device itself instead of transmitting/receiving from other device. So, please let me know what modification I have to make in the existing audio application.

    Thanks

  • ShuMan said:
    I have followed your instructions and completed the build procedure. I got the below error which seems to be the LC3 repo access issue.

    It is expected to fail for this part as long as you do not have access to the LC3 repository - but it will still download all the other dependencies so that you are able to build the application, so this looks correct to me! :) 

    ShuMan said:
    By modifying the nrf5340_audio_dk_devices.json file, I am able to see the change in audio DK LED colour as per the "nrf5340_audio_dk_dev" value. However, for our application where I need to use a file from the SD card and play on the device itself instead of transmitting/receiving from other device. So, please let me know what modification I have to make in the existing audio application.

    If you are able to build the application and change the LED color then you have all the dependencies you need to work with the reference application (apart from the LC3 access).
    There is currently no support for outputting directly from the SD card in the nRF5340 audio reference application, but you can implement this yourself using the sd_card.c/.h files as a reference for this.

    Best regards,
    Karl

Related