forked from Marus/cortex-debug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
2524 lines (2524 loc) · 151 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"version": "1.1.0",
"activationEvents": [
"onDebugResolve:cortex-debug",
"onStartupFinished"
],
"categories": [
"Debuggers"
],
"contributes": {
"configuration": {
"type": "object",
"title": "Cortex-Debug",
"properties": {
"cortex-debug.armToolchainPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the GCC Arm Toolchain (standard prefix is \"arm-none-eabi\" - can be set through the armToolchainPrefix setting) to use. If not set the tools must be on the system path. Do not include the executable file name in this path."
},
"cortex-debug.armToolchainPath.linux": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the GCC Arm Toolchain (standard prefix is \"arm-none-eabi\" - can be set through the armToolchainPrefix setting) to use. If not set the tools must be on the system path. Do not include the executable file name in this path."
},
"cortex-debug.armToolchainPath.osx": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the GCC Arm Toolchain (standard prefix is \"arm-none-eabi\" - can be set through the armToolchainPrefix setting) to use. If not set the tools must be on the system path. Do not include the executable file name in this path."
},
"cortex-debug.armToolchainPath.windows": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the GCC Arm Toolchain (standard prefix is \"arm-none-eabi\" - can be set through the armToolchainPrefix setting) to use. If not set the tools must be on the system path. Do not include the executable file name in this path."
},
"cortex-debug.armToolchainPrefix": {
"type": [
"string",
"null"
],
"default": "arm-none-eabi",
"description": "The prefix to use for the arm toolchain - the standard release from arm uses \"arm-none-eabi\" but alternative toolchains may use a different prefix. Currently the gdb and objdump tools are needed."
},
"cortex-debug.gdbPath.linux": {
"type": [
"string",
"null"
],
"default": null,
"description": "This setting allows you to completely override the path/executable for the GDB executable. This is useful for cases where your gdb executable doesn't follow the standard <tuple>-gdb format - for example `gdb-multiarch`. This can be just the executable name (if on the system path) or the full path."
},
"cortex-debug.gdbPath.osx": {
"type": [
"string",
"null"
],
"default": null,
"description": "This setting allows you to completely override the path/executable for the GDB executable. This is useful for cases where your gdb executable doesn't follow the standard <tuple>-gdb format - for example `gdb-multiarch`. This can be just the executable name (if on the system path) or the full path."
},
"cortex-debug.gdbPath.windows": {
"type": [
"string",
"null"
],
"default": null,
"description": "This setting allows you to completely override the path/executable for the GDB executable. This is useful for cases where your gdb executable doesn't follow the standard <tuple>-gdb format - for example `gdb-multiarch`. This can be just the executable name (if on the system path) or the full path."
},
"cortex-debug.gdbPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "This setting allows you to completely override the path/executable for the GDB executable. This is useful for cases where your gdb executable doesn't follow the standard <tuple>-gdb format - for example `gdb-multiarch`. This can be just the executable name (if on the system path) or the full path."
},
"cortex-debug.JLinkGDBServerPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the JLink GDB Server. If not set then JLinkGDBServer (JLinkGDBServerCL.exe on Windows) must be on the system path."
},
"cortex-debug.JLinkGDBServerPath.linux": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the JLink GDB Server. If not set then JLinkGDBServer (JLinkGDBServerCLExe) must be on the system path."
},
"cortex-debug.JLinkGDBServerPath.osx": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the JLink GDB Server. If not set then JLinkGDBServer (JLinkGDBServerCLExe) must be on the system path."
},
"cortex-debug.JLinkGDBServerPath.windows": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the JLink GDB Server. If not set then JLinkGDBServer (JLinkGDBServerCL.exe) must be on the system path."
},
"cortex-debug.openocdPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the OpenOCD GDB Server executable. If not set then openocd (openocd.exe on Windows) must be on the system path."
},
"cortex-debug.openocdPath.linux": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the OpenOCD GDB Server executable. If not set then openocd (openocd.exe on Windows) must be on the system path."
},
"cortex-debug.openocdPath.osx": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the OpenOCD GDB Server executable. If not set then openocd (openocd.exe on Windows) must be on the system path."
},
"cortex-debug.openocdPath.windows": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the OpenOCD GDB Server executable. If not set then openocd (openocd.exe on Windows) must be on the system path."
},
"cortex-debug.pyocdPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the PyOCD GDB Server executable. If not set then pyocd-gdbserver must be on the system path."
},
"cortex-debug.pyocdPath.linux": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the PyOCD GDB Server executable. If not set then pyocd-gdbserver must be on the system path."
},
"cortex-debug.pyocdPath.osx": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the PyOCD GDB Server executable. If not set then pyocd-gdbserver must be on the system path."
},
"cortex-debug.pyocdPath.windows": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the PyOCD GDB Server executable. If not set then pyocd-gdbserver must be on the system path."
},
"cortex-debug.PEGDBServerPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the PEMicro GDB Server. If not set then PEGDBServer (pegdbserver_console.exe on Windows) must be on the system path."
},
"cortex-debug.PEGDBServerPath.linux": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the PEMicro GDB Server. If not set then PEGDBServer (pegdbserver_console.exe on Windows) must be on the system path."
},
"cortex-debug.PEGDBServerPath.osx": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the PEMicro GDB Server. If not set then PEGDBServer (pegdbserver_console.exe on Windows) must be on the system path."
},
"cortex-debug.PEGDBServerPath.windows": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the PEMicro GDB Server. If not set then PEGDBServer (pegdbserver_console.exe on Windows) must be on the system path."
},
"cortex-debug.stutilPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the Texane's ST-Util GDB Server executable. If not set then st-util (st-util.exe on Windows) must be on the system path."
},
"cortex-debug.stutilPath.linux": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the Texane's ST-Util GDB Server executable. If not set then st-util (st-util.exe on Windows) must be on the system path."
},
"cortex-debug.stutilPath.osx": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the Texane's ST-Util GDB Server executable. If not set then st-util (st-util.exe on Windows) must be on the system path."
},
"cortex-debug.stutilPath.windows": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the Texane's ST-Util GDB Server executable. If not set then st-util (st-util.exe on Windows) must be on the system path."
},
"cortex-debug.stlinkPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the ST-LINK_gdbserver executable. If not set then ST-LINK_gdbserver (ST-LINK_gdbserver.exe on Windows) must be on the system path."
},
"cortex-debug.stlinkPath.linux": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the ST-LINK_gdbserver executable. If not set then ST-LINK_gdbserver (ST-LINK_gdbserver.exe on Windows) must be on the system path."
},
"cortex-debug.stlinkPath.osx": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the ST-LINK_gdbserver executable. If not set then ST-LINK_gdbserver (ST-LINK_gdbserver.exe on Windows) must be on the system path."
},
"cortex-debug.stlinkPath.windows": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the ST-LINK_gdbserver executable. If not set then ST-LINK_gdbserver (ST-LINK_gdbserver.exe on Windows) must be on the system path."
},
"cortex-debug.stm32cubeprogrammer": {
"type": [
"string",
"null"
],
"default": null,
"description": "This path is normally resolved to the installed STM32CubeIDE or STM32CubeProgrammer but can be overridden here."
},
"cortex-debug.stm32cubeprogrammer.linux": {
"type": [
"string",
"null"
],
"default": null,
"description": "This path is normally resolved to the installed STM32CubeIDE or STM32CubeProgrammer but can be overridden here."
},
"cortex-debug.stm32cubeprogrammer.osx": {
"type": [
"string",
"null"
],
"default": null,
"description": "This path is normally resolved to the installed STM32CubeIDE or STM32CubeProgrammer but can be overridden here."
},
"cortex-debug.stm32cubeprogrammer.windows": {
"type": [
"string",
"null"
],
"default": null,
"description": "This path is normally resolved to the installed STM32CubeIDE or STM32CubeProgrammer but can be overridden here."
},
"cortex-debug.enableTelemetry": {
"type": "boolean",
"default": true,
"description": "Enable Telemetry for the Cortex-Debug Extension. Reporting will also respect the global telemetry.enableTelemetry setting."
},
"cortex-debug.flattenAnonymous": {
"type": "boolean",
"default": false,
"description": "If true, anonymous unions/structs are flattened in their parent data structure"
},
"cortex-debug.registerUseNaturalFormat": {
"type": "boolean",
"default": true,
"description": "If true, display registers in their natural format as specified by ARM. Hex otherwise."
},
"cortex-debug.variableUseNaturalFormat": {
"type": "boolean",
"default": true,
"description": "If true, display variables in their natural format as specified by ARM. Hex otherwise."
},
"cortex-debug.dbgServerLogfile": {
"type": [
"string",
"null"
],
"default": null,
"description": "Logs the contents of the gdb-server terminal. Use ${PID} in the file name to make it unique per VSCode session"
}
}
},
"commands": [
{
"command": "cortex-debug.resetDevice",
"title": "Reset device",
"icon": "./images/reset.svg"
},
{
"command": "cortex-debug.peripherals.updateNode",
"title": "Update Value",
"icon": "$(pencil)"
},
{
"command": "cortex-debug.peripherals.copyValue",
"title": "Copy Value",
"icon": "$(files)"
},
{
"command": "cortex-debug.registers.copyValue",
"title": "Copy Value",
"icon": "$(files)"
},
{
"command": "cortex-debug.registers.refresh",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"command": "cortex-debug.registers.regHexModeTurnOff",
"title": "Enable Natural mode",
"icon": {
"light": "images/hex-on-light.svg",
"dark": "images/hex-on-dark.svg"
}
},
{
"command": "cortex-debug.registers.regHexModeTurnOn",
"title": "Enable Hex mode",
"icon": {
"light": "images/hex-off-light.svg",
"dark": "images/hex-off-dark.svg"
}
},
{
"command": "cortex-debug.registers.varHexModeTurnOff",
"title": "Enable Natural mode",
"icon": {
"light": "images/hex-on-light.svg",
"dark": "images/hex-on-dark.svg"
}
},
{
"command": "cortex-debug.registers.varHexModeTurnOn",
"title": "Enable Hex mode",
"icon": {
"light": "images/hex-off-light.svg",
"dark": "images/hex-off-dark.svg"
}
},
{
"command": "cortex-debug.peripherals.setFormat",
"title": "Set Value Format"
},
{
"command": "cortex-debug.peripherals.forceRefresh",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"command": "cortex-debug.peripherals.pin",
"title": "Pin",
"icon": "$(pin)"
},
{
"command": "cortex-debug.peripherals.unpin",
"title": "Unpin",
"icon": "$(pinned)"
},
{
"category": "Cortex-Debug",
"command": "cortex-debug.examineMemory",
"title": "View Memory"
},
{
"category": "Cortex-Debug",
"command": "cortex-debug.viewDisassembly",
"title": "View Disassembly (Function)"
},
{
"category": "Cortex-Debug",
"command": "cortex-debug.setForceDisassembly",
"title": "Set Force Disassembly"
}
],
"languages": [
{
"id": "cortex-debug.disassembly",
"aliases": [
"Cortex-Debug Disassembly"
],
"extensions": [
".cdasm"
]
},
{
"id": "cortex-debug.memoryview",
"aliases": [
"Cortex-Debug Memory View"
],
"extensions": [
".cdmem"
]
}
],
"grammars": [
{
"language": "cortex-debug.disassembly",
"scopeName": "source.cortex-debug-disassembly",
"path": "./syntaxes/cortex-debug-disassembly.json"
},
{
"language": "cortex-debug.memoryview",
"scopeName": "source.cortex-debug-memoryview",
"path": "./syntaxes/cortex-debug-memoryview.json"
}
],
"breakpoints": [
{
"language": "c"
},
{
"language": "cpp"
},
{
"language": "rust"
},
{
"language": "arm"
},
{
"language": "asm"
},
{
"language": "cortex-debug.disassembly"
}
],
"debuggers": [
{
"configurationAttributes": {
"attach": {
"properties": {
"servertype": {
"type": "string",
"description": "GDB Server type - supported types are jlink, openocd, pyocd, pe, stlink, stutil, qemu, bmp and external",
"enum": [
"jlink",
"openocd",
"pyocd",
"stutil",
"stlink",
"bmp",
"pe",
"qemu",
"external"
]
},
"cwd": {
"description": "Directory to run commands from",
"type": "string"
},
"debuggerArgs": {
"default": [],
"description": "Additional arguments to pass to GDB command line",
"type": "array"
},
"preAttachCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed at the start of the main attach sequence (immediately after attaching to target)."
},
"postAttachCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed after the main attach sequence has finished."
},
"preRestartCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed at the beginning of the restart sequence (after interrupting execution)."
},
"postRestartCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed at the end of the restart sequence."
},
"overrideAttachCommands": {
"default": null,
"type": "array",
"items": "string",
"description": "You can use this to property to override the commands that are normally executed as part of attaching to a running target. In most cases it is preferable to use preAttachCommands and postAttachCommands to customize the GDB attach sequence."
},
"overrideRestartCommands": {
"default": null,
"type": "array",
"items": "string",
"description": "You can use this to property to override the commands that are normally executed as part of restarting the target. In most cases it is preferable to use preRestartCommands and postRestartCommands to customize the GDB restart sequence."
},
"postStartSessionCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed at the end of the start sequence, after a debug session has already started and runToEntryPoint is not specified."
},
"postRestartSessionCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed at the end of the re-start sequence, after a debug session has already started."
},
"breakAfterReset": {
"default": false,
"type": "boolean",
"description": "Applies to Restart/Reset/Launch, halt debugger after a reset. Ignored for `Launch` if `runToEntryPoint` is used."
},
"overrideGDBServerStartedRegex": {
"description": "You can supply a regular expression (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) in the configuration property to override the output from the GDB Server that is looked for to determine if the GDB Server has started. Under most circumstances this will not be necessary - but could be needed as a result of a change in the output of a GDB Server making it incompatible with cortex-debug. This property has no effect for bmp or external GDB Server types.",
"type": "string",
"default": null
},
"cpu": {
"default": "cortex-m3",
"type": "string",
"description": "CPU Type Selection - used for QEMU server type",
"enum": [
"cortex-m3",
"cortex-m4"
]
},
"machine": {
"default": "lm3s811evb",
"type": "string",
"description": "Machine Type Selection - used for QEMU server type",
"enum": [
"lm3s811evb",
"lm3s6965evb",
"mps2-an385"
]
},
"device": {
"default": "",
"description": "Target Device Identifier",
"type": "string"
},
"rtos": {
"default": null,
"description": "RTOS being used. For JLink this can be ChibiOS, embOS, FreeRTOS, NuttX, Zephyr or the path to a custom JLink RTOS Plugin library. For OpenOCD this can be eCos, ThreadX, FreeRTOS, ChibiOS, embKernel, mqx, uCOS-III, nuttx or auto.",
"type": "string"
},
"armToolchainPath": {
"default": null,
"description": "This setting can be used to override the armToolchainPath user setting for a particular launch configuration. This should be the path where arm-none-eabi-gdb and arm-none-eabi-objdump are located.",
"type": "string"
},
"toolchainPrefix": {
"default": null,
"description": "This setting can be used to override the toolchainPrefix user setting for a particular launch configuration.",
"type": "string"
},
"serverpath": {
"default": null,
"description": "This setting can be used to override the GDB Server path user/workspace setting for a particular launch configuration. It is the full pathname to the executable or name of executable if it is in your PATH",
"type": "string"
},
"gdbPath": {
"default": null,
"description": "This setting can be used to override the GDB path user/workspace setting for a particular launch configuration. This should be the full pathname to the executable (or name of the executable if it is in your PATH). Note that other toolchain executables with the configured prefix must still be available.",
"type": "string"
},
"serverArgs": {
"default": [],
"description": "Additional arguments to pass to GDB Server command line",
"type": "array",
"items": "string"
},
"executable": {
"description": "Path of executable",
"type": "string"
},
"gdbTarget": {
"default": null,
"description": "For externally controlled GDB Servers you must specify the GDB target to connect to. This can either be a \"hostname:port\" combination or path to a serial port",
"type": "string"
},
"numberOfProcessors": {
"description": "Number of processors/cores in the target device.",
"type": "number",
"multipleOf": 1,
"minimum": 1,
"maximum": 10,
"default": 1
},
"targetProcessor": {
"description": "The processor you want to debug. Zero based integer index. Must be less than 'numberOfProcessors'",
"type": "number",
"multipleOf": 1,
"minimum": 0,
"maximum": 9,
"default": 0
},
"graphConfig": {
"items": {
"oneOf": [
{
"properties": {
"annotate": {
"default": true,
"description": "Create annotations on the graph for when the target processor starts and stops execution. (green line for starting execution, red line for stopping execution).",
"type": "boolean"
},
"label": {
"description": "Label for Graph",
"type": "string"
},
"maximum": {
"default": 65535,
"description": "Maximum value for the X-Axis",
"type": "number"
},
"minimum": {
"default": 0,
"description": "Minimum value for the Y-Axis",
"type": "number"
},
"plots": {
"description": "Plot configurations. Data sources must be configured for \"graph\" (or \"advanced\" with a decoder that sends graph data) in the \"swoConfig\" section",
"items": {
"properties": {
"color": {
"pattern": "^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$",
"type": "string"
},
"graphId": {
"description": "Graph Data Source Id for the plot.",
"type": "string"
},
"label": {
"description": "A label for this data set",
"type": "string"
}
},
"required": [
"graphId"
],
"type": "object"
},
"type": "array"
},
"timespan": {
"default": 30,
"description": "Length of time (seconds) to be plotted on screen.",
"type": "number"
},
"type": {
"enum": [
"realtime"
],
"type": "string"
}
},
"required": [
"label",
"plots",
"minimum",
"maximum"
],
"type": "object"
},
{
"properties": {
"label": {
"description": "Label for graph",
"type": "string"
},
"timespan": {
"default": 10,
"description": "The amount of time (seconds) that the XY Plot will show the trace for.",
"type": "number"
},
"type": {
"enum": [
"x-y-plot"
],
"type": "string"
},
"xGraphId": {
"description": "Graph Data Source Id for the X axis",
"type": "string"
},
"xMaximum": {
"default": 65535,
"description": "Maximum value on the X-Axis",
"type": "number"
},
"xMinimum": {
"default": 0,
"description": "Minimum value on the X-Axis",
"type": "number"
},
"yGraphId": {
"description": "Graph Data Source Id Port for the Y axis",
"type": "string"
},
"yMaximum": {
"default": 65535,
"description": "Maximum value on the Y-Axis",
"type": "number"
},
"yMinimum": {
"default": 0,
"description": "Minimum value on the Y-Axis",
"type": "number"
}
},
"required": [
"xGraphId",
"yGraphId",
"label"
],
"type": "object"
}
]
},
"type": "array"
},
"showDevDebugOutput": {
"default": false,
"description": "Prints all GDB (parsed) responses to the console. Can also be a string 'raw' or 'raw-only'",
"type": ["boolean", "string"]
},
"showDevDebugTimestamps": {
"default": false,
"description": "Show timestamps when 'showDevDebugOutput' is enabled",
"type": "boolean"
},
"svdFile": {
"default": null,
"description": "Path to a CMSIS SVD file describing the peripherals of the microcontroller; if not supplied then one may be selected based upon the 'device' entered.",
"type": "string"
},
"svdAddrGapThreshold": {
"default": 16,
"type": "number",
"multipleOf": 1,
"minimum": -1,
"maximum": 32,
"description": "If the gap between registers is less than this threshold (multiple of 8), combine into a single read from device. -1 means never combine registers and is very slow"
},
"rttConfig": {
"type": "object",
"description": "SEGGER's Real Time Trace (RTT) and supported by JLink, OpenOCD and perhaps others in the future",
"default": {
"enabled": true,
"address": "auto",
"decoders": [
{
"label": "",
"port": 0,
"type": "console"
}
]
},
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable/Disable RTT",
"default": false
},
"address": {
"type": "string",
"description": "Address to start searching for the RTT control block. Use \"auto\" for Cortex-Debug to use the address from elf file",
"default": "auto"
},
"searchSize": {
"type": "number",
"description": "Number of bytes to search for the RTT control block. If 'address' is 'auto', use ONLY if you have a custom RTT implementation",
"multipleOf": 1,
"minimum": 16,
"default": 16
},
"searchId": {
"type": "string",
"description": "A string to search for to find the RTT control block. If 'address' is 'auto', use ONLY if you have a custom RTT implementation",
"default": "SEGGER RTT"
},
"polling_interval": {
"type": "number",
"description": "number of milliseconds (> 0) to wait for check for data on out channels",
"default": 0,
"minimum": 1
},
"clearSearch": {
"type": "boolean",
"description": "When true, clears the search-string. Only applicable when address is \"auto\"",
"default": true
},
"decoders": {
"description": "SWO Decoder Configuration",
"items": {
"anyOf": [
{
"properties": {
"label": {
"description": "A label for RTT Console",
"type": "string"
},
"port": {
"description": "RTT Channel Number (0 to 15)",
"default": 0,
"maximum": 15,
"minimum": 0,
"multipleOf": 1,
"type": "number"
},
"type": {
"enum": [
"console",
"binary"
],
"default": "console",
"description": "'console' with text input/output, 'binary' is for converting byte stream to other data types",
"type": "string"
},
"prompt": {
"description": "Prompt to use for RTT Console",
"type": "string",
"default": ""
},
"noprompt": {
"description": "Don't use a prompt for RTT Console",
"type": "boolean",
"default": false
},
"noclear": {
"description": "append to screen/logfile when another connection is made",
"type": "boolean",
"default": false
},
"logfile": {
"description": "log all raw data (input and output) to specified file",
"type": "string",
"default": ""
},
"timestamp": {
"description": "Add timestamps while printing for 'console' type. 'binary' type always prints timestamps",
"type": "boolean",
"default": false
},
"encoding": {
"type": "string",
"description": "How binary data bytes are converted into a number. All little-endian",
"default": "unsigned",
"enum": [
"unsigned",
"signed",
"Q16.16",
"float"
]
},
"iencoding": {
"type": "string",
"description": "How keyoard input is encoded. Cooked mode only",
"default": "utf8",
"enum": [
"ascii",
"utf8",
"ucs2",
"utf16le"
]
},
"scale": {
"default": 1,
"description": "Binary only: This setting will scale the raw value from the ITM port by the specified value. Can be used, for example, to scale a raw n-bit ADC reading to a voltage value. (e.g to scale a 12-bit ADC reading to a 3.3v scale you would need a scale value of 3.3/4096 = 0.0008056640625",
"type": "number"
},
"inputmode": {
"type": "string",
"description": "Experimental: 'disabled' means no stdin. 'raw' and 'rawecho' sends chars as they are typed.\n'rawecho' will echo chars and process RETURN keys. Even CTRL-C CTRL-D are passed on",
"default": "cooked",
"enum": [
"cooked",
"raw",
"rawecho",
"disabled"
]
}
},
"required": [
"port"
],
"type": "object"
},
{
"properties": {
"encoding": {
"default": "unsigned",
"description": "This property is only used for binary and graph output formats.",
"enum": [
"unsigned",
"signed",
"Q16.16",
"float"
],
"type": "string"
},
"graphId": {
"description": "The identifier to use for this data in graph configurations.",
"type": "string"
},
"port": {
"description": "RTT Channel Number",
"maximum": 15,
"minimum": 0,
"type": "number"
},
"scale": {
"default": 1,
"description": "This setting will scale the raw value from the ITM port by the specified value. Can be used, for example, to scale a raw n-bit ADC reading to a voltage value. (e.g to scale a 12-bit ADC reading to a 3.3v scale you would need a scale value of 3.3/4096 = 0.0008056640625",
"type": "number"
},
"type": {
"enum": [
"graph"
],
"type": "string"
}
},
"required": [
"port",
"graphId"
],
"type": "object"
},
{
"properties": {
"config": {
"additionalProperties": true,
"type": "object"
},
"decoder": {
"description": "Path to a javascript module to implement the decoding functionality.",
"type": "string"
},
"ports": {
"description": "RTT Channel Numbers",
"type": "array",
"items": {
"type": "number",