@@ -5,6 +5,18 @@ menuconfig PKG_USING_CMBACKTRACE
55
66if PKG_USING_CMBACKTRACE
77
8+ config CMBACKTRACE_FIRMWARE_NAME
9+ string "Firmware name for CmBacktrace log identification"
10+ default "rt-thread"
11+
12+ config CMBACKTRACE_HARDWARE_VER
13+ string "Hardware version for CmBacktrace log identification"
14+ default "1.0"
15+
16+ config CMBACKTRACE_SOFTWARE_VER
17+ string "Software version for CmBacktrace log identification"
18+ default "1.0"
19+
820 choice
921 prompt "CPU Platform"
1022 default PKG_CMBACKTRACE_PLATFORM_M0_M0PLUS if ARCH_ARM_CORTEX_M0
@@ -67,7 +79,6 @@ if PKG_USING_CMBACKTRACE
6779 default y
6880 depends on CMB_USING_FAL_FLASH_LOG
6981 select RT_USING_DFS if RT_VER_NUM < 0x40100
70- select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
7182
7283 config CMB_FAL_FLASH_LOG_PART
7384 string "The flash partition name for saving log"
@@ -76,12 +87,31 @@ if PKG_USING_CMBACKTRACE
7687 help
7788 The patition name is defined in FAL partiton table. Please make sure it has enough space.
7889
90+ config CMB_FLASH_LOG_PART_WG
91+ int "Flash log partition write granularity (in bytes)"
92+ default 8
93+ help
94+ Specifies the write granularity of the flash memory used for the log partition.
95+ This value must be a power of 2 (e.g., 1, 2, 4, 8, 16) and should match the
96+ 'write_gran' property of your flash device in the FAL configuration.
97+ Check your MCU's datasheet or BSP's FAL setup for the correct value.
98+
7999 config CMB_LOG_FILE_PATH
80100 string "The backup log file's path"
81101 default "/log/cmb.log"
82102 depends on CMB_USING_FAL_BACKUP_LOG_TO_FILE
83103 endif
84104
105+ config PKG_CMBACKTRACE_ENABLE_TEST
106+ bool "Enable MSH test commands for CmBacktrace"
107+ default n
108+ help
109+ If you select this option, MSH commands like 'cmb_test' will be
110+ compiled. This allows you to trigger faults (e.g., division by
111+ zero, unaligned access) from the console to test the backtrace
112+ functionality.
113+ Disable this for release versions to save code size.
114+
85115 config PKG_CMBACKTRACE_PATH
86116 string
87117 default "/packages/tools/CmBacktrace"
0 commit comments