drivers/segger: Add support for System View post-mortem mode

Add a configuration option CONFIG_SEGGER_SYSVIEW_POST_MORTEM to enable
logging continuously into a circular buffer

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
This commit is contained in:
Jukka Laitinen 2025-06-04 15:28:33 +03:00 committed by Xiang Xiao
parent e81b441f4b
commit 82e17623b1
2 changed files with 14 additions and 0 deletions

View file

@ -246,6 +246,12 @@ config SEGGER_SYSVIEW_RAM_BASE
---help---
The lowest RAM address used for IDs
config SEGGER_SYSVIEW_POST_MORTEM
bool "Segger System View post-mortem mode"
default n
---help---
Configures the System View to record continuously in circular buffer
endif # SEGGER_SYSVIEW
endif # DRIVERS_NOTE

View file

@ -124,4 +124,12 @@ extern spinlock_t g_segger_lock;
#define SEGGER_SYSVIEW_PRINTF_IMPLICIT_FORMAT 1
/* Segger sysview post-mortem (circular buffer) mode */
#ifdef CONFIG_SEGGER_SYSVIEW_POST_MORTEM
# define SEGGER_SYSVIEW_POST_MORTEM_MODE 1
#else
# define SEGGER_SYSVIEW_POST_MORTEM_MODE 0
#endif
#endif /* __DRIVERS_SEGGER_CONFIG_SEGGER_RTT_CONF_H */