cancel
Showing results for 
Search instead for 
Did you mean: 

How to Minimize Flash Consumption of pdm2pcm lib in STM32CubeIDE Using GCC?

Nicottone
Associate

Hello everyone,

I'm currently developing an application that uses the pdm2pcm library to convert digital audio from a MEMS microphone. I'm working in STM32CubeIDE, where I manually linked this library. I have access to both GCC and IAR pre-compiled versions of the library.

Currently, I'm using the GCC version, but it's taking up a substantial amount of flash memory—over 47 KB. According to the library's documentation, the expected flash usage is around 7 KB when compiled with IAR.

Does anyone know how to optimize flash usage for this library in GCC? Are there specific GCC flags or settings that could help reduce the memory footprint?

Thank you all in advance for your help!

0 REPLIES 0