I am working on a custom development board with nRF5340 MCU. I have used two mics and integrated the LC3 codec library. I have assigned the following spaces in the prj.conf:
CONFIG_MAIN_STACK_SIZE=15480
CONFIG_HEAP_MEM_POOL_SIZE=16384
I also have assigned the stack size of 24576 for the associated thread. I also tried following all the above steps. When I compile the code for a single mic, the RAM utilization reaches to 93% and works fine. But, when I use two mics simultaneously, the RAM utilization goes to almost 100% as follows:
Memory region Used Size Region Size %age Used
FLASH: 567800 B 876032 B 64.81%
RAM: 450404 B 440 KB 99.97%
IDT_LIST: 0 GB 32 KB 0.00%
Hence, the mics are not working as expected. It would be great if I could get a reference.