Skip to content

Commit

Permalink
Add new task for Speculos in vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
grydz committed Nov 16, 2020
1 parent 4e5b89e commit 911cc0f
Showing 1 changed file with 43 additions and 4 deletions.
47 changes: 43 additions & 4 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
Expand All @@ -10,7 +8,22 @@
"group": {
"kind": "build",
"isDefault": true
}
},
"problemMatcher": [
"$gcc"
]
},
{
"label": "make debug",
"type": "shell",
"command": "make DEBUG=1",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
]
},
{
"label": "make clean",
Expand All @@ -19,7 +32,33 @@
"group": {
"kind": "build",
"isDefault": true
}
},
"problemMatcher": [
"$gcc"
]
},
{
"label": "run Speculos",
"type": "shell",
"command": "python /path/to/speculos.py ${workspaceFolder}/bin/app.elf --ontop --sdk 1.6",
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": [
"make debug"
],
"problemMatcher": []
},
{
"label": "kill Speculos",
"type": "shell",
"command": "pkill -f speculos.py",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
}
]
}

0 comments on commit 911cc0f

Please sign in to comment.