Closed martinjaeger closed 2 years ago
You may use CONFIG_MINIMAL_LIBC with some minor adaptions. The only function that is really needed is strtod.
See:
I had the problem that it didn't find lroundf
from math.h
with only CONFIG_MINIMAL_LIBC
. Enabling CONFIG_MINIMAL_LIBC_MALLOC
did not make a difference.
I had the problem that it didn't find lroundf from math.h with only CONFIG_MINIMAL_LIBC.
Sorry, I have 64 bit support enabled always - thus only using llroundf. In case you use gcc this may help instead:
static inline long int lroundf(float x) { return __builtin_lroundf(x); };
See also https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html
Thanks, good hint. Yes, we're always using GCC, as Zephyr doesn't support any other compiler so far. So that might be an option.
ThingSet requires full libc (newlib-nano). This should be enabled in Zephyr by selecting
CONFIG_REQUIRES_FULL_LIBC=y
.