-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtasks.json
134 lines (133 loc) · 4 KB
/
tasks.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "OTA Upload",
"type": "shell",
"command": "py",
"args": [
"%LOCALAPPDATA%\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\tools\\espota.py",
"-i",
"192.168.0.232",
"-p",
"8266",
"-a",
"admin",
"-f",
"${workspaceFolder}\\..\\ArduinoOutput\\${fileBasenameNoExtension}\\${fileBasename}.bin"
],
"options": {
"shell": {
"executable": "cmd.exe",
"args": ["/c"]
}
}
},
{
"label": "COM Upload",
"type": "shell",
"command": "py",
"args": [
"%LOCALAPPDATA%\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\tools\\esptool\\esptool.py",
"--chip",
"esp8266",
"--port",
"COM20",
"--baud",
"921600",
"write_flash",
"--flash_mode",
"dio",
"--flash_size",
"detect",
"0x0",
"${workspaceFolder}\\..\\ArduinoOutput\\${fileBasenameNoExtension}\\${fileBasename}.bin"
],
"options": {
"shell": {
"executable": "cmd.exe",
"args": ["/c"]
}
},
"problemMatcher": []
},
{
"label": "OTA32 Upload",
"type": "shell",
"command": "py",
"args": [
"%LOCALAPPDATA%\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.2\\tools\\espota.py",
"-i",
"192.168.0.153",
"-p",
"3232",
"-a",
"admin",
"-f",
"${workspaceFolder}\\..\\ArduinoOutput\\${fileBasenameNoExtension}\\${fileBasename}.bin"
],
"options": {
"shell": {
"executable": "cmd.exe",
"args": ["/c"]
}
},
"problemMatcher": []
},
{
"label": "COM32 Upload",
"type": "shell",
"command": "py",
/*
HEY!!!!! This is what I used for a ESP32-WROOM-32 Module.
YOU MIGHT NEED TO CHANGE THIS FOR SOMETHING DIFFERENT.
I ran the Arduino IDE in verbose mode and grabbed the details below and copied.
The ESP32 Dev Module is select.
If you run a different module, you might want to look at the details and change.
esptool.py --chip esp32 --port COM5 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB
0xe000 C:\Users\treya\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2/tools/partitions/boot_app0.bin
0x1000 C:\Users\treya\Documents\Arduino\ArduinoOutput\ESP32_Wellbeing\ESP32_Wellbeing.ino.bootloader.bin
0x8000 C:\Users\treya\Documents\Arduino\ArduinoOutput\ESP32_Wellbeing\ESP32_Wellbeing.ino.partitions.bin
0x10000 C:\Users\treya\Documents\Arduino\ArduinoOutput\ESP32_Wellbeing\ESP32_Wellbeing.ino.bin
*/
"args": [
"%LOCALAPPDATA%\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.2\\tools\\esptool.py",
"--chip",
"esp32",
"--port",
"COM5",
"--baud",
"921600",
"--before",
"default_reset",
"--after",
"hard_reset",
"write_flash",
"-z",
"--flash_mode",
"dio",
"--flash_freq",
"80m",
"--flash_size",
"4MB", //or detect?
"0xe000",
"%LOCALAPPDATA%\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.2\\tools\\partitions\\boot_app0.bin",
"0x1000",
"${workspaceFolder}\\..\\ArduinoOutput\\${fileBasenameNoExtension}\\${fileBasename}.bootloader.bin",
"0x8000",
"${workspaceFolder}\\..\\ArduinoOutput\\${fileBasenameNoExtension}\\${fileBasename}.partitions.bin",
"0x10000",
"${workspaceFolder}\\..\\ArduinoOutput\\${fileBasenameNoExtension}\\${fileBasename}.bin"
],
"options": {
"shell": {
"executable": "cmd.exe",
"args": ["/c"]
}
},
"problemMatcher": []
}
]
}