Skip to content

Instantly share code, notes, and snippets.

@daniel-p-carvalho
Created June 20, 2022 17:44
Show Gist options
  • Select an option

  • Save daniel-p-carvalho/824268485a025a03f5f56c64a200553a to your computer and use it in GitHub Desktop.

Select an option

Save daniel-p-carvalho/824268485a025a03f5f56c64a200553a to your computer and use it in GitHub Desktop.
Visual Studio Code - NuttX json files
{
// Use o IntelliSense para saber mais sobre os atributos possíveis.
// Focalizar para exibir as descrições dos atributos existentes.
// Para obter mais informações, acesse: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"cwd": "${workspaceRoot}/nuttx",
"executable": "${workspaceRoot}/nuttx/nuttx",
"name": "Debug NUTTX",
"request": "launch",
"type": "cortex-debug",
"preLaunchTask": "Make all",
"servertype": "openocd",
"device": "STM32L432KC",
"configFiles": [
"interface/stlink.cfg",
"target/stm32l4x.cfg"
],
"postLaunchCommands": [
"monitor init",
"monitor reset halt",
"monitor flash write_image erase nuttx.bin 0x08000000"
],
"linux": {
"svdFile": "${workspaceRoot}/svd/STM32F411.svd"
},
"runToEntryPoint": "board_app_initialize"
//"runToEntryPoint": "reset_handler"
}
]
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Make all",
"type": "shell",
"options": {
"cwd": "${workspaceRoot}/nuttx"
},
"command": "make",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"args": [""],
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["absolute"],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
{
"label": "Make Clean",
"type": "shell",
"options": {
"cwd": "${workspaceRoot}/nuttx"
},
"command": "make",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"args": ["clean"],
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["absolute"],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment