sprinf conversion of float is not working for STM32F7
Kevin is right :
“-u _printf_float” should be after “-specs=nano.specs”
Notes :
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -mfloat-abi=soft -specs=nosys.specs -specs=nano.specs -Xlinker -u _sprintf_float -Xlinker -u _printf_float -T”../STM32F103CBTx_FLASH.ld” ....
- There is no “_sprintf_float”
- You do not need Xlinker options
- You should have only one -u _printf_float
- In (project properties > C/C++ Build > Setings > Tool Settings (TAB) > MCU GCC Linker > Miscellaneous > Linker flags),you should have ” -specs=nosys.specs -specs=nano.specs -u _printf_float”