Hi All,
I have a problem using DbgConsole_Printf for printing negative floats on a custom board using mcuxpresso IDE 11.8 and mcuxpresso SDK version 2.12.
I have isolated the problem and see the same behavior with the demo projects on an lpcxpresso55s36 eval-board with the newest IDE and SDK versions. I went through a bunch of posts but can't seem to solve the problem.
How to reproduce the problem:
Using mcuxpresso IDE 11.9.0 open "Import SDK example(s)"...
select lpcxpresso55s36 board.
select the "hello_world" project under "demo_apps" and click next.
Check the box "Redlib: Use floating point version of printf" and leave other settings at default values.

I have modified main() by adding 4 lines using PRINTF.
PRINTF("hello world.\r\n");
PRINTF("%f\r\n", (float) 12.34);
PRINTF("%f\r\n", (float) -12.34);
PRINTF("%f\r\n", (float) 1);
PRINTF("%f\r\n", (float) -1);
All five lines print. However, the negative floats are printed without a minus sign and with incorrect characters. The output is:
hello world.
12.340000
12./40000
1.000000
1.//////
The error seems to arise in "DbgConsole_ConvertFloatRadixNumToString" when it scans through the digits of the negative fractpart.
Please let me know if I need to provide more information.
How do I use the debug console with negative floats?
Kind regards Lauge