Skip to content

Commit 19c67d5

Browse files
gianstacarlescufi
authored andcommitted
debug: tracing: Add Segger RTT init mode configuration
Allows RTT inizialization function to either init Cntrol Block always or initialize only after checking it it's not already initialized by another program, typically by a bootloader. Signed-off-by: Giancarlo Stasi <[email protected]>
1 parent 2f8af56 commit 19c67d5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

modules/segger/Kconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,23 @@ config SEGGER_RTT_SECTION_CUSTOM_NAME
103103

104104
endif
105105

106+
choice SEGGER_RTT_INIT_MODE
107+
prompt "RTT Initialization mode"
108+
help
109+
RTT inizialization function can avoid re-init of Cntrol Block
110+
if another program (e.g. bootloader) has already initialized it.
111+
default SEGGER_RTT_INIT_MODE_STRONG_CHECK if SEGGER_RTT_SECTION_CUSTOM
112+
default SEGGER_RTT_INIT_MODE_STRONG_CHECK
113+
114+
config SEGGER_RTT_INIT_MODE_ALWAYS
115+
bool "RTT Initialization done without conditions"
116+
117+
config SEGGER_RTT_INIT_MODE_STRONG_CHECK
118+
bool "RTT Initialization done if full check on Control Block ID fails"
119+
120+
config SEGGER_RTT_INIT_MODE_WEAK_CHECK
121+
bool "RTT Initialization done if partial check on Control Block ID fails"
122+
123+
endchoice
124+
106125
endif

0 commit comments

Comments
 (0)