chore(debug): sysView support (#6303)

This commit is contained in:
3djc
2025-06-17 13:23:31 +10:00
committed by GitHub
parent 8eb144feca
commit 128771c43d
39 changed files with 13298 additions and 8 deletions
+20 -1
View File
@@ -309,9 +309,28 @@ if(DEBUG STREQUAL RTT_NO_USB)
add_definitions(-DDEBUG_DISABLE_USB)
endif()
if(DEBUG STREQUAL RTT_SYSVIEW)
set(DEBUG ON)
set(DEBUG_SEGGER_RTT ON)
set(DEBUG_SEGGER_SYSVIEW ON)
endif()
if(DEBUG_SEGGER_RTT AND NOT NATIVE_BUILD)
add_definitions(-DDEBUG_SEGGER_RTT -DSEGGER_RTT_BUFFER_SECTION=".ram")
set(SRC ${SRC} ${THIRDPARTY_DIR}/Segger_RTT/RTT/SEGGER_RTT.c)
include_directories(${THIRDPARTY_DIR}/Segger/Config)
include_directories(${THIRDPARTY_DIR}/Segger/Sample)
include_directories(${THIRDPARTY_DIR}/Segger/SEGGER)
set(SRC ${SRC} ${THIRDPARTY_DIR}/Segger/SEGGER/SEGGER_RTT.c)
set(SRC ${SRC} ${THIRDPARTY_DIR}/Segger/SEGGER/SEGGER_RTT_ASM_ARMv7M.S)
set(SRC ${SRC} ${THIRDPARTY_DIR}/Segger/SEGGER/SEGGER_RTT_printf.c)
endif()
if(DEBUG_SEGGER_SYSVIEW AND NOT NATIVE_BUILD)
add_definitions(-DDEBUG_SEGGER_SYSVIEW)
include_directories(${THIRDPARTY_DIR}/Segger/Sample/FreeRTOSV11)
set(SRC ${SRC} ${THIRDPARTY_DIR}/Segger/SEGGER/SEGGER_SYSVIEW.c)
set(SRC ${SRC} ${THIRDPARTY_DIR}/Segger/Sample/FreeRTOSV11/SEGGER_SYSVIEW_FreeRTOS.c)
set(SRC ${SRC} ${THIRDPARTY_DIR}/Segger/Sample/FreeRTOSV11/Config/Cortex-M/SEGGER_SYSVIEW_Config_FreeRTOS.c)
endif()
if(DEBUG_WINDOWS)