diff --git a/modules/segger/Kconfig b/modules/segger/Kconfig index 8536d72a8e45e9..fd04ac99b0f82c 100644 --- a/modules/segger/Kconfig +++ b/modules/segger/Kconfig @@ -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