I’m working on an embedded project for STM32 Bluepill. I was using Stm32CubeIDE for development but I recently transitioned to CLion (Jetbrains) as I really like that IDE. However, I noticed there’s a noticable size increase when building with CLion. My flash memory is almost at capacity at 63.8KB whereas when I build the same code in Stm32CubeIDE, the flash is only used up 48KB. The MCU has 64KB flash memory and I still need to add stuff so it seems if I continue using CLion, I’ll be running out of flash memory very soon.
My question is; what might explain this discrepency? The cMakeLists.txt file is identical in both IDEs and in fact, as far as I can tell, everything else seems to be identical but clearly, there’s a marked difference somewhere.
Any advice would be much appreciated.
4