Info is a bit short, what is the definition of MyVar? Better post your complete project.
this should work
#if defined (__GNUC__)
/* Add an explicit reference to the floating point printf library */
/* to allow the usage of floating point conversion specifiers. */
/* This is not linked in by default with the newlib-nano library. */
asm (".global _printf_float");
char strMsg1;//output UART buffer
sprintf(strMsg1, "%f", 0.01);
I tried the above sugessions. The UART is still not printing the data. What is going on? It worked just fine prior to release 3.0.
Kind of a wild guess: try to increase the head size for your project. There were reports that the 128 bytes its now set to by default might be too small.
I adjusted the heap size and that fixed my original problem. I now am having a new problem. The UART arbitrallarly simply just stops writing floating point data to the UART.
I was thinking the interrupt was the cause, but I took it out of the loop. Same problem.
Is there a memory leak or something going on?
My updated project is attached.