I'm trying to add PDM into my project but can't get it to compile. When I try to call
return nrfx_pdm_init(&pdm_cfg, drv_audio_pdm_event_handler);
I get the error "main() undefined reference to `nrfx_pdm_init'"
This looks like it it is in the file nrfx_pdm.c, which is included in my project - but the code is greyed out from the line
#if NRFX_CHECK(NRFX_PDM_ENABLED)
But NRFX PDM is enabled in my sdk_config.h
// <e> NRFX_PDM_ENABLED - nrfx_pdm - PDM peripheral driver //========================================================== #ifndef NRFX_PDM_ENABLED #define NRFX_PDM_ENABLED 1 #endif
I've run out of ideas to check - can you give me any clue?