質問編集履歴
3
改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
スケッチをコンパイルして書き込もうとしているのですが、コンパイルの最初のほうで以下のエラーが出てコンパイルできません。
|
5
|
+
スケッチをコンパイルして書き込もうとしているのですが、コンパイルの最初のほうで以下のエラーが出てコンパイルできません。どうしたら解決できるでしょうか?アドバイスをよろしくお願いします。
|
6
6
|
|
7
7
|
|
8
8
|
|
2
more inof
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Error compiling for board
|
1
|
+
Error compiling for board XXXが発生してコンパイルに失敗する
|
test
CHANGED
@@ -6,19 +6,61 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
9
13
|
```
|
10
14
|
|
11
|
-
|
15
|
+
Arduino:1.8.13 (Windows Store 1.8.42.0) (Windows 10), ボード:"M5Stack-Paper, Enabled, Default (2 x 6.5 MB app, 3.6 MB SPIFFS), 240MHz (WiFi/BT), 921600, None"
|
12
16
|
|
13
|
-
from c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\ios:42,
|
14
17
|
|
15
|
-
from c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\istream:38,
|
16
18
|
|
17
|
-
|
19
|
+
In file included from c:\users\user\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\algorithm:60:0,
|
18
20
|
|
19
|
-
from C:\Users\aki_f\Dropbox\My PC (LAPTOP-Q40LRGPT)\Documents\ArduinoData\packages\m5stack\hardware\esp32\1.0.6\libraries\BLE\src\BLEAddress.cpp:12:
|
20
21
|
|
21
|
-
|
22
|
+
|
23
|
+
from C:\Users\user\Dropbox\My PC (LAPTOP-Q40LRGPT)\Documents\ArduinoData\packages\m5stack\hardware\esp32\1.0.6\cores\esp32/Arduino.h:142,
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
from sketch\M5ZoomcontrollerPlus3_iOS_macOS_simple.ino.cpp:1:
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
c:\users\user\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\utility:68:28: fatal error: bits/c++config.h: No such file or directory
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
compilation terminated.
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
exit status 1
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
ボードM5Stack-Paperに対するコンパイル時にエラーが発生しました。
|
44
|
+
|
45
|
+
```
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
```Arduino
|
52
|
+
|
53
|
+
In file included from c:\users\user\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\bits\ios_base.h:46:0,
|
54
|
+
|
55
|
+
from c:\users\user\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\ios:42,
|
56
|
+
|
57
|
+
from c:\users\user\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\istream:38,
|
58
|
+
|
59
|
+
from c:\users\user\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\sstream:38,
|
60
|
+
|
61
|
+
from C:\Users\user\Dropbox\My PC (LAPTOP-Q40LRGPT)\Documents\ArduinoData\packages\m5stack\hardware\esp32\1.0.6\libraries\BLE\src\BLEAddress.cpp:12:
|
62
|
+
|
63
|
+
c:\users\user\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\system_error:39:34: fatal error: bits/error_constants.h: No such file or directory
|
22
64
|
|
23
65
|
compilation terminated.
|
24
66
|
|
@@ -30,155 +72,11 @@
|
|
30
72
|
|
31
73
|
|
32
74
|
|
33
|
-
###
|
75
|
+
### 補足情報(FW/ツールのバージョンなど)
|
34
76
|
|
35
77
|
|
36
78
|
|
37
|
-
```Arduiono
|
38
|
-
|
39
|
-
#include <WiFi.h>
|
40
|
-
|
41
|
-
#include <ESPmDNS.h>
|
42
|
-
|
43
|
-
#include <WiFiUdp.h>
|
44
|
-
|
45
|
-
#include <ArduinoOTA.h>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
const char* ssid = "koko";
|
50
|
-
|
51
|
-
const char* password = "b92d99b145.";
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
void setup() {
|
56
|
-
|
57
|
-
Serial.begin(115200);
|
58
|
-
|
59
|
-
Serial.println("Booting");
|
60
|
-
|
61
|
-
WiFi.mode(WIFI_STA);
|
62
|
-
|
63
|
-
WiFi.begin(ssid, password);
|
64
|
-
|
65
|
-
while (WiFi.waitForConnectResult() != WL_CONNECTED) {
|
66
|
-
|
67
|
-
Serial.println("Connection Failed! Rebooting...");
|
68
|
-
|
69
|
-
delay(5000);
|
70
|
-
|
71
|
-
ESP.restart();
|
72
|
-
|
73
|
-
}
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
// Port defaults to 3232
|
78
|
-
|
79
|
-
// ArduinoOTA.setPort(3232);
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
// Hostname defaults to esp3232-[MAC]
|
84
|
-
|
85
|
-
// ArduinoOTA.setHostname("myesp32");
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
// No authentication by default
|
90
|
-
|
91
|
-
// ArduinoOTA.setPassword("admin");
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
// Password can be set with it's md5 value as well
|
96
|
-
|
97
|
-
// MD5(admin) = 21232f297a57a5a743894a0e4a801fc3
|
98
|
-
|
99
|
-
// ArduinoOTA.setPasswordHash("21232f297a57a5a743894a0e4a801fc3");
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
ArduinoOTA
|
104
|
-
|
105
|
-
.onStart([]() {
|
106
|
-
|
107
|
-
|
79
|
+
M5stickC Plus
|
108
|
-
|
109
|
-
if (ArduinoOTA.getCommand() == U_FLASH)
|
110
|
-
|
111
|
-
type = "sketch";
|
112
|
-
|
113
|
-
else // U_SPIFFS
|
114
|
-
|
115
|
-
type = "filesystem";
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
// NOTE: if updating SPIFFS this would be the place to unmount SPIFFS using SPIFFS.end()
|
120
|
-
|
121
|
-
Serial.println("Start updating " + type);
|
122
|
-
|
123
|
-
})
|
124
|
-
|
125
|
-
.onEnd([]() {
|
126
|
-
|
127
|
-
Serial.println("\nEnd");
|
128
|
-
|
129
|
-
})
|
130
|
-
|
131
|
-
.onProgress([](unsigned int progress, unsigned int total) {
|
132
|
-
|
133
|
-
Serial.printf("Progress: %u%%\r", (progress / (total / 100)));
|
134
|
-
|
135
|
-
})
|
136
|
-
|
137
|
-
.onError([](ota_error_t error) {
|
138
|
-
|
139
|
-
Serial.printf("Error[%u]: ", error);
|
140
|
-
|
141
|
-
if (error == OTA_AUTH_ERROR) Serial.println("Auth Failed");
|
142
|
-
|
143
|
-
else if (error == OTA_BEGIN_ERROR) Serial.println("Begin Failed");
|
144
|
-
|
145
|
-
else if (error == OTA_CONNECT_ERROR) Serial.println("Connect Failed");
|
146
|
-
|
147
|
-
else if (error == OTA_RECEIVE_ERROR) Serial.println("Receive Failed");
|
148
|
-
|
149
|
-
else if (error == OTA_END_ERROR) Serial.println("End Failed");
|
150
|
-
|
151
|
-
});
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
ArduinoOTA.begin();
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
Serial.println("Ready");
|
160
|
-
|
161
|
-
Serial.print("IP address: ");
|
162
|
-
|
163
|
-
Serial.println(WiFi.localIP());
|
164
|
-
|
165
|
-
}
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
void loop() {
|
170
|
-
|
171
|
-
ArduinoOTA.handle();
|
172
|
-
|
173
|
-
}
|
174
|
-
|
175
|
-
```
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
### 補足情報(FW/ツールのバージョンなど)
|
180
|
-
|
181
|
-
|
182
80
|
|
183
81
|
M5stack-Paper
|
184
82
|
|
1
change
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,57 +2,29 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
[File] > [Examples] > [ArduinoOTA] > [BasicOTA]
|
6
|
-
|
7
|
-
|
5
|
+
スケッチをコンパイルして書き込もうとしているのですが、コンパイルの最初のほうで以下のエラーが出てコンパイルできません。
|
8
6
|
|
9
7
|
|
10
8
|
|
11
9
|
```
|
12
10
|
|
13
|
-
|
11
|
+
In file included from c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\bits\ios_base.h:46:0,
|
14
12
|
|
13
|
+
from c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\ios:42,
|
15
14
|
|
15
|
+
from c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\istream:38,
|
16
16
|
|
17
|
-
|
17
|
+
from c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\sstream:38,
|
18
18
|
|
19
|
+
from C:\Users\aki_f\Dropbox\My PC (LAPTOP-Q40LRGPT)\Documents\ArduinoData\packages\m5stack\hardware\esp32\1.0.6\libraries\BLE\src\BLEAddress.cpp:12:
|
19
20
|
|
20
|
-
|
21
|
-
from C:\Users\user\Dropbox\My PC (LAPTOP-Q40LRGPT)\Documents\ArduinoData\packages\m5stack\hardware\esp32\1.0.6\cores\esp32/Arduino.h:142,
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
from sketch\BasicOTA.ino.cpp:1:
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
c:\users\user\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\utility:68:28: fatal error: bits/c++config.h: No such file or directory
|
30
|
-
|
31
|
-
|
21
|
+
c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\system_error:39:34: fatal error: bits/error_constants.h: No such file or directory
|
32
22
|
|
33
23
|
compilation terminated.
|
34
24
|
|
35
|
-
|
36
|
-
|
37
25
|
exit status 1
|
38
26
|
|
39
|
-
|
40
|
-
|
41
|
-
|
27
|
+
ボードM5Stick-Cに対するコンパイル時にエラーが発生しました。
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
This report would have more information with
|
50
|
-
|
51
|
-
"Show verbose output during compilation"
|
52
|
-
|
53
|
-
option enabled in File -> Preferences.
|
54
|
-
|
55
|
-
|
56
28
|
|
57
29
|
```
|
58
30
|
|