OpenOCD
segger_sysview.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-1-Clause */
2 /* SPDX-FileCopyrightText: (c) 1995-2021 SEGGER Microcontroller GmbH. All rights reserved. */
3 /* SPDX-FileContributor: 2023 Espressif Systems (Shanghai) CO LTD */
4 
5 /*
6 * The contend below is extracted from files SEGGER_SYSVIEW.h and SEGGER_SYSVIEW_Int.h in:
7 * https://www.segger.com/downloads/systemview/systemview_target_src
8 * SystemView version: 3.42
9 */
10 
11 #ifndef OPENOCD_TARGET_SEGGER_SYSVIEW_H
12 #define OPENOCD_TARGET_SEGGER_SYSVIEW_H
13 
14 #define SYSVIEW_EVTID_NOP 0 /* Dummy packet. */
15 #define SYSVIEW_EVTID_OVERFLOW 1
16 #define SYSVIEW_EVTID_ISR_ENTER 2
17 #define SYSVIEW_EVTID_ISR_EXIT 3
18 #define SYSVIEW_EVTID_TASK_START_EXEC 4
19 #define SYSVIEW_EVTID_TASK_STOP_EXEC 5
20 #define SYSVIEW_EVTID_TASK_START_READY 6
21 #define SYSVIEW_EVTID_TASK_STOP_READY 7
22 #define SYSVIEW_EVTID_TASK_CREATE 8
23 #define SYSVIEW_EVTID_TASK_INFO 9
24 #define SYSVIEW_EVTID_TRACE_START 10
25 #define SYSVIEW_EVTID_TRACE_STOP 11
26 #define SYSVIEW_EVTID_SYSTIME_CYCLES 12
27 #define SYSVIEW_EVTID_SYSTIME_US 13
28 #define SYSVIEW_EVTID_SYSDESC 14
29 #define SYSVIEW_EVTID_USER_START 15
30 #define SYSVIEW_EVTID_USER_STOP 16
31 #define SYSVIEW_EVTID_IDLE 17
32 #define SYSVIEW_EVTID_ISR_TO_SCHEDULER 18
33 #define SYSVIEW_EVTID_TIMER_ENTER 19
34 #define SYSVIEW_EVTID_TIMER_EXIT 20
35 #define SYSVIEW_EVTID_STACK_INFO 21
36 #define SYSVIEW_EVTID_MODULEDESC 22
37 
38 #define SYSVIEW_EVTID_INIT 24
39 #define SYSVIEW_EVTID_NAME_RESOURCE 25
40 #define SYSVIEW_EVTID_PRINT_FORMATTED 26
41 #define SYSVIEW_EVTID_NUMMODULES 27
42 #define SYSVIEW_EVTID_END_CALL 28
43 #define SYSVIEW_EVTID_TASK_TERMINATE 29
44 
45 #define SYSVIEW_EVTID_EX 31
46 //
47 // SystemView extended events. Sent with ID 31.
48 //
49 #define SYSVIEW_EVTID_EX_MARK 0
50 #define SYSVIEW_EVTID_EX_NAME_MARKER 1
51 #define SYSVIEW_EVTID_EX_HEAP_DEFINE 2
52 #define SYSVIEW_EVTID_EX_HEAP_ALLOC 3
53 #define SYSVIEW_EVTID_EX_HEAP_ALLOC_EX 4
54 #define SYSVIEW_EVTID_EX_HEAP_FREE 5
55 
56 #define SYSVIEW_SYNC_LEN 10
57 
58 #define SYSVIEW_EVENT_ID_MAX (200)
59 
60 //
61 // Commands that Host can send to target
62 //
63 enum {
72  // Extended commands: Commands >= 128 have a second parameter
74 };
75 
76 /* Minimum compatible SEGGER SystemView tool version */
77 #define SYSVIEW_MIN_VER_STRING "SEGGER SystemViewer V2.42"
78 
79 #endif
@ SEGGER_SYSVIEW_COMMAND_ID_HEARTBEAT
@ SEGGER_SYSVIEW_COMMAND_ID_STOP
@ SEGGER_SYSVIEW_COMMAND_ID_GET_SYSDESC
@ SEGGER_SYSVIEW_COMMAND_ID_GET_SYSTIME
@ SEGGER_SYSVIEW_COMMAND_ID_GET_MODULEDESC
@ SEGGER_SYSVIEW_COMMAND_ID_START
@ SEGGER_SYSVIEW_COMMAND_ID_GET_NUMMODULES
@ SEGGER_SYSVIEW_COMMAND_ID_GET_MODULE
@ SEGGER_SYSVIEW_COMMAND_ID_GET_TASKLIST