I am using STM32CubeIDE with STM32G030F6Px Controller which have 64kB of Flash memory. Currently I am using 36.5kB of flash but when in add a few line of code in a function (Note CurrTemp is a global variable of uint8\_t)
i.e.

```c
 int16_t sensorValue, temperatureC, temperatureK;
 int32_t voltageOut;
 sensorValue = 0; voltageOut = 0; temperatureC = 0; temperatureK = 0;

 sensorValue = (int16_t)ADCRead();
 sensorValue = (int16_t)(4095.0 - sensorValue);
 voltageOut = (int32_t)((sensorValue * 3250.0) / 4095.0);

 temperatureK = (int16_t)(voltageOut / 10.0);
 temperatureC = (int16_t)(temperatureK - 273);
 CurrTemp = (uint8_t)temperatureC; 

```

I get Errors

```
c:\st\stm32cubeide_1.7.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: fan_retest.elf section `.text' will not fit in region `FLASH'
c:\st\stm32cubeide_1.7.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 2372 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:64: fan_retest.elf] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.

```

What's the issue I don't understand.