Newer
Older
ESP32-RetroPlay / .vscode / tasks.json
{
	"version": "2.0.0",
	"tasks": [
		{
			"label": "preRun",
			"type": "shell",
			"windows": {
				"command": "taskkill /IM openocd.exe /F; Start-Process -NoNewWindow -FilePath 'C:/Espressif/tools/openocd-esp32/v0.12.0-esp32-20241016/openocd-esp32/bin/openocd.exe' -ArgumentList '-f', 'C:/Espressif/tools/openocd-esp32/v0.12.0-esp32-20241016/openocd-esp32/share/openocd/scripts/board/esp32s3-builtin.cfg'"
			},
			"isBackground": true,
			"problemMatcher": [
				{
					"pattern": [
						{
							"regexp": ".",
							"file": 1,
							"location": 2,
							"message": 3
						}
					],
					"background": {
						"activeOnStart": true,
						"beginsPattern": ".",
						"endsPattern": "Info : Listening on port 3333 for gdb connections"
					}
				}
			]
		},
		{
			"label": "idfMonitor",
			"type": "shell",
			"windows": {
				"command": "Start-Process powershell -ArgumentList '-NoExit','-Command','& { . \"C:/Espressif/frameworks/esp-idf-v5.4.1/export.ps1\"; & \"C:/Espressif/tools/idf-exe/1.0.3/idf.py.exe\" -p COM6 monitor }'"
			},
			"isBackground": true
		},
		{
			"label": "flash",
			"type": "shell",
			"windows": {
				"command": "powershell",
				"args": [
					"-NoLogo",
					"-NoProfile",
					"-ExecutionPolicy",
					"Bypass",
					"-Command",
					". 'C:/Espressif/frameworks/esp-idf-v5.4.1/export.ps1'; & 'C:/Espressif/tools/idf-exe/1.0.3/idf.py.exe' flash"
				]
			},
			"isBackground": false
		},
		{
			"label": "preDebugAll",
			"dependsOn": [
				"preRun",
				"flash",
				// "idfMonitor"
			],
			"dependsOrder": "sequence"
		}
	]
}