Nrf52840 recording failed

Hi:

Use sdk17.1.0 and 52840.

Recording results:(The level of sound is low.)

Raw data of recording:

audio7.zip

This is code:

pdm_mic.zip

  • Hi 

    I am not sure if writing to the SD card directly from the PDM handler is properly tested, this could prove problematic depending on how much time it takes to write to the SD card. 

    Would you be able to schedule the write in the handler, but then perform the write from the main loop instead? 

    Essentially you need to set some flag or counter in the PDM handler, and then check this flag in the main loop before executing the write. 

    Best regards
    Torbjørn

Related