Part Number: CC2640R2F
Hi
I am using stack simplelink_cc2640r2_sdk_1_35_00_33 with the PDM driver included.
I noticed that when I have limited HEAP and there are failures allocating space on the heap for the PDM buffers, the variable that limits the number of Buffers (harAudioBufCount) remains with an offset (1, 2 or more) when audio is stopped streaming.
This causes problems in the audio which becomes unintelligible for voice search features.
If I am able to find enough space for the heap and avoid any errors allocating space during malloc calls, then the harAudioBufCount variable always returns to 0 and there are no problems.
My question is:
Why is this error occurring? How do I solve it? I am struggling at the moment to find enough space for the HEAP and I am out of time in terms of project deadlines.
regards
Rui