Skip to content

Commit

Permalink
debug: tracing: Add Segger RTT init mode configuration
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
giansta committed Apr 25, 2024
1 parent b72cf05 commit 42f1b2c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions modules/segger/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,23 @@ config SEGGER_RTT_SECTION_CUSTOM_NAME

endif

choice SEGGER_RTT_INIT_MODE
prompt "RTT Initialization mode"
help
RTT inizialization function can avoid re-init of Cntrol Block
if another program (e.g. bootloader) has already initialized it.
default SEGGER_RTT_INIT_MODE_STRONG_CHECK if SEGGER_RTT_SECTION_CUSTOM
default SEGGER_RTT_INIT_MODE_STRONG_CHECK

config SEGGER_RTT_INIT_MODE_ALWAYS
bool "RTT Initialization done without conditions"

config SEGGER_RTT_INIT_MODE_STRONG_CHECK
bool "RTT Initialization done if full check on Control Block ID fails"

config SEGGER_RTT_INIT_MODE_WEAK_CHECK
bool "RTT Initialization done if partial check on Control Block ID fails"

endchoice

endif

0 comments on commit 42f1b2c

Please sign in to comment.