STM32L031 region `FLASH' overflowed by 5416 bytes when adding -u printf_float flag
Hello. In my project, I would like to printf float type variables such as:
float t_degC = -45 + 175 * t_ticks/65535;
float rh_pRH = -6 + 125 * rh_ticks/65535;
printf("t_degC = %.2f \n",t_degC);
printf("rh_pRH = %.2f \n",rh_pRH);
Initially, I had the following error:

So I have enabled the flag as suggested by the warning:

After adding this flag, I can no longer compile my project as I am getting the following errors:
c:\st\stm32cubeide_1.10.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: SHT40_test.elf section `.text' will not fit in region `FLASH'
c:\st\stm32cubeide_1.10.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: region `FLASH' overflowed by 5416 bytes
This is quite strange since my project is pretty much blank. I only have a couple lines of code and it says that it cannot fit in the FLASH section? What is up with the linker flag that I have added to allow printf float variables?
Is it normal that a almost blank project for STM32L031 already uses more than 60% of total flash memory?

