ESPAltherma: Build fails for M5stickc Plus 2
I have followed the instructions on the Git (first time I have used Visual Studio Code or M5stack products) and after downloading the entire code to my local disk and opening it with VSC, adjusted:
- MQTT settings
- WiFi
- Altherma model
- Sensors
Tried with environment m5stickcplus2 (later changed to m5stickcplus) , connected the M5StickC Plus2 to macOs and pressed PlatforIO:Upload, and the process failed.
Afterwards, I tried compiling the code (PlatforIO:Build) and it also fails.
I can’t determine if this is related with the ESP32 used, or some other issue with the compiled code. Happy to further troubleshoot if someone can guide me here.
I did found some errors:
Processing m5stickcplus (platform: espressif32; board: m5stick-c; framework: arduino)
--------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/m5stick-c.html
PLATFORM: Espressif 32 (6.5.0) > M5Stick-C
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.20014.231204 (2.0.14)
- 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-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 35 compatible libraries
Scanning dependencies...
Dependency Graph
|-- M5StickCPlus @ 0.1.0
|-- PubSubClient @ 2.8.0
|-- ArduinoOTA @ 2.0.0
|-- WiFi @ 2.0.0
|-- EEPROM @ 2.0.0
|-- WiFiClientSecure @ 2.0.0
Building in release mode
Compiling .pio/build/m5stickcplus/src/main.cpp.o
Compiling .pio/build/m5stickcplus/lib849/M5StickCPlus/utility/Speaker.cpp.o
Compiling .pio/build/m5stickcplus/lib849/M5StickCPlus/utility/Sprite.cpp.o
Compiling .pio/build/m5stickcplus/lib849/M5StickCPlus/utility/qrcode.c.o
src/main.cpp: In function 'void extraLoop()':
src/main.cpp:100:8: error: 'class M5StickCPlus' has no member named 'Display'
M5.Display.wakeup();
^~~~~~~
src/main.cpp:103:8: error: 'class M5StickCPlus' has no member named 'Display'
M5.Display.sleep();
^~~~~~~
src/main.cpp: In function 'void setupScreen()':
src/main.cpp:256:10: error: 'class M5Display' has no member named 'setBrightness'
M5.Lcd.setBrightness(127);
^~~~~~~~~~~~~
src/main.cpp:258:10: error: 'class M5Display' has no member named 'setFont'; did you mean 'textfont'?
M5.Lcd.setFont(&FreeSansBold12pt7b);
^~~~~~~
textfont
src/main.cpp:266:10: error: 'class M5Display' has no member named 'setFont'; did you mean 'textfont'?
M5.Lcd.setFont(&Font0);
^~~~~~~
textfont
src/main.cpp:266:19: error: 'Font0' was not declared in this scope
M5.Lcd.setFont(&Font0);
^~~~~
src/main.cpp:266:19: note: suggested alternative: 'font'
M5.Lcd.setFont(&Font0);
^~~~~
font
*** [.pio/build/m5stickcplus/src/main.cpp.o] Error 1
======================================================== [FAILED] Took 5.63 seconds ========================================================
Environment Status Duration
------------- -------- ------------
m5stickcplus FAILED 00:00:05.627
================================================== 1 failed, 0 succeeded in 00:00:05.627 ==================================================
* The terminal process "platformio 'run', '--target', 'upload', '--environment', 'm5stickcplus', '--upload-port', '/dev/cu.usbmodem575C0307011'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
About this issue
- Original URL
- State: closed
- Created 4 months ago
- Comments: 19 (4 by maintainers)
I found the reason for my M5stickc Plus 2 device not being recognized in Windows 11. It’s because my USB cable is for charge only and it doesn’t do for data as well…After I connected another USB cable, just refreshed the list of devices in Visual Studio, and here it is 😃
Apologies, all good! I used the build version from yesterday and was still getting the errors. Just downloaded, build an upload 😃 Screen shows the “Setting up wifi…” message and now time to connect the stick to the pump