Below is the tips for printing the floating values using KDS3.0 and KSDK1.2.0
While I was using FRDM-KL46Z freedom board to interface STBC-AGM01 sensor board i was suppose to print the sensor data (floating values) on UART terminal i tried to add below includes in the linker options
Cross ARM C++ Linker > Miscellaneous" > other linker flag>
"-nanolibc -u _printf_float" which did not worked as expected
so the solution to print floating values in KSDK is in "print_scan.h" file
navigate to project folder > SDK > Utilities > src > print_scan.h as shown below
uncomment the line:
//#define PRINTF_FLOAT_ENABLE 1
to enable the printing of floating point variables.
just to test whether it prints floating value i had added fsl_debug_console component and assigned the TX/RX port pin and added below lines in main.c
then build your project and execute it ypu can see the floating point value printed on hyperterminal as shown below: