Closed muhdzakiy24 closed 2 years ago
Did you run generateHtmlArray.sh ?
Okay I've run the generateHtmlArray.sh now, but now I face other issue
`> Executing task: C:\Users\skyguardian.platformio\penv\Scripts\platformio.exe run <
Processing wemos (platform: espressif8266; framework: arduino; board: esp01_1m)
------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp01_1m.html
PLATFORM: Espressif 8266 (3.2.0) > Espressif Generic ESP8266 ESP-01 1M
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
PACKAGES:
27 | #include "I2Cdev.h"
| ^~~~~~
compilation terminated.
*** [.pio\build\wemos\src\main.cpp.o] Error 1
=================================================================== [FAILED] Took 5.00 seconds ===================================================================The terminal process "C:\Users\skyguardian.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.`
Do I need to install other dependencies?
UPDATE: I've tried to install the MPU6050, it seems it solve the problem above but now facing a new problem
Executing task: C:\Users\skyguardian.platformio\penv\Scripts\platformio.exe run <
Processing wemos (platform: espressif8266; framework: arduino; board: esp01_1m)
------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp01_1m.html
PLATFORM: Espressif 8266 (3.2.0) > Espressif Generic ESP8266 ESP-01 1M
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
PACKAGES:
toolchain-xtensa 2.100300.210717 (10.3.0) LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 44 compatible libraries Scanning dependencies... Dependency Graph | -- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
-- |
asm volatile ( | ^~~ .pio\libdeps\wemos\Brzo I2C\brzo_i2c.c:774:2: warning: 'a_temp1' is used uninitialized in this function [-Wuninitialized] .pio\libdeps\wemos\Brzo I2C\brzo_i2c.c:774:2: warning: 'a_in_value' is used uninitialized in this function [-Wuninitialized] .pio\libdeps\wemos\Brzo I2C\brzo_i2c.c:774:2: warning: 'a_bit_index' is used uninitialized in this function [-Wuninitialized] .pio\libdeps\wemos\Brzo I2C\brzo_i2c.c: In function 'brzo_i2c_setup': .pio\libdeps\wemos\Brzo I2C\brzo_i2c.c:1088:2: warning: 'a_set' is used uninitialized in this function [-Wuninitialized] 1088 | asm volatile ( | ^~~ .pio\libdeps\wemos\Brzo I2C\brzo_i2c.c:1088:2: warning: 'a_temp1' is used uninitialized in this function [-Wuninitialized] .pio\libdeps\wemos\Brzo I2C\brzo_i2c.c: In function 'brzo_i2c_write': .pio\libdeps\wemos\Brzo I2C\brzo_i2c.c:72:2: warning: 'a_set' may be used uninitialized in this function [-Wmaybe-uninitialized] 72 | asm volatile ( | ^~~ .pio\libdeps\wemos\Brzo I2C\brzo_i2c.c:72:2: warning: 'a_temp1' may be used uninitialized in this function [-Wmaybe-uninitialized] .pio\libdeps\wemos\Brzo I2C\brzo_i2c.c:72:2: warning: 'a_in_value' may be used uninitialized in this function [-Wmaybe-uninitialized] .pio\libdeps\wemos\Brzo I2C\brzo_i2c.c:72:2: warning: 'a_bit_index' may be used uninitialized in this function [-Wmaybe-uninitialized] .pio\libdeps\wemos\Brzo I2C\brzo_i2c.c: In function 'brzo_i2c_read': .pio\libdeps\wemos\Brzo I2C\brzo_i2c.c:394:2: warning: 'a_set' may be used uninitialized in this function [-Wmaybe-uninitialized] 394 | asm volatile ( | ^~~ .pio\libdeps\wemos\Brzo I2C\brzo_i2c.c:394:2: warning: 'a_temp1' may be used uninitialized in this function [-Wmaybe-uninitialized] .pio\libdeps\wemos\Brzo I2C\brzo_i2c.c:394:2: warning: 'a_in_value' may be used uninitialized in this function [-Wmaybe-uninitialized] .pio\libdeps\wemos\Brzo I2C\brzo_i2c.c:394:2: warning: 'a_bit_index' may be used uninitialized in this function [-Wmaybe-uninitialized] Archiving .pio\build\wemos\libad4\libBrzo I2C.a Compiling .pio\build\wemos\liba83\ESP8266WiFi\ESP8266WiFiGratuitous.cpp.o Archiving .pio\build\wemos\liba5f\libWire.a Compiling .pio\build\wemos\liba83\ESP8266WiFi\ESP8266WiFiMulti.cpp.o Compiling .pio\build\wemos\liba83\ESP8266WiFi\ESP8266WiFiSTA-WPS.cpp.o Compiling .pio\build\wemos\liba83\ESP8266WiFi\ESP8266WiFiSTA.cpp.o Compiling .pio\build\wemos\liba83\ESP8266WiFi\ESP8266WiFiScan.cpp.o Compiling .pio\build\wemos\liba83\ESP8266WiFi\WiFiClient.cpp.o Compiling .pio\build\wemos\liba83\ESP8266WiFi\WiFiClientSecureBearSSL.cpp.o Compiling .pio\build\wemos\liba83\ESP8266WiFi\WiFiServer.cpp.o Compiling .pio\build\wemos\liba83\ESP8266WiFi\WiFiServerSecureBearSSL.cpp.o src\main.cpp: In function 'bool loadAddressInfoFromConfig()': src\main.cpp:112:60: warning: 'typename ArduinoJson6185_91::enable_if<ArduinoJson6185_91::is_same<T, char>::value, const char>::type ArduinoJson6185_91::MemberProxy<TParent, TStringRef>::as() const [with T = char; TObject = ArduinoJson6185_91::JsonDocument&; TStringRef = const char; typename ArduinoJson6185_91::enable_if<ArduinoJson6185_91::is_same<T, char>::value, const char>::type = const char]' is deprecated: Replace as<char>() with as<const char*>() [-Wdeprecated-declarations] 112 | const char tmp = json["tracker_server"].as<char>(); | ^ In file included from .pio\libdeps\wemos\ArduinoJson\src/ArduinoJson/Document/JsonDocument.hpp:9, from .pio\libdeps\wemos\ArduinoJson\src/ArduinoJson/Document/BasicJsonDocument.hpp:7, from .pio\libdeps\wemos\ArduinoJson\src/ArduinoJson/Document/DynamicJsonDocument.hpp:7, from .pio\libdeps\wemos\ArduinoJson\src/ArduinoJson.hpp:21, from .pio\libdeps\wemos\ArduinoJson\src/ArduinoJson.h:9, from src\main.cpp:20: .pio\libdeps\wemos\ArduinoJson\src/ArduinoJson/Object/MemberProxy.hpp:79:7: note: declared here 79 | as() const { | ^~ src\main.cpp: In function 'bool loadTrackConfig()': src\main.cpp:253:9: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations] 253 | if (SPIFFS.begin()) { | ^ |
extern fs::FS SPIFFS attribute((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems."))); | ^ |
if (SPIFFS.exists(TRACKER_CONFIG_FILENAME)) { | ^ |
extern fs::FS SPIFFS attribute((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems."))); | ^ |
File configFile = SPIFFS.open(TRACKER_CONFIG_FILENAME, "r"); | ^ |
extern fs::FS SPIFFS attribute((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems."))); | ^ |
if (SPIFFS.begin()) { | ^ |
extern fs::FS SPIFFS attribute((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems."))); | ^ |
if (SPIFFS.begin()) { | ^ |
extern fs::FS SPIFFS attribute((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems."))); | ^ |
File configFile = SPIFFS.open(TRACKER_CONFIG_FILENAME, "w"); | ^ |
extern fs::FS SPIFFS attribute((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems."))); | ^ |
if (transitionCounter % UPDATES_PER_SECOND == slot - 1) { | #define BUFFER_LENGTH 32 |
---|
In file included from .pio\libdeps\wemos\MPU6050\src\I2Cdev.h:85, from .pio\libdeps\wemos\MPU6050\src\I2Cdev.cpp:46: C:\Users\skyguardian.platformio\packages\framework-arduinoespressif8266\libraries\Wire/Wire.h:32: note: this is the location of the previous definition 32 | #define BUFFER_LENGTH 128 |
---|
.pio\libdeps\wemos\MPU6050\src\I2Cdev.cpp:66:14: warning: #warning Using current Arduino IDE with Wire library is functionally limiting. [-Wcpp]
66 | #warning Using current Arduino IDE with Wire library is functionally limiting.
| ^~~
.pio\libdeps\wemos\MPU6050\src\I2Cdev.cpp:67:14: warning: #warning Arduino IDE v1.0.1+ with I2CDEV_BUILTIN_FASTWIRE implementation is recommended. [-Wcpp]
67 | #warning Arduino IDE v1.0.1+ with I2CDEV_BUILTIN_FASTWIRE implementation is recommended.
Compiling .pio\build\wemos\lib582\i2cdevmpu6050\hwheadtrackmpu6050.cpp.o
| ^~~
.pio\libdeps\wemos\MPU6050\src\I2Cdev.cpp:68:14: warning: #warning This I2Cdev implementation does not support: [-Wcpp]
68 | #warning This I2Cdev implementation does not support:
| ^~~
.pio\libdeps\wemos\MPU6050\src\I2Cdev.cpp:69:14: warning: #warning - Timeout detection (some Wire requests block forever) [-Wcpp]
69 | #warning - Timeout detection (some Wire requests block forever)
| ^~~
Compiling .pio\build\wemos\lib99d\kriswiner\MPU9250.cpp.o
.pio\libdeps\wemos\MPU6050\src\I2Cdev.cpp: In static member function 'static int8_t I2Cdev::readBytes(uint8_t, uint8_t, uint8_t, uint8_t*, uint16_t)':
.pio\libdeps\wemos\MPU6050\src\I2Cdev.cpp:300:75: error: no matching function for call to 'min(uint8_t&, int)'
300 | for (uint8_t k = 0; k < length; k += min(length, BUFFER_LENGTH)) {
Compiling .pio\build\wemos\lib99d\kriswiner\hwheadtrackmpu9250.cpp.o
| ^
In file included from c:\users\skyguardian.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\10.3.0\algorithm:62,
from C:\Users\skyguardian.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:225,
from .pio\libdeps\wemos\MPU6050\src\I2Cdev.h:82,
from .pio\libdeps\wemos\MPU6050\src\I2Cdev.cpp:46:
c:\users\skyguardian.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\10.3.0\bits\stl_algo.h:3479:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(std::initializer_list<_Tp>, _Compare)'
3479 | min(initializer_list<_Tp> l, _Compare comp)
| ^~~
c:\users\skyguardian.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\10.3.0\bits\stl_algo.h:3479:5: note: template argument deduction/substitution failed:
.pio\libdeps\wemos\MPU6050\src\I2Cdev.cpp:300:75: note: mismatched types 'std::initializer_list<_Tp>' and 'unsigned char'
300 | for (uint8_t k = 0; k < length; k += min(length, BUFFER_LENGTH)) {
| ^
In file included from c:\users\skyguardian.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\10.3.0\algorithm:62,
from C:\Users\skyguardian.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:225,
from .pio\libdeps\wemos\MPU6050\src\I2Cdev.h:82,
from .pio\libdeps\wemos\MPU6050\src\I2Cdev.cpp:46:
c:\users\skyguardian.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\10.3.0\bits\stl_algo.h:3473:5: note: candidate: 'template
2 | #include ~~~~~~~~~
compilation terminated.
[.pio\build\wemos\lib582\i2cdevmpu6050\hwheadtrackmpu6050.cpp.o] Error 1
lib\kriswiner\mpu9250.cpp: In member function 'uint8_t MPU9250::readByte(uint8_t, uint8_t)':
lib\kriswiner\mpu9250.cpp:836:32: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
836 | Wire.requestFrom(address, 1); // Read two bytes from slave register address on MPU9250
| ^
In file included from lib\kriswiner\MPU9250.h:17,
from lib\kriswiner\mpu9250.cpp:14:
C:\Users\skyguardian.platformio\packages\framework-arduinoespressif8266\libraries\Wire/Wire.h:70:13: note: candidate 1: 'uint8_t TwoWire::requestFrom(int, int)'
70 | uint8_t requestFrom(int, int);
| ^~~
C:\Users\skyguardian.platformio\packages\framework-arduinoespressif8266\libraries\Wire/Wire.h:68:13: note: candidate 2: 'uint8_t TwoWire::requestFrom(uint8_t, uint8_t)'
68 | uint8_t requestFrom(uint8_t, uint8_t);
| ^~~
lib\kriswiner\mpu9250.cpp: In member function 'float MPU9250::getMres(uint8_t)':
lib\kriswiner\mpu9250.cpp:207:1: error: control reaches end of non-void function [-Werror=return-type]
207 | }
| ^
lib\kriswiner\mpu9250.cpp: In member function 'float MPU9250::getGres(uint8_t)':
lib\kriswiner\mpu9250.cpp:229:1: error: control reaches end of non-void function [-Werror=return-type]
229 | }
| ^
lib\kriswiner\mpu9250.cpp: In member function 'float MPU9250::getAres(uint8_t)':
lib\kriswiner\mpu9250.cpp:252:1: error: control reaches end of non-void function [-Werror=return-type]
252 | }
| ^
cc1plus.exe: some warnings being treated as errors
[.pio\build\wemos\lib99d\kriswiner\MPU9250.cpp.o] Error 1
.pio\libdeps\wemos\MPU6050\src\MPU6050.cpp: In member function 'bool MPU6050::writeMemoryBlock(const uint8_t, uint16_t, uint8_t, uint8_t, bool, bool)':
.pio\libdeps\wemos\MPU6050\src\MPU6050.cpp:3047:25: warning: 'progBuffer' may be used uninitialized in this function [-Wmaybe-uninitialized]
3047 | if (useProgMem) free(progBuffer);
| ~~^~~~~~
.pio\libdeps\wemos\MPU6050\src\MPU6050.cpp:3005:23: warning: 'verifyBuffer' may be used uninitialized in this function [-Wmaybe-uninitialized]
3005 | if (verify && verifyBuffer) {
| ^~~~
.pio\libdeps\wemos\MPU6050\src\MPU6050.cpp: In member function 'bool MPU6050::writeDMPConfigurationSet(const uint8_t, uint16_t, bool)':
.pio\libdeps\wemos\MPU6050\src\MPU6050.cpp:3125:25: warning: 'progBuffer' may be used uninitialized in this function [-Wmaybe-uninitialized]
3125 | if (useProgMem) free(progBuffer);
| ~~^~~~~~
lib\kriswiner\hwheadtrackmpu9250.cpp: In member function 'virtual void HWHeadTrackmpu9250::setup(ArduinoJson::JsonObject)':
lib\kriswiner\hwheadtrackmpu9250.cpp:116:40: warning: 'void HWHeadTrackmpu9250_dmpDataReady()' is deprecated: Use IRAM_ATTR in place of ICACHE_RAM_ATTR to move functions into IRAM [-Wdeprecated-declarations]
116 | attachInterrupt(INTERRUPT_PIN, HWHeadTrackmpu9250_dmpDataReady, RISING); // define interrupt for intPin output of MPU9250
| ^~~~~~~
lib\kriswiner\hwheadtrackmpu9250.cpp:16:22: note: declared here
16 | void ICACHE_RAM_ATTR HWHeadTrackmpu9250_dmpDataReady() {
| ^~~~~~~
lib\kriswiner\hwheadtrackmpu9250.cpp:116:79: warning: 'void HWHeadTrackmpu9250_dmpDataReady()' is deprecated: Use IRAM_ATTR in place of ICACHE_RAM_ATTR to move functions into IRAM [-Wdeprecated-declarations]
116 | attachInterrupt(INTERRUPT_PIN, HWHeadTrackmpu9250_dmpDataReady, RISING); // define interrupt for intPin output of MPU9250
| ^
lib\kriswiner\hwheadtrackmpu9250.cpp:16:22: note: declared here
16 | void ICACHE_RAM_ATTR HWHeadTrackmpu9250_dmpDataReady() {
| ^~~~~~~
================================================================== [FAILED] Took 16.87 seconds ==================================================================
The terminal process "C:\Users\skyguardian.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
I managed to get this working here, had to change some stuff in the code & dependencies https://github.com/rvt/headtracker/pull/4
Hello, I'm still new to VSC and platformIO environment. I was trying to compile this code, but it seems I have hit a roadblock here. Before this, I got an error due to
https://github.com/tzapu/WiFiManager#development
but this problem is fixed by changing the URL. However, for this case I don't know what to do. Help will be appreciated :)`> Executing task: C:\Users\skyguardian.platformio\penv\Scripts\platformio.exe run <
Processing wemos (platform: espressif8266; framework: arduino; board: esp01_1m) -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via
-v, --verbose
option CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp01_1m.html PLATFORM: Espressif 8266 (3.2.0) > Espressif Generic ESP8266 ESP-01 1M HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash PACKAGES:25 | #include "jscript.generated.h" | ^
~~~~compilation terminated. *** [.pio\build\wemos\src\main.cpp.o] Error 1 =========================================================================== [FAILED] Took 6.52 seconds =========================================================================== The terminal process "C:\Users\skyguardian.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.Terminal will be reused by tasks, press any key to close it. `