-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot compile on Windows #708
Comments
Which board/env are you building? Are they actually compilation errors from Platform IO, or just VSCode trying to parse the code? The latter may just be a VS Code miss configuration of VS Code and not impact building/uploading/etc |
Yes, these are build errors. It is the same for every env I try. Here is
the terminal output.
* Executing task: C:\Users\techo\.platformio\penv\Scripts\platformio.exe
debug
Processing openevse_esp32-gateway-e_dev (board: esp32-gateway; platform:
***@***.***; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose
mode can be enabled via `-v, --verbose` option
Firmware Revision: -D BUILD_TAG=local_master_ff55cf44_modified -D
BUILD_HASH=ff55cf44_modified
CONFIGURATION:
https://docs.platformio.org/page/boards/espressif32/esp32-gateway.html
PLATFORM: Espressif 32 (6.0.1) > OLIMEX ESP32-GATEWAY
HARDWARE: ESP32 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 @ 3.20006.221224 (2.0.6)
- tool-esptoolpy @ 1.40400.0 (4.4.0)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 49 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ArduinoJson @ 6.20.1
|-- ArduinoMongoose @ 0.0.18
|-- Micro Debug @ 0.0.5
|-- ConfigJson @ 0.0.5
|-- OpenEVSE @ 0.0.14
|-- ESPAL @ 0.0.3
|-- StreamSpy @ 0.0.1
|-- MicroTasks @ 0.0.3
|-- ArduinoOcpp @ 0.2.0
|-- ArduinoOcppMongoose @ 0.0.1
|-- EEPROM @ 2.0.0
|-- LittleFS_esp32 @ 1.0.5
|-- Update @ 2.0.0
|-- ArduinoOTA @ 2.0.0
|-- WiFi @ 2.0.0
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- Ethernet @ 2.0.0
|-- FS @ 2.0.0
|-- src @ 0.0.0+20210705113105
Building in debug mode
6.14.10
***@***.***;C:\Users\techo\.platformio\penv\Scripts;C:\Users\techo\.platformio\penv;C:\Users\techo\.platformio\python3;C:\Python39\Scripts\;C:\Python39\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program
Files\Common Files\Autodesk Shared\;C:\Program Files\Microsoft SQL
Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files\Microsoft
SQL
Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program
Files\PuTTY\;C:\Users\techo\Downloads\php-8.0.0-nts-Win32-vs16-x64;C:\ProgramData\ComposerSetup\bin;C:\ProgramData\chocolatey\bin;C:\Program
Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program
Files\Git\cmd;C:\Users\techo\Documents\GitHub\MinGW64;C:\cygnus\cygwin-b20\H-i586-cygwin32\bin;C:\Program
Files\CMake\bin;C:\Users\techo\AppData\Local\Programs\Python\Python311;C:\Users\techo\AppData\Local\Programs\Python\Python311\Scripts;C:\Program
Files\nodejs\;C:\Users\techo\AppData\Local\Microsoft\WindowsApps;C:\Users\techo\.dotnet\tools;C:\Users\techo\AppData\Roaming\Composer\vendor\bin;C:\Users\techo\AppData\Local\Programs\Microsoft
VS
Code\bin;C:\Users\techo\AppData\Local\GitHubDesktop\bin;C:\Users\techo\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin;";C:\Users\techo\Documents\GitHub\esp-idf\tools";C:\Users\techo\AppData\Roaming\npm
Compiling .pio\build\openevse_esp32-gateway-e_dev\src\app_config.cpp.o
Compiling .pio\build\openevse_esp32-gateway-e_dev\src\energy_meter.cpp.o
Compiling .pio\build\openevse_esp32-gateway-e_dev\src\event_log.cpp.o
Compiling .pio\build\openevse_esp32-gateway-e_dev\src\main.cpp.o
Compiling .pio\build\openevse_esp32-gateway-e_dev\src\manual.cpp.o
Compiling .pio\build\openevse_esp32-gateway-e_dev\src\mqtt.cpp.o
Compiling .pio\build\openevse_esp32-gateway-e_dev\src\net_manager.cpp.o
Compiling .pio\build\openevse_esp32-gateway-e_dev\src\ocpp.cpp.o
src/energy_meter.cpp: In member function 'bool EnergyMeter::load()':
src/energy_meter.cpp:372:15: error: 'LittleFS' was not declared in this
scope
File file = LittleFS.open(ENERGY_METER_FILE, "r");
^~~~~~~~
src/energy_meter.cpp:372:15: note: suggested alternative: 'bitClear'
File file = LittleFS.open(ENERGY_METER_FILE, "r");
^~~~~~~~
bitClear
src/energy_meter.cpp: In member function 'bool
EnergyMeter::write(EnergyMeterData&)':
src/energy_meter.cpp:430:15: error: 'LittleFS' was not declared in this
scope
File file = LittleFS.open(ENERGY_METER_FILE, "w");
^~~~~~~~
src/energy_meter.cpp:430:15: note: suggested alternative: 'bitClear'
File file = LittleFS.open(ENERGY_METER_FILE, "w");
^~~~~~~~
bitClear
src/event_log.cpp: In member function 'void EventLog::begin()':
src/event_log.cpp:43:19: error: 'LittleFS' was not declared in this scope
File eventLog = LittleFS.open(EVENTLOG_BASE_DIRECTORY);
^~~~~~~~
src/event_log.cpp:43:19: note: suggested alternative: 'bitClear'
File eventLog = LittleFS.open(EVENTLOG_BASE_DIRECTORY);
^~~~~~~~
bitClear
src/event_log.cpp: In member function 'void EventLog::log(EventType,
EvseState, uint8_t, uint32_t, uint32_t, double, uint32_t, double, double,
uint8_t, uint8_t)':
src/event_log.cpp:92:20: error: 'LittleFS' was not declared in this scope
File eventFile = LittleFS.open(eventFilename, FILE_APPEND);
^~~~~~~~
src/event_log.cpp:92:20: note: suggested alternative: 'bitClear'
File eventFile = LittleFS.open(eventFilename, FILE_APPEND);
^~~~~~~~
bitClear
src/event_log.cpp: In member function 'void EventLog::enumerate(uint32_t,
std::function<void(String, EventType, const String&, EvseState, unsigned
char, unsigned int, unsigned int, double, unsigned int, double, double,
unsigned char, unsigned char)>)':
src/event_log.cpp:143:20: error: 'LittleFS' was not declared in this scope
File eventFile = LittleFS.open(filename);
^~~~~~~~
src/event_log.cpp:143:20: note: suggested alternative: 'bitClear'
File eventFile = LittleFS.open(filename);
^~~~~~~~
bitClear
*** [.pio\build\openevse_esp32-gateway-e_dev\src\energy_meter.cpp.o] Error 1
*** [.pio\build\openevse_esp32-gateway-e_dev\src\event_log.cpp.o] Error 1
src/main.cpp: In function 'void setup()':
src/main.cpp:117:7: error: 'LittleFS' was not declared in this scope
if(!LittleFS.begin(FORMAT_LITTLEFS_IF_FAILED)){
^~~~~~~~
src/main.cpp:117:7: note: suggested alternative: 'bitClear'
if(!LittleFS.begin(FORMAT_LITTLEFS_IF_FAILED)){
^~~~~~~~
bitClear
src/app_config.cpp: In function 'void config_reset()':
src/app_config.cpp:569:3: error: 'LittleFS' was not declared in this scope
LittleFS.format();
^~~~~~~~
src/app_config.cpp:569:3: note: suggested alternative: 'bitClear'
LittleFS.format();
^~~~~~~~
bitClear
*** [.pio\build\openevse_esp32-gateway-e_dev\src\main.cpp.o] Error 1
*** [.pio\build\openevse_esp32-gateway-e_dev\src\app_config.cpp.o] Error 1
======================================================================================
[FAILED] Took 26.53 seconds
======================================================================================
Environment Status Duration
---------------------------- -------- ------------
openevse_esp32-gateway-e_dev FAILED 00:00:26.528
=================================================================================
1 failed, 0 succeeded in 00:00:26.528
=================================================================================
* The terminal process
"C:\Users\techo\.platformio\penv\Scripts\platformio.exe 'debug'" terminated
with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
ᐧ
…On Wed, Aug 2, 2023 at 6:53 PM Jeremy Poulter ***@***.***> wrote:
Which board/env are you building? Are they actually compilation errors
from Platform IO, or just VSCode trying to parse the code? The latter may
just be a VS Code miss configuration of VS Code and not impact
building/uploading/etc
—
Reply to this email directly, view it on GitHub
<#708 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB5YNGRK5L7ZZJWIU2ZEXZTXTLK5RANCNFSM6AAAAAA3BRLBRU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Looks like you are using Windows, so could be an issue with that. Will take a look. You could also try installing Ubuntu via WSL and building via that? |
I had the same issue but assumed that it was due to my local PIO installation (also Windows). As a workaround, I added the following line into platformio.ini (e.g. line 50). -D LittleFS=LITTLEFS |
IIRC |
Thank you! This was very helpful and resoled this issue. Thank you Jeremy and Matthew. |
Let's keep this open till we have a proper solution for building on Windows |
I am still having other issues with the code compilation, a different issue. Should we discuss it here, or not? In file included from C:/Users/techo/.platformio/lib/src/Wire.cpp:32: openevse_esp32-gateway-e_dev FAILED 00:02:29.545 |
That file is auto generated by a python script, is using windows |
Update: #682 resolves the LITTLEFS issue. |
A further outstanding issue on Windows is the upload command in the platformio.ini (env:openevse_wifi_v1):
This only works on Linux. Since I prefer working with the Serial flasher anyway, I don't have a fix at hand. |
I would just use a different board for dev work, the OpenEVSE board is not great for dev work as it only has the one serial port exposed |
Good tip, the extra debug port would be very handy and I will change my dev setup then. Apart from that line in the platformio.ini I did not face any further issues on Windows. |
I have also some issue when compiling on window. But before changing any thing my first test was to verify that I was able to recompile the firmware for that I'm working with Visual Studio Code under windows, I download https://github.com/OpenEVSE/openevse_esp32_firmware/releases/download/v5.0.2/openevse_wifi_v1.bin open the project and compile it with out any modification. Processing openevse_wifi_v1 (board: esp32dev; platform: [email protected]; framework: arduino)Verbose mode can be enabled via
Environment Status Duration openevse_wifi_v1 SUCCESS 00:00:22.034 and I test the generated firmware.bin file by install it on my EmonEVSE WiFi Connected EV Charging Station (Type-2). downloading back v5.0.2 openevse_wifi_v1.bin file make the EmonEVSE work again |
For this you can just follow the instructions in the main readme file on
how download and update the GUI. Other than this, are you have any other
issues?
AW
ᐧ
…On Sun, Dec 3, 2023 at 7:21 AM zerodur12 ***@***.***> wrote:
I have also some issue when compiling on window.
My objective was to test a modification on the latest OpenEVSE WiFi
firmware v5.0.2
<https://github.com/OpenEVSE/openevse_esp32_firmware/releases/tag/v5.0.2>
to test some modification on the current_shaper.cpp
<https://github.com/OpenEVSE/openevse_esp32_firmware/blob/master/src/current_shaper.cpp>
to try to solve the shapper issue #762
<#762> by
supressing line
https://github.com/OpenEVSE/openevse_esp32_firmware/blob/e8219948309112c3fb3d73927b05120c058bfc60/src/current_shaper.cpp#L177C1-L179C3
re-compile and test.
But before changing any thing my first test was to verify that I was able
to recompile the firmware
for that I'm working with Visual Studio Code under windows, I download
https://github.com/OpenEVSE/openevse_esp32_firmware/releases/download/v5.0.2/openevse_wifi_v1.bin
open the project and compile it with out any modification.
It compile with success with some warning about GUI v2 file missing:
Processing openevse_wifi_v1 (board: esp32dev; platform: ***@***.***;
framework: arduino)
Verbose mode can be enabled via -v, --verbose option
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Firmware Revision: -D BUILD_TAG=local___modified -D BUILD_HASH=_modified
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
CONFIGURATION:
https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (6.0.1) > Espressif ESP32 Dev Module
HARDWARE: ESP32 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 @ 3.20006.221224 (2.0.6)
- tool-esptoolpy @ 1.40400.0 (4.4.0)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 48 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ArduinoJson @ 6.20.1
|-- ArduinoMongoose @ 0.0.18
|-- Micro Debug @ 0.0.5
|-- ConfigJson @ 0.0.5
|-- OpenEVSE @ 0.0.14
|-- ESPAL @ 0.0.3
|-- StreamSpy @ 0.0.1
|-- MicroTasks @ 0.0.3
|-- ArduinoOcpp @ 0.3.0
|-- ArduinoOcppMongoose @ 0.1.0
|-- Adafruit NeoPixel @ 1.11.0
|-- Adafruit MCP9808 Library @ 1.1.2
|-- EEPROM @ 2.0.0
|-- LittleFS @ 2.0.0
|-- Update @ 2.0.0
|-- ArduinoOTA @ 2.0.0
|-- WiFi @ 2.0.0
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- Ethernet @ 2.0.0
|-- FS @ 2.0.0
|-- Wire @ 2.0.0
Building in release mode
10.2.4
Warning: GUI files not found, run 'git submodule update --init'
(C:\Users\zerod\OneDrive\Documents\openEvse\openevse_esp32_firmware-5.0.2\openevse_esp32_firmware-5.0.2\gui-v2)
***@***.***;C:\Users\zerod.platformio\penv\Scripts;C:\Users\zerod.platformio\penv;C:\Users\zerod.platformio\python3;C:\WinAVR-20100110\bin;C:\WinAVR-20100110\utils\bin;C:\Program
Files\MATLAB\R2023b\bin;C:\Program Files\nodejs;C:\Program
Files\Git\cmd;C:\Users\zerod\AppData\Local\Microsoft\WindowsApps;C:\Users\zerod\AppData\Local\Programs\Python\Python38-32\Scripts;C:\Users\zerod\AppData\Local\Programs\Python\Python38-32;C:\Program
Files (x86)\Intel\Trace Analyzer and Collector\9.0.3.050\dll;C:\Program
Files\Intel\WiFi\bin;C:\Program Files\Common
Files\Intel\WirelessCommon;C:\Users\zerod\AppData\Local\Programs\Microsoft
VS
Code\bin;C:\Users\zerod\AppData\Roaming\npm;C:\Users\zerod\AppData\Local\GitHubDesktop\bin
Retrieving maximum program size
.pio\build\openevse_wifi_v1\firmware.elf
Checking size .pio\build\openevse_wifi_v1\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project
Inspect"
RAM: [== ] 18.8% (used 61544 bytes from 327680 bytes)
Flash: [========= ] 93.9% (used 1846321 bytes from 1966080 bytes)
=====================================================================
[SUCCESS] Took 22.03 seconds
=====================================================================
Environment Status Duration
------------------------------
openevse_wifi_v1 SUCCESS 00:00:22.034
====================================================================== 1
succeeded in 00:00:22.034
======================================================================
and I test the generated firmware.bin file by install it on my EmonEVSE
WiFi Connected EV Charging Station (Type-2).
After the OTA Download of the firmware everething seems to be ok and the
interface was nominal. But if I switch off and then switch on the EmonEVSE
the EmonEVSE stop at the 'initialisation phase' on the display and don't go
further
downloading back v5.0.2 openevse_wifi_v1.bin file make the EmonEVSE work
again
—
Reply to this email directly, view it on GitHub
<#708 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB5YNGXP2EW3KNKLMHQU7P3YHRVELAVCNFSM6AAAAAA3BRLBRWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGQ3DINBZGI>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Hi, I've spend half afternoon trying to figure this LittleFS error with v2_gui tag until I saw it was an actual issue... XD, Thanks for the fix on the littleFS @matth-x!! Found the development guide while investigating, (@zerodur12 link) it compiles nicely after installing node.js and build the GUI first... and uploads, directly from platformIO through OTA to an ESP32. Although it is working as I can see the LCD and the RGB led, and I can connect via web to the openevse, the GUI is simply not shown, no error either... just nothing in the screen. Any hint? Something I'm missing? Thanks in advance! Thanks! |
@alfredoanton82 |
Am I the only one having this issue? Wihtout any modification, if I download the Wifi files from github and try to compile it using pio I get an error "Littlefs" not found. What am I doing wrong?
The text was updated successfully, but these errors were encountered: