This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PWM Audio driver

Hello,

I just wanted to throw in that for a hobby project I created a PWM audio driver, with which one can play back 8-bit audio data very easily. Since it may be useful for others, too, I have uploaded the sources to https://nrf52-pwm-audio.sourceforge.io/, along with SES project files for nRF52832 and nRF52840. Plus, there you will also find a link to a video to see what you can do with the driver.

Cheers,
Tamas

  • Hi tamas,

    I read more about MP3 decoding and yes, for MP3 1152 is a fixed frame size for mono. FIFO totally makes sense, but increasing the PWM buffer keeps code simpler.

    Currently I am struggling with "Data Access Violation". I already tried to change CONFIG_MAIN_STACK_SIZE and CONFIG_HEAP_MEM_POOL_SIZE, but that doesn't help. Maybe you know a working memory setting or what needs to be tweaked.

    Cheers,
    Felix

Related