nRF5340 Audio DK: Playing an audio file directly from flash memory

Hello,

I'm using the audio application provided by nRF. I want my device to play an audio file containing a sound saying "Connected" whenever the board is connected to the audio device (like a mobile phone). Is it possible to store files directly in the flash memory without an SD Card? If yes, can you please provide a reference or source for the same. 

If I had to store the file in an external memory, how can I interface an external memory block to the development board?

  • Hi,

    You can store files on the internal flash if you create a storage partition, but from what I see we don't have anything that can play an audio file from said storage. If you want to play audio files stored in flash memory, you would need to implement this functionality yourself. You can use the sd_card.c/.h files in the sdk-nrf repository as a reference for this implementation.

    Kind regards,
    Andreas

Related