I am developing a board with the nrf5340, and using a PDM microphone for audio input.
I have used the same microphone on the nrf52832 with the nrf PDM driver with success.
However, on the nrf5340 under Zephyr, I get the following error as soon as I start the PDM recording:
[00:00:33.402,099] <inf> base: pdmmgr : rec start turning power on
[00:00:33.409,240] <inf> base: pdmmgr : rec start configuring pinctrl
[00:00:33.416,137] <inf> base: pdmmgr : rec start enabling irq
[00:00:33.422,424] <inf> base: pdmmgr : rec start nrfx_pdm_init()
[00:00:33.428,985] <inf> base: pdmmgr : rec start nrfx_pdm_start()
[00:00:33.481,323] <err> os: >>> ZEPHYR FATAL ERROR 1: Unhandled interrupt on CPU 0
[00:00:33.489,624] <err> os: Current thread: 0x200052c8 (main)
[00:00:33.496,124] <err> os: Halting system
This occurs when I call nrfx_pdm_start()...
My code:
What am I not initialising correctly?