Open PiJoules opened 1 month ago
This is because LIBC_CONF_PRINTF_DISABLE_FLOAT
is set to true
for baremetal: https://github.com/llvm/llvm-project/blob/main/libc/config/baremetal/config.json#L8
Setting that to false
will enable floating point conversions in printf, but that will also increase binary size significantly.
Doubles and floats don't appear to be printed for cortex-m33. If I have
where
x
is a float, what will be printed isThe same goes for if
x
were a doubleLikewise
%g
doesn't seem to work eitherThe target flags used are