~aleteoryx/muditaos

ref: 8d1da669365f6d3ace09617006cf84e684cbde8d muditaos/.vscode/launch.json -rw-r--r-- 4.7 KiB
8d1da669 — Bartosz [MOS-237] Removed unnecessary workaround for system reboot 2 years ago
                                                                                
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
{
    "version": "0.2.0",
    "configurations": [
        
        // Linux

        {
            "name": "Launch PurePhone (Linux)",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/build-PurePhone-linux-Debug/PurePhone.elf",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}/build-PurePhone-linux-Debug/",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                // {
                //     "description": "disable SIGUSR1 logs",
                //     "text": "handle SIGUSR1 nostop noprint"
                // },
            ]
        },

        {
            "name": "Launch BellHybrid (Linux)",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/build-BellHybrid-linux-Debug/BellHybrid.elf",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}/build-BellHybrid-linux-Debug/",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                // {
                //     "description": "disable SIGUSR1 logs",
                //     "text": "handle SIGUSR1 nostop noprint"
                // }
            ]
        },

        // RT1051

        {
            "name": "Launch PurePhone (RT1051)",
            "type": "cortex-debug",
            "request": "launch",
            "executable": "${workspaceFolder}/build-PurePhone-rt1051-RelWithDebInfo/PurePhone.elf",
            "servertype": "jlink",
            "serverpath": "JLinkGDBServerCLExe",
            "cwd": "${workspaceFolder}",
            "gdbPath": "arm-none-eabi-gdb",
            // "debuggerArgs": ["-x", "${workspaceFolder}/.gdbinit-1051"],
            "serverArgs": ["-strict", "-ir", "-singlerun", "-speed", "25000"],
            // "runToEntryPoint": "main",
            // "runToMain": true,
            "preLaunchCommands": [],
            "postLaunchCommands": [],
            "interface": "swd",
            "device": "MCIMXRT1051",
            "jlinkscript": "${workspaceFolder}/evkbimxrt1050_sdram_init.jlinkscript",
            "rtos": "FreeRTOS",
            "overrideLaunchCommands": [
                // "source .gdb_macros",
                // "handle SIGUSR1 nostop noprint",
                // "maint set internal-warning quit no",
                // "maint set internal-warning corefile no",
                // "set pagination off",
                // "set python print-stack full",
                // "target remote localhost:2331",
                // "source tools/gdb_crash_extend.py",
                // "source tools/misc/puregdb/puregdb.py",
                "monitor reset 0",
                "monitor halt",
                "monitor memU32 0x401BC000 = 128;",
                "load",
                "eval \"monitor exec SetRTTAddr %p\", &_SEGGER_RTT",
                "info threads",
                "thread 2",
                "tb main",
                // "b HardFault_Handler",
                // "b _exit",
                // "b abort",
                // "b WDOG1_IRQHandler",
                // "b RTWDOG_IRQHandler",
                // "b IntDefaultHandler",
            ]
        },

        {
            "name": "Launch BellHybrid (RT1051)",
            "type": "cortex-debug",
            "request": "launch",
            "executable": "${workspaceFolder}/build-BellHybrid-rt1051-RelWithDebInfo/BellHybrid.elf",
            "servertype": "jlink",
            "serverpath": "JLinkGDBServerCLExe",
            "cwd": "${workspaceFolder}",
            "gdbPath": "arm-none-eabi-gdb",
            "serverArgs": ["-strict", "-ir", "-singlerun", "-speed", "25000"],
            "interface": "swd",
            "device": "MCIMXRT1051",
            "jlinkscript": "${workspaceFolder}/evkbimxrt1050_sdram_init_T6.jlinkscript",
            "rtos": "FreeRTOS",
            "overrideLaunchCommands": [
                "monitor reset 0",
                "monitor halt",
                "monitor memU32 0x401BC000 = 128;",
                "load",
                "eval \"monitor exec SetRTTAddr %p\", &_SEGGER_RTT",
                "info threads",
                "thread 2",
                "tb main",
            ]
        },
    ]
}