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
Migrating to NCS 3.4.0, zephyr 4.4.0, it seems that the newlib_libc is not longer available and picolibc must be used.
So I tried to switch to picolibc, but my code is using cbprintf and I get faced to an linker error
"undefined reference to `cbprintf' ".
I use:
# General config
# gone with NCS 3.4.0
#CONFIG_NEWLIB_LIBC=y
#CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_PICOLIBC=y
CONFIG_PICOLIBC_IO_FLOAT=y
CONFIG_CBPRINTF_COMPLETE=y
The doc - picolibc mentions cbprintf.
The migration guides also don't mention something recently about cbprintf.
The recommendation from Nordic - DevZone was to add " target_sources(app PRIVATE ${ZEPHYR_BASE}/lib/os/cbprintf.c) " to the projects CMakeLists.txt, but that seems to me very strange.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Migrating to NCS 3.4.0, zephyr 4.4.0, it seems that the newlib_libc is not longer available and picolibc must be used.
So I tried to switch to picolibc, but my code is using
cbprintfand I get faced to an linker error"undefined reference to `cbprintf' ".
I use:
From the lib/os/CMakeLists.txt:
So, I really start to wonder, what I miss.
The doc - picolibc mentions
cbprintf.The migration guides also don't mention something recently about
cbprintf.The recommendation from Nordic - DevZone was to add " target_sources(app PRIVATE ${ZEPHYR_BASE}/lib/os/cbprintf.c) " to the projects CMakeLists.txt, but that seems to me very strange.
All reactions