Skip to content
Discussion options

You must be logged in to vote

That's not how you do it in Zephyr.

apply the patch bellow and run the following command. This means that

  • You are using Picolibc instead of minimal libc: CONFIG_PICOLIBC=y
  • You tell you want to print float by CONFIG_PICOLIBC_IO_FLOAT=y

You can use interactive UI if you want: https://docs.zephyrproject.org/latest/build/kconfig/menuconfig.html

rm -rf build && west build -b qemu_cortex_m3 samples/hello_world -t run
diff --git a/samples/hello_world/prj.conf b/samples/hello_world/prj.conf
index b2a4ba59104..6bea429b0f3 100644
--- a/samples/hello_world/prj.conf
+++ b/samples/hello_world/prj.conf
@@ -1 +1,2 @@
-# nothing here
+CONFIG_PICOLIBC=y
+CONFIG_PICOLIBC_IO_FLOAT=y
diff --git a/samples/…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aravinth-kalai
Comment options

Answer selected by aravinth-kalai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants