Skip to content

Commit

Permalink
[Telink] Optimize MCUBoot log level configs
Browse files Browse the repository at this point in the history
  • Loading branch information
s07641069 committed Feb 3, 2025
1 parent e767cbe commit 37b6a19
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
16 changes: 7 additions & 9 deletions config/telink/app/bootloader.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ CONFIG_BOOT_VALIDATE_SLOT0=y
# Maximum signed image size: 512 * 4096 = 2M Bytes
CONFIG_BOOT_MAX_IMG_SECTORS=512

# Sets log level for modules which don't specify it explicitly.
# When set to 0 it means log will not be activated for those modules.
# Levels are:
# - 0 OFF, do not write by default
# - 1 ERROR, default to only write LOG_LEVEL_ERR
# - 2 WARNING, default to write LOG_LEVEL_WRN
# - 3 INFO, default to write LOG_LEVEL_INFO
# - 4 DEBUG, default to write LOG_LEVEL_DBG
CONFIG_LOG_DEFAULT_LEVEL=3
# MCUBOOT log levels are:
# - OFF, LOG_LEVEL_ERR_OFF
# - ERROR, LOG_LEVEL_ERR
# - WARNING, LOG_LEVEL_WRN
# - INFO, LOG_LEVEL_INF
# - DEBUG, LOG_LEVEL_DBG
CONFIG_MCUBOOT_LOG_LEVEL_INF=y
16 changes: 7 additions & 9 deletions config/telink/app/bootloader_compress_lzma.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@ CONFIG_BOOT_VALIDATE_SLOT0=y
# Maximum signed image size: 512 * 4096 = 2M Bytes
CONFIG_BOOT_MAX_IMG_SECTORS=512

# Sets log level for modules which don't specify it explicitly.
# When set to 0 it means log will not be activated for those modules.
# Levels are:
# - 0 OFF, do not write by default
# - 1 ERROR, default to only write LOG_LEVEL_ERR
# - 2 WARNING, default to write LOG_LEVEL_WRN
# - 3 INFO, default to write LOG_LEVEL_INFO
# - 4 DEBUG, default to write LOG_LEVEL_DBG
CONFIG_LOG_DEFAULT_LEVEL=3
# MCUBOOT log levels are:
# - OFF, LOG_LEVEL_ERR_OFF
# - ERROR, LOG_LEVEL_ERR
# - WARNING, LOG_LEVEL_WRN
# - INFO, LOG_LEVEL_INF
# - DEBUG, LOG_LEVEL_DBG
CONFIG_MCUBOOT_LOG_LEVEL_INF=y

# LZMA used sys_heap based allocators
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=78000
Expand Down

0 comments on commit 37b6a19

Please sign in to comment.