Hi Stephen
Thank you for the project. A project is like a thousand words ;-)
I think there is an issue as you sate in the printf routine.
Attached is my updated fsl_debug_console.c that made two modifications in DbgConsole_ConvertFloatRadixNumToString() starting at line 611 .
if (r >= 0)
{
fa = fractpart + (double)0.5;
if (fa >= pow(10, precision_width))
{
fractpart++; //DES was intpart++;
}
}
else
{
fa = fractpart - (double)0.5;
if (fa <= pow(-10, precision_width))
{
fractpart--; //DES was intpart--;
}
}
Please let me know if this resolves your issue and I will report it to the KSDK_v2 team formally.
Sorry for the hassles.
Regards,
David