Skip to content
Snippets Groups Projects
Select Git revision
  • 547089f2b743069c48dd4d0f68cbbe850afe5127
  • master default protected
2 results

launch.json

Blame
  • launch.json 4.47 KiB
    {
        // Use IntelliSense to learn about possible attributes.
        // Hover to view descriptions of existing attributes.
        // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
        "version": "0.2.0",
        "configurations": [
            {
                "type": "cortex-debug",
                "request": "launch",
                "servertype": "openocd",
                "name": "hello",
                "executable": "./target/thumbv7em-none-eabihf/debug/examples/hello",
                "configFiles": [
                    "interface/stlink.cfg",
                    "target/stm32f4x.cfg"
                ],
                "swoConfig": {
                    "enabled": true,
                    "cpuFrequency": 16000000,
                    "swoFrequency": 2000000, // you may try 1000000 if not working
                    "source": "probe",
                    "decoders": [
                        {
                            "type": "console",
                            "label": "Name",
                            "port": 0
                        }
                    ],
                },
                "postLaunchCommands": [
                    "monitor arm semihosting enable",
                ],
                "cwd": "${workspaceRoot}",
            },
            {
                "type": "cortex-debug",
                "request": "launch",
                "servertype": "openocd",
                "name": "hello (release)",
                "executable": "./target/thumbv7em-none-eabihf/release/examples/hello",
                "configFiles": [
                    "interface/stlink.cfg",
                    "target/stm32f4x.cfg"
                ],
                "swoConfig": {
                    "enabled": true,
                    "cpuFrequency": 16000000,
                    "swoFrequency": 2000000, // you may try 1000000 if not working
                    "source": "probe",
                    "decoders": [
                        {
                            "type": "console",
                            "label": "Name",
                            "port": 0
                        }
                    ]
                },
                "cwd": "${workspaceRoot}",
            },
            {
                "type": "cortex-debug",
                "request": "launch",
                "servertype": "openocd",
                "name": "standby",
                "executable": "./target/thumbv7em-none-eabihf/debug/examples/standby",
                "configFiles": [
                    "interface/stlink.cfg",
                    "target/stm32f4x.cfg"
                ],
                "swoConfig": {
                    "enabled": true,
                    "cpuFrequency": 8000000,
                    "swoFrequency": 2000000, // you may try 1000000 if not working
                    "source": "probe",
                    "decoders": [
                        {
                            "type": "console",
                            "label": "Name",
                            "port": 0
                        }
                    ]
                },
                "cwd": "${workspaceRoot}"
            },
            {
                "type": "cortex-debug",
                "request": "launch",
                "servertype": "openocd",
                "name": "standby (release)",
                "executable": "./target/thumbv7em-none-eabihf/release/examples/standby",
                "configFiles": [
                    "interface/stlink.cfg",
                    "target/stm32f4x.cfg"
                ],
                "swoConfig": {
                    "enabled": true,
                    "cpuFrequency": 8000000,
                    "swoFrequency": 2000000, // you may try 1000000 if not working
                    "source": "probe",
                    "decoders": [
                        {
                            "type": "console",
                            "label": "Name",
                            "port": 0
                        }
                    ]
                },
                "cwd": "${workspaceRoot}"
            },
            {
                "type": "cortex-debug",
                "request": "launch",
                "servertype": "openocd",
                "name": "panic",
                "executable": "./target/thumbv7em-none-eabihf/debug/examples/panic",
                "configFiles": [
                    "interface/stlink.cfg",
                    "target/stm32f4x.cfg"
                ],
                "swoConfig": {
                    "enabled": true,
                    "cpuFrequency": 8000000,
                    "swoFrequency": 2000000, // you may try 1000000 if not working
                    "source": "probe",
                    "decoders": [
                        {
                            "type": "console",
                            "label": "Name",
                            "port": 0
                        }
                    ]
                },
                "cwd": "${workspaceRoot}"
            },
        ]
    }