From 3bf40cb11342cf29300ba54fce9d0d12e2496683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20J=C3=A4ger?= Date: Tue, 25 May 2021 09:09:48 +0200 Subject: [PATCH] Minimum not-working example for issue 30055 --- samples/hello_world/prj.conf | 5 +++++ samples/hello_world/src/main.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/samples/hello_world/prj.conf b/samples/hello_world/prj.conf index b2a4ba591044ee..6476d6a4e88dd7 100644 --- a/samples/hello_world/prj.conf +++ b/samples/hello_world/prj.conf @@ -1 +1,6 @@ # nothing here + +CONFIG_MAIN_STACK_SIZE=16200 + +CONFIG_NEWLIB_LIBC=y +CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y diff --git a/samples/hello_world/src/main.c b/samples/hello_world/src/main.c index 6c5c8a27dc698f..2aa30984cdf42c 100644 --- a/samples/hello_world/src/main.c +++ b/samples/hello_world/src/main.c @@ -6,8 +6,9 @@ #include #include +#include void main(void) { - printk("Hello World! %s\n", CONFIG_BOARD); + printf("Hello World! %s %f\n", CONFIG_BOARD, 3.14F); }