m5stack / M5CoreS3-Esphome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not compile with HASS 2024.3.1

krangchen opened this issue · comments

Hey,

The compile fails after I upgraded HASS from 2024.2.1 to 2024.3.1 (or 2024.3.3) with the following error:

Compiling .pioenvs\m5core3-wz-66aa74\lib611\M5GFX\lgfx\v1\panel\Panel_HasBuffer.cpp.o
src/main.cpp: In function 'void setup()':
src/main.cpp:677:56: error: invalid new-expression of abstract class type 'esphome::m5cores3_display::M5CoreS3Display'
m5cores3_lcd = new m5cores3_display::M5CoreS3Display();
^
In file included from src/esphome.h:30,
from src/main.cpp:3:
src/esphome\components\m5cores3_display\m5cores3_display.h:7:7: note: because the following virtual functions are pure within 'esphome::m5cores3_display::M5CoreS3Display':
class M5CoreS3Display : public display::Display {
^~~~~~~~~~~~~~~
In file included from src/esphome.h:18,
from src/main.cpp:3:
src/esphome\components\display\display.h:636:15: note: 'virtual int esphome::display::Display::get_height_internal()'
virtual int get_height_internal() = 0;
^~~~~~~~~~~~~~~~~~~
src/esphome\components\display\display.h:637:15: note: 'virtual int esphome::display::Display::get_width_internal()'
virtual int get_width_internal() = 0;
^~~~~~~~~~~~~~~~~~
*** [.pioenvs\m5core3-wz-66aa74\src\main.cpp.o] Error 1

Anybody to fix?

@krangchen
Did you try to post a message on M5Stack Discord?

Same issue for me:

Dependency Graph
|-- AsyncTCP-esphome @ 2.1.3
|-- M5GFX @ 0.1.14
|-- M5Unified @ 0.1.13
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.1.0
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.4

logs_cores3-voice-assistant_compile.txt

@krangchen Did you try to post a message on M5Stack Discord?

Can do, seems like I can soon start collecting Discord Server to hang out with.
But if that's easier to get the developers/maintainers attention, I'd rather do that. Thanks for the link, though :)

So near & yet so far, same issue here. Any ideas welcome

HASS 2024.4.x with ESPHome 2024.3.2 also not working...

Has repo this been abandoned? If so time to move on maybe?

Looks like, still no success in compiling
In received the Espressif version, way better support there. Luckily I ordered one each and can now make a decision on e.g. support where to spent my money on ;)

/e: At least somebody was assigned to it. Maybe give it another chance...

Hi, i'll check

I know this probably isn't the correct way to fix the problem, but I was able to get the yaml to compile an run by changing the display section to this:

`spi:
clk_pin: GPIO36
mosi_pin: GPIO37

display:

  • platform: ili9xxx
    id: m5cores3_lcd
    model: M5Stack
    dimensions: 320x240
    cs_pin: GPIO3
    dc_pin: GPIO35
    update_interval: never`