Skip to content

Commit

Permalink
Minimum not-working example for issue 30055
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjaeger committed May 25, 2021
1 parent 457a28b commit 3bf40cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions samples/hello_world/prj.conf
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# nothing here

CONFIG_MAIN_STACK_SIZE=16200

CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
3 changes: 2 additions & 1 deletion samples/hello_world/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

#include <zephyr.h>
#include <sys/printk.h>
#include <stdio.h>

void main(void)
{
printk("Hello World! %s\n", CONFIG_BOARD);
printf("Hello World! %s %f\n", CONFIG_BOARD, 3.14F);
}

0 comments on commit 3bf40cb

Please sign in to comment.