This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hi,
I want to use system_printf() for printing float values. I have made following settings in CCS (Version 6.2):-
1. Set Project Properties->Build->Advanced Options->LibraryFUnctionsAssumptions->Level of printf/scanf support required to "full"
2. Set Project Properties->Build->Arm Compiler->Processor Options->Specify floating point support to FPv4SPD16
When I use %f as format specifier, instead of float value, "f" got printed.
How can I resolve this ?
Regards,
Sandhya
Hi Sandhya,
What is your System.extendedFormats set to in the .cfg file? By default we have %f disabled to minimize code footprint.
Also, what device are you on and what version of SYS/BIOS and XDCtools are you using?
Todd
Hi Todd,
I am working on TM4C1294KCPDT controller, SYS/BIOS version- 6.45, TI_RTOS - 2.16, XDCtools version - 3_32_01_22
Currently System.extendedFormats = "%$L%$S%$F" set in .cfg file.
Regards,
Sandhya
Sandhya,
To get float support, you need to add "%f" into the extendedFormats in the.cfg file.
Todd