Skip to content

Visual Study Code Configurations for different types of Microcontrollers (Using Cortex-Debug Extension)

Notifications You must be signed in to change notification settings

kendiser5000/Visual-Studio-Code-Config-Microcontrollers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Visual Studio Code Config

Config Files for Visual Studio Code (VS Code) using Cortex Debug

{
    // 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": [
        {
            "name": "Cortex Debug",
            "cwd": "${workspaceRoot}",  
            "executable": "pca10056/blank/armgcc/_build/nrf52840_xxaa.out",     // location of your build file
            "request": "launch",                                                // Launch debugger
            "type": "cortex-debug",                                             // Select Debugger of Choice
            "servertype": "jlink",                                              // Select GDB server (jlink, stlink,)
            "device": "nrf52",                                                  // Indicate board model for debugger
            "interface": "swd",                                                 // jtag/swd
            "ipAddress": null,                                                  // if gdb server fill this
            "serialNumber": null,                                               // serial number of debugger
            "armToolchainPath": "/opt/gnuarmemb/bin/"                           // set toolchain path 
             //"preLaunchTask": "tasks",                                        // to add extra JSON with build commands
        }
    ]
}

Example "Launch.json" file for pretask

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "tasks",
            "type": "shell",
            "command": "make",
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
} 

About

Visual Study Code Configurations for different types of Microcontrollers (Using Cortex-Debug Extension)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published