Loading boot/zephyr/Kconfig +12 −0 Changes for boot/zephyr/Kconfig: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -247,6 +247,18 @@ module = MCUBOOT module-str = MCUBoot bootloader source "subsys/logging/Kconfig.template.log_config" config MCUBOOT_LOG_THREAD_STACK_SIZE int "Stack size for the MCUBoot log processing thread" depends on LOG && !LOG_IMMEDIATE default 2048 if COVERAGE_GCOV default 1024 if NO_OPTIMIZATIONS default 1024 if XTENSA default 4096 if (X86 && X86_64) default 4096 if ARM64 default 768 help Set the internal stack size for MCUBoot log processing thread. menuconfig MCUBOOT_SERIAL bool "MCUboot serial recovery" default n Loading boot/zephyr/main.c +1 −2 Changes for boot/zephyr/main.c: 1 added line, 2 removed lines. Original line number Diff line number Diff line Loading @@ -51,11 +51,10 @@ const struct boot_uart_funcs boot_funcs = { #else #include <logging/log_ctrl.h> #define BOOT_LOG_STACK_SIZE 768 #define BOOT_LOG_PROCESSING_INTERVAL 30 /* [ms] */ /* log are processing in custom routine */ K_THREAD_STACK_DEFINE(boot_log_stack, BOOT_LOG_STACK_SIZE); K_THREAD_STACK_DEFINE(boot_log_stack, CONFIG_MCUBOOT_LOG_THREAD_STACK_SIZE); struct k_thread boot_log_thread; volatile bool boot_log_stop = false; K_SEM_DEFINE(boot_log_sem, 1, 1); Loading Loading
boot/zephyr/Kconfig +12 −0 Changes for boot/zephyr/Kconfig: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -247,6 +247,18 @@ module = MCUBOOT module-str = MCUBoot bootloader source "subsys/logging/Kconfig.template.log_config" config MCUBOOT_LOG_THREAD_STACK_SIZE int "Stack size for the MCUBoot log processing thread" depends on LOG && !LOG_IMMEDIATE default 2048 if COVERAGE_GCOV default 1024 if NO_OPTIMIZATIONS default 1024 if XTENSA default 4096 if (X86 && X86_64) default 4096 if ARM64 default 768 help Set the internal stack size for MCUBoot log processing thread. menuconfig MCUBOOT_SERIAL bool "MCUboot serial recovery" default n Loading
boot/zephyr/main.c +1 −2 Changes for boot/zephyr/main.c: 1 added line, 2 removed lines. Original line number Diff line number Diff line Loading @@ -51,11 +51,10 @@ const struct boot_uart_funcs boot_funcs = { #else #include <logging/log_ctrl.h> #define BOOT_LOG_STACK_SIZE 768 #define BOOT_LOG_PROCESSING_INTERVAL 30 /* [ms] */ /* log are processing in custom routine */ K_THREAD_STACK_DEFINE(boot_log_stack, BOOT_LOG_STACK_SIZE); K_THREAD_STACK_DEFINE(boot_log_stack, CONFIG_MCUBOOT_LOG_THREAD_STACK_SIZE); struct k_thread boot_log_thread; volatile bool boot_log_stop = false; K_SEM_DEFINE(boot_log_sem, 1, 1); Loading