You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the libopencm3-examples repository there is a usart_printf example. When compiling the examples this printf("float: %f", 3.21f); works as expected.
Using this repository (libopencm3-template), the printf("float: %f", 3.21f); doesn't do anything (skips the line). Some searching did reveal you should add LDFLAGS += -u _printf_float to the make file. This didn't
work for me. Any pointers on how to make this work?
update:
Got it working, added LDFLAGS += -u _printf_float to the Makefile. Not sure what went wrong the first time.
The text was updated successfully, but these errors were encountered:
In the libopencm3-examples repository there is a usart_printf example. When compiling the examples this
printf("float: %f", 3.21f);
works as expected.Using this repository (libopencm3-template), the
printf("float: %f", 3.21f);
doesn't do anything (skips the line). Some searching did reveal you should addLDFLAGS += -u _printf_float
to the make file. This didn'twork for me. Any pointers on how to make this work?
update:
Got it working, added
LDFLAGS += -u _printf_float
to theMakefile
. Not sure what went wrong the first time.The text was updated successfully, but these errors were encountered: