Created
July 14, 2019 20:31
-
-
Save bdmihai/961e53f6bd3013f8888e15bbb3cff907 to your computer and use it in GitHub Desktop.
ESp32 - vscode tasks definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "list-usb", | |
"type": "shell", | |
"command": "./.vscode/list-usb.sh" | |
}, | |
{ | |
"label": "menuconfig", | |
"type": "shell", | |
"command": "make", | |
"args": [ | |
"menuconfig" | |
], | |
"options": { | |
"env": { | |
"PATH": "${env:HOME}/work/tools/xtensa-esp32-elf/bin:${env:PATH}", | |
"IDF_PATH": "${env:HOME}/work/libraries/esp-idf" | |
} | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "build", | |
"type": "shell", | |
"command": "make", | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, | |
"args": [ "-j", "40" ], | |
"options": { | |
"env": { | |
"PATH": "${env:HOME}/work/tools/xtensa-esp32-elf/bin:${env:PATH}", | |
"IDF_PATH": "${env:HOME}/work/libraries/esp-idf" | |
} | |
}, | |
"problemMatcher": [ | |
"$gcc" | |
] | |
}, | |
{ | |
"label": "flash", | |
"type": "shell", | |
"command": "make", | |
"args": [ "flash" ], | |
"options": { | |
"env": { | |
"PATH": "${env:HOME}/work/tools/xtensa-esp32-elf/bin:${env:PATH}", | |
"IDF_PATH": "${env:HOME}/work/libraries/esp-idf" | |
} | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "monitor", | |
"type": "shell", | |
"command": "make", | |
"args": [ "monitor" ], | |
"options": { | |
"env": { | |
"PATH": "${env:HOME}/work/tools/xtensa-esp32-elf/bin:${env:PATH}", | |
"IDF_PATH": "${env:HOME}/work/libraries/esp-idf" | |
} | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "openocd", | |
"type": "shell", | |
"command": [ | |
"openocd -s ${env:HOME}/work/tools/openocd-esp32/share/openocd/scripts -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp-wroom-32.cfg" | |
], | |
"options": { | |
"env": { | |
"PATH": "${env:HOME}/work/tools/xtensa-esp32-elf/bin:${env:HOME}/work/tools/openocd-esp32/bin:${env:PATH}", | |
"IDF_PATH": "${env:HOME}/work/libraries/esp-idf" | |
} | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "openocd reset", | |
"type": "shell", | |
"command": [ | |
"openocd -s ${env:HOME}/work/tools/openocd-esp32/share/openocd/scripts -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp-wroom-32.cfg -c \"init; reset; exit\" " | |
], | |
"options": { | |
"env": { | |
"PATH": "${env:HOME}/work/tools/xtensa-esp32-elf/bin:${env:HOME}/work/tools/openocd-esp32/bin:${env:PATH}", | |
"IDF_PATH": "${env:HOME}/work/libraries/esp-idf" | |
} | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "openocd flash program", | |
"type": "shell", | |
"command": [ | |
"openocd -s ${env:HOME}/work/tools/openocd-esp32/share/openocd/scripts -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp-wroom-32.cfg -c \"program_esp32 ${workspaceFolder}/build/partitions_singleapp.bin 0x8000 verify; program_esp32 ${workspaceFolder}/build/blink.bin 0x100000 verify; reset; exit\" " | |
], | |
"options": { | |
"env": { | |
"PATH": "${env:HOME}/work/tools/xtensa-esp32-elf/bin:${env:HOME}/work/tools/openocd-esp32/bin:${env:PATH}", | |
"IDF_PATH": "${env:HOME}/work/libraries/esp-idf" | |
} | |
}, | |
"problemMatcher": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment