Skip to content

Commit bd9a323

Browse files
Improve support for SystemView
1 parent 5bbc0a2 commit bd9a323

2 files changed

Lines changed: 91 additions & 110 deletions

File tree

Lines changed: 88 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,88 @@
1-
{
2-
"version": "2.0.0",
3-
"inputs": [
4-
{
5-
"id": "discoverCOM",
6-
"type": "pickString",
7-
"description": "Select COM Port for SETOOLS?",
8-
"options": [
9-
{
10-
"label": "Yes - Enable COM Port Discovery using command option",
11-
"value": "-d"
12-
},
13-
{
14-
"label": "No - COM port is already selected",
15-
"value": ""
16-
}
17-
],
18-
"default": ""
19-
}
20-
],
21-
"tasks": [
22-
{
23-
"label": "Alif: Install M55_HE or M55_HP debug stubs (single core configuration)",
24-
"type": "shell",
25-
"command": [
26-
"cp './.alif/M55_HE_mram_cfg.json' '${config:alif.setools.root}/build/config/M55_HE_mram_cfg.json';",
27-
"cp './.alif/M55_HP_mram_cfg.json' '${config:alif.setools.root}/build/config/M55_HP_mram_cfg.json';",
28-
"cp './.alif/M55_HP_mram_stub.bin' '${config:alif.setools.root}/build/images/M55_HP_mram_stub.bin';",
29-
"cp './.alif/M55_HE_mram_stub.bin' '${config:alif.setools.root}/build/images/M55_HE_mram_stub.bin';",
30-
"cd '${config:alif.setools.root}';",
31-
"./app-gen-toc -f 'build/config/${command:cmsis-csolution.getProcessorName}_mram_cfg.json';",
32-
"./app-write-mram -p ${input:discoverCOM};"
33-
],
34-
"windows": {
35-
"options": {
36-
"shell": {
37-
"executable": "powershell.exe",
38-
"args": [
39-
"-Command"
40-
]
41-
}
42-
}
43-
},
44-
"linux": {
45-
"options": {
46-
"shell": {
47-
"executable": "/bin/bash",
48-
"args": [
49-
"-c"
50-
]
51-
}
52-
}
53-
},
54-
"osx": {
55-
"options": {
56-
"shell": {
57-
"executable": "/bin/bash",
58-
"args": [
59-
"-c"
60-
]
61-
}
62-
}
63-
},
64-
"problemMatcher": []
65-
},
66-
{
67-
"label": "Alif: Install M55_HE and M55_HP debug stubs (dual core configuration)",
68-
"type": "shell",
69-
"command": [
70-
"cp './.alif/M55_HP_HE_mram_cfg.json' '${config:alif.setools.root}/build/config/M55_HP_HE_mram_cfg.json';",
71-
"cp './.alif/M55_HP_mram_stub.bin' '${config:alif.setools.root}/build/images/M55_HP_mram_stub.bin';",
72-
"cp './.alif/M55_HE_mram_stub.bin' '${config:alif.setools.root}/build/images/M55_HE_mram_stub.bin';",
73-
"cd '${config:alif.setools.root}';",
74-
"./app-gen-toc -f 'build/config/M55_HP_HE_mram_cfg.json';",
75-
"./app-write-mram -p ${input:discoverCOM};"
76-
],
77-
"windows": {
78-
"options": {
79-
"shell": {
80-
"executable": "powershell.exe",
81-
"args": [
82-
"-Command"
83-
]
84-
}
85-
}
86-
},
87-
"linux": {
88-
"options": {
89-
"shell": {
90-
"executable": "/bin/bash",
91-
"args": [
92-
"-c"
93-
]
94-
}
95-
}
96-
},
97-
"osx": {
98-
"options": {
99-
"shell": {
100-
"executable": "/bin/bash",
101-
"args": [
102-
"-c"
103-
]
104-
}
105-
}
106-
},
107-
"problemMatcher": []
108-
}
109-
]
110-
}
1+
{
2+
"version" : "2.0.0",
3+
"inputs" : [ {
4+
"id" : "discoverCOM",
5+
"type" : "pickString",
6+
"description" : "Select COM Port for SETOOLS?",
7+
"options" : [ {
8+
"label" : "Yes - Enable COM Port Discovery using command option",
9+
"value" : "-d"
10+
}, {
11+
"label" : "No - COM port is already selected",
12+
"value" : ""
13+
} ],
14+
"default" : ""
15+
} ],
16+
"tasks" : [ {
17+
"label" : "Alif: Install M55_HE or M55_HP debug stubs (single core configuration)",
18+
"type" : "shell",
19+
"command" : [ "cp './.alif/M55_HE_mram_cfg.json' '${config:alif.setools.root}/build/config/M55_HE_mram_cfg.json';", "cp './.alif/M55_HP_mram_cfg.json' '${config:alif.setools.root}/build/config/M55_HP_mram_cfg.json';", "cp './.alif/M55_HP_mram_stub.bin' '${config:alif.setools.root}/build/images/M55_HP_mram_stub.bin';", "cp './.alif/M55_HE_mram_stub.bin' '${config:alif.setools.root}/build/images/M55_HE_mram_stub.bin';", "cd '${config:alif.setools.root}';", "./app-gen-toc -f 'build/config/${command:cmsis-csolution.getProcessorName}_mram_cfg.json';", "./app-write-mram -p ${input:discoverCOM};" ],
20+
"windows" : {
21+
"options" : {
22+
"shell" : {
23+
"executable" : "powershell.exe",
24+
"args" : [ "-Command" ]
25+
}
26+
}
27+
},
28+
"linux" : {
29+
"options" : {
30+
"shell" : {
31+
"executable" : "/bin/bash",
32+
"args" : [ "-c" ]
33+
}
34+
}
35+
},
36+
"osx" : {
37+
"options" : {
38+
"shell" : {
39+
"executable" : "/bin/bash",
40+
"args" : [ "-c" ]
41+
}
42+
}
43+
},
44+
"problemMatcher" : [ ]
45+
}, {
46+
"label" : "Alif: Install M55_HE and M55_HP debug stubs (dual core configuration)",
47+
"type" : "shell",
48+
"command" : [ "cp './.alif/M55_HP_HE_mram_cfg.json' '${config:alif.setools.root}/build/config/M55_HP_HE_mram_cfg.json';", "cp './.alif/M55_HP_mram_stub.bin' '${config:alif.setools.root}/build/images/M55_HP_mram_stub.bin';", "cp './.alif/M55_HE_mram_stub.bin' '${config:alif.setools.root}/build/images/M55_HE_mram_stub.bin';", "cd '${config:alif.setools.root}';", "./app-gen-toc -f 'build/config/M55_HP_HE_mram_cfg.json';", "./app-write-mram -p ${input:discoverCOM};" ],
49+
"windows" : {
50+
"options" : {
51+
"shell" : {
52+
"executable" : "powershell.exe",
53+
"args" : [ "-Command" ]
54+
}
55+
}
56+
},
57+
"linux" : {
58+
"options" : {
59+
"shell" : {
60+
"executable" : "/bin/bash",
61+
"args" : [ "-c" ]
62+
}
63+
}
64+
},
65+
"osx" : {
66+
"options" : {
67+
"shell" : {
68+
"executable" : "/bin/bash",
69+
"args" : [ "-c" ]
70+
}
71+
}
72+
},
73+
"problemMatcher" : [ ]
74+
}, {
75+
"label" : "pyOCD Run",
76+
"type" : "shell",
77+
"command" : "pyocd",
78+
"options" : {
79+
"cwd" : "${workspaceFolder}/",
80+
"shell" : {
81+
"executable" : "cmd.exe",
82+
"args" : [ "/d", "/c" ]
83+
}
84+
},
85+
"problemMatcher" : [ ],
86+
"args" : [ "run", "--probe", "cmsisdap:", "--cbuild-run", "${command:cmsis-csolution.getCbuildRunFile}" ]
87+
} ]
88+
}

RockPaperScissors/AppKit-E8_USB/algorithm/data_in_user.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ int32_t InitInputData (void) {
8383

8484
#ifndef SIMULATOR
8585
#ifdef USE_SEGGER_SYSVIEW
86+
// Set an initial marker with ID 0xFF to initialize marker tracking. This marker is ignored by SystemView.
87+
SEGGER_SYSVIEW_NameMarker(0xFFU, "Reserved");
88+
8689
SEGGER_SYSVIEW_NameMarker(SYSVIEW_MARKER_INPUT_DATA, "Input Data");
8790
SEGGER_SYSVIEW_NameMarker(SYSVIEW_MARKER_CAPTURE_IMAGE, "Capture Image");
8891
SEGGER_SYSVIEW_NameMarker(SYSVIEW_MARKER_CONVERT_IMAGE, "Convert Image");

0 commit comments

Comments
 (0)