FreeRTOSConfig.h-->末尾加入:
#define INCLUDE_xTaskGetIdleTaskHandle 1
#define INCLUDE_pxTaskGetStackStart 1
FreeRTOS.h-->前面加入:
#include "SEGGER_SYSVIEW_FreeRTOS.h"
内核初始化后,启动之前加入:
SEGGER_SYSVIEW_Conf();
SEGGER_RTT.h修改:
//
// If IDE and core support the ASM version, enable ASM version by default
//
#if 0 //dolin edit
#if (_CC_HAS_RTT_ASM_SUPPORT && _CORE_HAS_RTT_ASM_SUPPORT)
#define RTT_USE_ASM (1)
#else
#define RTT_USE_ASM (0)
#endif
#else
#define RTT_USE_ASM (0)
#endif