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
Describe the bug
Terminal unable to print float value if these two config enabled.
CONFIG_NEWLIB_LIBC=y
CONFIG_CBPRINTF_FP_SUPPORT=y
If CBPRINTF_FP_SUPPORT is set only, it can correctly print float to terminal.
I found out this issue when I testing samples/sensor/lsm6dso on nrf52dk_nrf528322.
I think this issue is related to #37777
Thank you, your solution works.
I just found out that newlib has its own implementation of printf and enabling newlib override cbprintf.
Sorry for the dumb question.
Describe the bug
Terminal unable to print float value if these two config enabled.
If CBPRINTF_FP_SUPPORT is set only, it can correctly print float to terminal.
I found out this issue when I testing samples/sensor/lsm6dso on nrf52dk_nrf528322.
I think this issue is related to #37777
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Terminal print blank if CONFIG_NEWLIB_LIBC=y & CONFIG_CBPRINTF_FP_SUPPORT=y
It can correctly print float if remove CONFIG_NEWLIB_LIBC
Impact
I have to replaced all printf with printk in order to show float on terminal.
Logs and console output
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: