PDM2PCM library on STM32N6: Target is not responding
Hey there,
I'm currently trying to port a project that I was using successfully on the STM32U5A5, to the STM32N657.
The project utilises the PDM2PCM library to convert a PDM audio stream received from a MEMS microphone via the SAI interface of the MCU into PCM audio data. It is based on an example from the STM32U3 MCU firmware package (STM32Cube/Repository/STM32Cube_FW_U3_V1.3.0/Projects/NUCLEO-U385RG-Q/Examples/SAI/SAI_AudioRecord_PDM), parts of which I have incorporated into my own application on the STM32U5A5.
I'm now trying to port this project to the STM32N657 on a NUCLEO-N657X0-Q board. I've found the matching PDM2PCM library for the N6's M55 core in the X-CUBE-AUDIO-KIT as mentioned here.
Now, when I integrate this library (libPDMFilter_CM55_GCC_wc32.a) into my project and start the debugger of the STM32CubeIDE it starts printing "Target is not responding, retrying..." in the debugging console as soon as the program flow reaches the call to the PDM2PCM_init function of the library.
It tried to find out if any of the fault handler functions (HardFault_Handler, etc.) are being called but it seems like the debugger just crashes (I have to unplug and plug the USB cable so that I can get it to work again).
I'm just running out of ideas here so any hint or help would be highly appreciated!
Thanks in advance and best regards,
Jens
