Skip to content

Commit 6ee8182

Browse files
stephanosionashif
authored andcommitted
samples: tflite-micro: hello_world: Increase main stack size
This commit increases the main stack size to 2048 since the current stack size is insufficient for the `qemu_x86` board (the default stack size is 1024 for that board) and results in a stack overflow in the main thread. Note that this is required because the newlib full variant, which is used by this sample, included in the Zephyr SDK 0.13.2 now has an increased stack usage requirement due to enabling the C99 format specifier support. For more details, refer to the issue #40469 [1]. [1] #40469 (comment) Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent f38a6dc commit 6ee8182

File tree

1 file changed

+1
-0
lines changed
  • samples/modules/tflite-micro/hello_world

1 file changed

+1
-0
lines changed

samples/modules/tflite-micro/hello_world/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ CONFIG_CPLUSPLUS=y
1616
CONFIG_LIB_CPLUSPLUS=y
1717
CONFIG_NEWLIB_LIBC=y
1818
CONFIG_TENSORFLOW_LITE_MICRO=y
19+
CONFIG_MAIN_STACK_SIZE=2048

0 commit comments

Comments
 (0)