Kod źródłowy z GG

User avatar
Lector
Posts: 1641
Joined: Fri Nov 17, 2017 2:26 pm
Location: Poznań

Post

Też bym chętnie poznał tajniki kompilowania GG.

Pobrałem , uruchamiam domyślną konfigurację (nic nie zmieniam) i mam błędy z DEBUGV.
Niespełniony automatyk. :mrgreen:
https://www.youtube.com/@3D_Lamp.Photos
andras
Posts: 480
Joined: Fri Dec 30, 2016 5:51 pm

Post

U mnie na ESP32 poszło bez problemu , a ESP8266 po dodaniu wpisu :
#ifndef DEBUGV
#define DEBUGV(...) do { (void)0; } while (0)
#endif

w %userprofile%\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\include\UdpContext.h

jak podpowiedział krycha88 :)

ale niestety ESP32S2 mini nie idą
rafalekkalwak@wp.pl
Posts: 665
Joined: Mon Feb 06, 2023 8:56 am

Post

W teorii to po ściągnięciu można po prostu skompilować, chyba ze cos krycha namieszał.

Dorzucę to do projektu jako readme.md kiedyś a póki co:
1. Wybrać odpowiednie środowisko, przez odkomentowanie, u mnie GUI_Generic_ESP32 dla DevKit :

Code: Select all

[platformio]
default_envs = 
;                 GUI_Generic_1MB
;                 GUI_Generic_1MB-en  
;                 GUI_Generic_2MB 
;                 GUI_Generic_4MB
;                 GUI_Generic_minimal
;                 GUI_Generic_lite
;                 GUI_Generic_sensors
;                 GUI_Generic_DEBUG
;                 GUI_Generic_blank
                 GUI_Generic_ESP32
2. Wybrać flagi odpowiadające funkcjonalnością które chcecie mieć - to jest 1:1 tego co jest w https://gui-generic-builder.supla.io/, tylko po angielsku, też przez odkomentowanie

Code: Select all

[common]
build_flags =   
                ;-fno-exceptions
                ;-Wno-sign-compare
                ;-Wno-unused-but-set-variable
                ;-Wno-unused-variable
                -D NDEBUG
                -D MIMETYPE_MINIMAL
                -D ATOMIC_FS_UPDATE
                -D BEARSSL_SSL_BASIC
                -D TEMPLATE_BOARD_JSON
                -D OPTIONS_HASH='"e3bc65278b88a589d06c3f8316cf0e3b"'
                -D BUILD_VERSION='"7.10.12"'
                -D SUPLA_ENABLE_GUI
                ; -D SUPLA_ENABLE_SSL
                -D SUPLA_CONFIG
                -D SUPLA_OTA
                ; -D SUPLA_RELAY
                ; -D SUPLA_BUTTON
                ; -D SUPLA_ACTION_TRIGGER
                ; -D SUPLA_LIMIT_SWITCH
                ; -D SUPLA_ROLLERSHUTTER
                -D SUPLA_DS18B20
3. Jak się chce coś nowego dłubać to dodać do listy i jednorazowo odkomentować biblioteki w tej sekcji, wtedy pobierze te biblioteki - normalnie wszystkie potrzebne są zaszyte w katalogu lib:

Code: Select all

[env]
lib_deps = 
	;milesburton/DallasTemperature@^3.9.1
	;adafruit/DHT sensor library@^1.4.0
	;paulstoffregen/OneWire@^2.3.5
	;adafruit/Adafruit BME280 Library@^2.1.1
	;closedcube/ClosedCube SHT31D@^1.5.1
	;adafruit/Adafruit Si7021 Library@^1.3.0
    ;xoseperez/HLW8012 @ ^1.1.1
    ;RobTillaart/MS5611@^0.3.9
    ;lsatan/SmartRC-CC1101-Driver-Lib@^2.5.7
    ;adafruit/Adafruit AHTX0@^2.0.5
4. Dla wybranego środowiska z punktu 1 można sobie coś nadpisać, jak np. rodzaj płytki (parametr board), czy prędkość komunikacji po serialu. Boardy można sobie przeglądać w Platformio albo w necie na stronach związanych z Arduino

Code: Select all

[env:GUI_Generic_ESP32]
platform = espressif32@^6.3.2
platform_packages =
    framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.9
board = esp32dev
framework = arduino
monitor_speed = 115200
board_build.f_cpu = 240000000L
board_build.flash_mode = dout
board_build.f_flash = 80000000L
board_build.partitions = min_spiffs.csv
build_flags =   ${common.build_flags}
                ;-D CORE_DEBUG_LEVEL=0  
Co do ESP32S2 mini to nie wiem, użył bym pierwszego wyniku z googla :P Tak prawdę mówiąc te płytki w większości to jeden pies i build GUI_Generic_ESP32 powinien działać, jak nie działa to sobie trzeba zmienić board bo wtedy będzie inny układ GPIO
https://docs.platformio.org/en/latest/b ... _mini.html

Jak się nie kompiluje to pokażcie co się burzy, na temat 82XX się nie wypowiadam bo nie mam i uważam, że jest wiele mądrzejszych płytek.
User avatar
Lector
Posts: 1641
Joined: Fri Nov 17, 2017 2:26 pm
Location: Poznań

Post

rafalekkalwak@wp.pl wrote: Fri Feb 02, 2024 5:56 am W teorii to po ściągnięciu można po prostu skompilować, chyba ze cos krycha namieszał.
Dla takich ustawień co podałeś:

Code: Select all

Building in release mode
Compiling .pio\build\GUI_Generic_ESP32\src\GUI-Generic.ino.cpp.o
Compiling .pio\build\GUI_Generic_ESP32\src\GUIGenericCommon.cpp.o
Compiling .pio\build\GUI_Generic_ESP32\src\Markup.cpp.o
xtensa-esp32-elf-g++: error: src/GUI-Generic.ino.cpp: No such file or directory
xtensa-esp32-elf-g++: fatal error: no input files
compilation terminated.
Compiling .pio\build\GUI_Generic_ESP32\src\SuplaConditions.cpp.o
Compiling .pio\build\GUI_Generic_ESP32\src\SuplaConfigESP.cpp.o
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
Compiling .pio\build\GUI_Generic_ESP32\src\SuplaConfigManager.cpp.o
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
Compiling .pio\build\GUI_Generic_ESP32\src\SuplaDeviceGUI.cpp.o
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
Compiling .pio\build\GUI_Generic_ESP32\src\SuplaTemplateBoard.cpp.o
*** [.pio\build\GUI_Generic_ESP32\src\GUI-Generic.ino.cpp.o] Error 1
*** [.pio\build\GUI_Generic_ESP32\src\GUIGenericCommon.cpp.o] Error 1
*** [.pio\build\GUI_Generic_ESP32\src\Markup.cpp.o] Error 1
*** [.pio\build\GUI_Generic_ESP32\src\SuplaConditions.cpp.o] Error 1
*** [.pio\build\GUI_Generic_ESP32\src\SuplaConfigESP.cpp.o] Error 1
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
*** [.pio\build\GUI_Generic_ESP32\src\SuplaConfigManager.cpp.o] Error 1
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
*** [.pio\build\GUI_Generic_ESP32\src\SuplaDeviceGUI.cpp.o] Error 1
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
*** [.pio\build\GUI_Generic_ESP32\src\SuplaTemplateBoard.cpp.o] Error 1
====================================================================================== [FAILED] Took 34.89 seconds ======================================================================================
Environment        Status    Duration
-----------------  --------  ------------
GUI_Generic_ESP32  FAILED    00:00:34.886
================================================================================= 1 failed, 0 succeeded in 00:00:34.886 =================================================================================
Oczywiście używam Visual Studio Code.
Niespełniony automatyk. :mrgreen:
https://www.youtube.com/@3D_Lamp.Photos
rafalekkalwak@wp.pl
Posts: 665
Joined: Mon Feb 06, 2023 8:56 am

Post

Lector wrote: Fri Feb 02, 2024 5:03 pm
rafalekkalwak@wp.pl wrote: Fri Feb 02, 2024 5:56 am W teorii to po ściągnięciu można po prostu skompilować, chyba ze cos krycha namieszał.
Dla takich ustawień co podałeś:

Code: Select all

Building in release mode
Compiling .pio\build\GUI_Generic_ESP32\src\GUI-Generic.ino.cpp.o
Compiling .pio\build\GUI_Generic_ESP32\src\GUIGenericCommon.cpp.o
Compiling .pio\build\GUI_Generic_ESP32\src\Markup.cpp.o
xtensa-esp32-elf-g++: error: src/GUI-Generic.ino.cpp: No such file or directory
xtensa-esp32-elf-g++: fatal error: no input files
compilation terminated.
Compiling .pio\build\GUI_Generic_ESP32\src\SuplaConditions.cpp.o
Compiling .pio\build\GUI_Generic_ESP32\src\SuplaConfigESP.cpp.o
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
Compiling .pio\build\GUI_Generic_ESP32\src\SuplaConfigManager.cpp.o
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
Compiling .pio\build\GUI_Generic_ESP32\src\SuplaDeviceGUI.cpp.o
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
Compiling .pio\build\GUI_Generic_ESP32\src\SuplaTemplateBoard.cpp.o
*** [.pio\build\GUI_Generic_ESP32\src\GUI-Generic.ino.cpp.o] Error 1
*** [.pio\build\GUI_Generic_ESP32\src\GUIGenericCommon.cpp.o] Error 1
*** [.pio\build\GUI_Generic_ESP32\src\Markup.cpp.o] Error 1
*** [.pio\build\GUI_Generic_ESP32\src\SuplaConditions.cpp.o] Error 1
*** [.pio\build\GUI_Generic_ESP32\src\SuplaConfigESP.cpp.o] Error 1
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
*** [.pio\build\GUI_Generic_ESP32\src\SuplaConfigManager.cpp.o] Error 1
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
*** [.pio\build\GUI_Generic_ESP32\src\SuplaDeviceGUI.cpp.o] Error 1
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
*** [.pio\build\GUI_Generic_ESP32\src\SuplaTemplateBoard.cpp.o] Error 1
====================================================================================== [FAILED] Took 34.89 seconds ======================================================================================
Environment        Status    Duration
-----------------  --------  ------------
GUI_Generic_ESP32  FAILED    00:00:34.886
================================================================================= 1 failed, 0 succeeded in 00:00:34.886 =================================================================================
Oczywiście używam Visual Studio Code.
A to akurat znam :D

Masz pomieszane wersje płytek i bibliotek pomiędzy Arduino i Platform.io. albo kilkoma projektami w Platform.io
Ja w takim układzie wywaliłem wszystko z katalogów :
C:\Users\UŻYTKOWNIK\.platformio\packages i platforms

i pozwoliłem mu pobrać ponownie
User avatar
Lector
Posts: 1641
Joined: Fri Nov 17, 2017 2:26 pm
Location: Poznań

Post

rafalekkalwak@wp.pl wrote: Fri Feb 02, 2024 5:13 pm Masz pomieszane wersje płytek i bibliotek pomiędzy Arduino i Platform.io. albo kilkoma projektami w Platform.io
Ja w takim układzie wywaliłem wszystko z katalogów :
C:\Users\UŻYTKOWNIK\.platformio\packages i platforms

i pozwoliłem mu pobrać ponownie
Jesteś geniuszem, już wcześniej pisałem ze nie mogę skompilować i mam błędy (w innym temacie) i nie było pomocy.
Tym bardziej ze inne rzeczy mi się kompilowały, ale GG nie chciało ruszyć.
Teraz kompilację przechodzą gładko.

Zapewne będę miał dodatkowe pytania co do indywidualnych zależności, ale jak już będę miał wenę na grzebanie swojego firmware.
To się odezwę na PW.
Niespełniony automatyk. :mrgreen:
https://www.youtube.com/@3D_Lamp.Photos
andras
Posts: 480
Joined: Fri Dec 30, 2016 5:51 pm

Post

Też usunąłem packages i platforms :) i nie mogę poradzić sobie z ESP32S2 mini


Ustawienia płytki esp32s2 mini mam takie :


[env:GUI_Generic_ESP32S2]
platform = espressif32
board = esp32dev
framework = arduino
board_build.mcu = esp32s2
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.14
board_build.f_cpu = 240000000L
monitor_speed = 115200

Wyskakuje błąd :

Code: Select all

Processing GUI_Generic_ESP32S2 (platform: espressif32; board: esp32dev; framework: arduino)
--------------------------------------------------------------------------------------------
Tool Manager: Installing platformio/tool-mkspiffs @ ~2.230.0
Unpacking  [####################################]  100%
Tool Manager: tool-mkspiffs@2.230.0 has been installed!
Tool Manager: Installing platformio/tool-mklittlefs @ ~1.203.0
Unpacking  [####################################]  100%
Tool Manager: tool-mklittlefs@1.203.210628 has been installed!
Tool Manager: Installing platformio/tool-mkfatfs @ ~2.0.0
Unpacking  [####################################]  100%
Tool Manager: tool-mkfatfs@2.0.1 has been installed!
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (6.5.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32S2 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 @ 2.0.14+sha.44da992
 - tool-esptoolpy @ 1.40501.0 (4.5.1)
 - tool-mkfatfs @ 2.0.1
 - tool-mklittlefs @ 1.203.210628 (2.3)
 - tool-mkspiffs @ 2.230.0 (2.30)
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
 - toolchain-xtensa-esp32s2 @ 8.4.0+2021r2-patch5
Converting GUI-Generic.ino
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 71 compatible libraries
Scanning dependencies...
Dependency Graph
|-- SuplaDeviceExtensions @ 2.3.3
|-- SuplaDevice @ 23.11
|-- FS @ 2.0.0
|-- SPIFFS @ 2.0.0
|-- rc-switch @ 2.6.4
|-- EEPROM @ 2.0.0
|-- WiFi @ 2.0.0
|-- PZEM-004T-v30 @ 1.1.2
|-- EspSoftwareSerial @ 8.1.0
|-- wmbus @ 2.3.3
|-- SPI @ 2.0.0
|-- Wire @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- Ticker @ 2.0.0
|-- LittleFS @ 2.0.0
|-- ArduinoJson @ 5.13.5
|-- ESP8266 and ESP32 OLED driver for SSD1306 displays @ 4.4.0
|-- WiFiClientSecure @ 2.0.0
|-- WakeOnLan @ 1.1.6
|-- LiquidCrystal_I2C
|-- Adafruit PCF8574 @ 1.1.0
|-- Improv @ 1.0.0
|-- Ethernet @ 2.0.0
|-- DallasTemperature @ 3.11.0
|-- OneWireNg @ 0.13.2
|-- Max44009 @ 0.5.2
|-- PMSerial @ 1.1.1
|-- SDM @ 2.2.2
|-- HTTPClient @ 2.0.0
|-- HTTPUpdate @ 2.0.0
|-- Update @ 2.0.0
|-- Arduino-LM75A
|-- Adafruit AHTX0 @ 2.0.5
|-- NewPing @ 1.9.1
|-- arduino-sht @ 1.2.2
Building in release mode
Compiling .pio\build\GUI_Generic_ESP32S2\src\GUI-Generic.ino.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\GUIGenericCommon.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\Markup.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaConditions.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaConfigESP.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaConfigManager.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaDeviceGUI.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaTemplateBoard.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageConfig.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageControl.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageDeviceSettings.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageDownload.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageHome.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageLimitSwitch.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageOther.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageRelay.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageSensor1Wire.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageSensorAnalog.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageSensorI2c.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageSensorSpi.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageSensors.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageTools.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageUpload.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebServer.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\boneIO\boneIO.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\boneIO\display\SSD1306.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\control\ControlGUI.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\control\PinStatusLedGUI.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\control\Pushover.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\control\ThermostatGUI.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\control\WakeOnLanRelay.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\control\deepSleep.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\display\OledButtonController.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\display\SuplaLCD.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\display\SuplaOled.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\expander\ConfigExpander.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\expander\ExpanderMCP23017.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\expander\ExpanderPCF8574.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\expander\ExpanderPCF8575.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\improv\improv_serial_component.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\network\SuplaGuiEth01.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\network\SuplaGuiWiFi.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\network\SuplaGuiWt32_eth01.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\sensor\ADE7953.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\sensor\AnalogReading.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\sensor\DS_18B20.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\sensor\DirectLinks.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\sensor\DirectLinksConnect.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\sensor\MAX6675K.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\sensor\MAX_44009.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\sensor\NTC_10K.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\sensor\PMSx003.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\sensor\SDM_120.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\sensor\SDM_630.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\sensor\SDM_ReadValues.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\sensor\VindriktningIkea.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\sensor\WmbusMeter.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\sensor\pressure_meter.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\storage\SPIFFS_confi.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\update\ParseURL.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\update\SuplaHTTPUpdateServer.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\update\UpdateBuilder.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\src\update\UpdateURL.cpp.o
Building .pio\build\GUI_Generic_ESP32S2\bootloader.bin
Compiling .pio\build\GUI_Generic_ESP32S2\lib903\Ticker\Ticker.cpp.o
esptool.py v4.5.1
Creating esp32s2 image...
Merged 1 ELF section
Successfully created esp32s2 image.
Compiling .pio\build\GUI_Generic_ESP32S2\libc7d\EspSoftwareSerial\SoftwareSerial.cpp.o
Archiving .pio\build\GUI_Generic_ESP32S2\lib903\libTicker.a
Compiling .pio\build\GUI_Generic_ESP32S2\libf8b\PZEM-004T-v30\PZEM004Tv30.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\lib9bf\SPI\SPI.cpp.o
src/src/update/UpdateBuilder.cpp: In constructor 'UpdateBuilder::UpdateBuilder(const String&)':
src/src/update/UpdateBuilder.cpp:20:50: error: 'BUILD_VERSION' was not declared in this scope
   parseURL = new ParseURL(url + "&ver=" + String(BUILD_VERSION));
                                                  ^~~~~~~~~~~~~
src/src/update/UpdateBuilder.cpp:20:50: note: suggested alternative: 'CURENT_VERSION'       
   parseURL = new ParseURL(url + "&ver=" + String(BUILD_VERSION));
                                                  ^~~~~~~~~~~~~
                                                  CURENT_VERSION
Compiling .pio\build\GUI_Generic_ESP32S2\lib4ae\Wire\Wire.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\libdf2\Adafruit_BusIO\Adafruit_BusIO_Register.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\libdf2\Adafruit_BusIO\Adafruit_I2CDevice.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\libdf2\Adafruit_BusIO\Adafruit_SPIDevice.cpp.o
*** [.pio\build\GUI_Generic_ESP32S2\src\src\update\UpdateBuilder.cpp.o] Error 1
=============================== [FAILED] Took 36.72 seconds ===============================

Environment          Status    Duration
-------------------  --------  ------------
GUI_Generic_ESP32S2  FAILED    00:00:36.715
========================== 1 failed, 0 succeeded in 00:00:36.715 ========================== 
User avatar
Lector
Posts: 1641
Joined: Fri Nov 17, 2017 2:26 pm
Location: Poznań

Post

zobacz board lolin_s2_mini dla innego projektu przechodziło
Niespełniony automatyk. :mrgreen:
https://www.youtube.com/@3D_Lamp.Photos
andras
Posts: 480
Joined: Fri Dec 30, 2016 5:51 pm

Post

zmieniłem na board = lolin_s2_mini
i dalej problem

Code: Select all

Compiling .pio\build\GUI_Generic_ESP32S2\src\GUI-Generic.ino.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\GUIGenericCommon.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\Markup.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaConditions.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaConfigESP.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaConfigManager.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaDeviceGUI.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaTemplateBoard.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageConfig.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageControl.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageDeviceSettings.cpp.o
Compiling .pio\build\GUI_Generic_ESP32S2\src\SuplaWebPageDownload.cpp.o
src/SuplaConfigESP.cpp: In member function 'HardwareSerial& SuplaConfigESP::getHardwareSerial(int8_t, int8_t)':
src/SuplaConfigESP.cpp:444:10: error: invalid initialization of reference of type 'HardwareSerial&' from expression of type 'USBCDC'
   return Serial;
          ^~~~~~
*** [.pio\build\GUI_Generic_ESP32S2\src\SuplaConfigESP.cpp.o] Error 1
=============================== [FAILED] Took 16.40 seconds ===============================

Environment          Status    Duration
-------------------  --------  ------------
GUI_Generic_ESP32S2  FAILED    00:00:16.398
========================== 1 failed, 0 succeeded in 00:00:16.398 ==========================
User avatar
Lector
Posts: 1641
Joined: Fri Nov 17, 2017 2:26 pm
Location: Poznań

Post

Robiłeś samą kompilację, czy wgrywanie do ESP?
Dwie ikony obok ciebie.

Ja zauważyłem że mam przypadki że nie pobrało wszystkiego przy samej kompilacji, jak dam wgrywanie to dopiero pobiera i przechodzi.

Po wywaleniu tych folderów, chyba tak robiłem.
Niespełniony automatyk. :mrgreen:
https://www.youtube.com/@3D_Lamp.Photos

Return to “GUI Generic”