Solved
The float formatting support is not enabled
- November 25, 2024
- 2 replies
- 2587 views
Hello All,
I am getting this error while compiling the project " The float formatting support is not enabled ".
I have checked use float with "printf from new lib-nano" in MCU/MPU settings save and recompile the problem didn't go!!
I have added manually "-u_printf_float" in MCU/MPU GCC linker with no success.
I am using the latest version of stm32cubeide 1.16.1 the MCU is stm32g031f6p6.
my code in while loop:
HAL_ADC_Start(&hadc1);
HAL_ADC_PollForConversion(&hadc1, 20);
voltage = (HAL_ADC_GetValue(&hadc1)/4096) * 3.3f;
printf("Voltage = %0.2f\n", voltage);
HAL_Delay(1000);
