🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Visual Code and M5StamPLC with new M5Unified

    Arduino
    1
    2
    169
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      GermanSheepDog
      last edited by GermanSheepDog

      Hello,

      I use M5StamPLC under Visual Code with this platform.ini: Topic 7784.

      Since 10 hours ago there is the new version 0.2.8 of M5Unified. With a short test program I got this errors:

      Compiling .pio/build/xxx/libad7/M5Unified/utility/power/INA226_Class.cpp.o
      Archiving .pio/build/xxx/lib056/libM5GFX.a
      Compiling .pio/build/xxx/libad7/M5Unified/utility/power/INA3221_Class.cpp.o
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:78:12: error: 'board_M5CardputerADV' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
       { board_t::board_M5CardputerADV,GPIO_NUM_9 ,GPIO_NUM_8  , GPIO_NUM_1 ,GPIO_NUM_2  },
                  ^~~~~~~~~~~~~~~~~~~~
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:82:12: error: 'board_M5AtomEchoS3R' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
       { board_t::board_M5AtomEchoS3R, GPIO_NUM_0 ,GPIO_NUM_45 , GPIO_NUM_1 ,GPIO_NUM_2  },
                  ^~~~~~~~~~~~~~~~~~~
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:151:12: error: 'board_M5CardputerADV' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
       { board_t::board_M5CardputerADV,GPIO_NUM_40, GPIO_NUM_14, GPIO_NUM_39, GPIO_NUM_12 },
                  ^~~~~~~~~~~~~~~~~~~~
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:178:12: error: 'board_M5CardputerADV' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
       { board_t::board_M5CardputerADV,GPIO_NUM_21 },
                  ^~~~~~~~~~~~~~~~~~~~
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp: In member function 'm5::board_t m5::M5Unified::_check_boardtype(m5::board_t)':
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:1151:30: error: 'board_M5AtomEchoS3R' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
                   board = board_t::board_M5AtomEchoS3R;
                                    ^~~~~~~~~~~~~~~~~~~
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp: In member function 'void m5::M5Unified::_begin(const m5::M5Unified::config_t&)':
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:1462:19: error: 'board_M5AtomEchoS3R' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
           case board_t::board_M5AtomEchoS3R:
                         ^~~~~~~~~~~~~~~~~~~
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:1478:19: error: 'board_M5CardputerADV' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
           case board_t::board_M5CardputerADV:
                         ^~~~~~~~~~~~~~~~~~~~
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp: In member function 'void m5::M5Unified::_begin_spk(m5::M5Unified::config_t&)':
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:1587:21: error: 'board_M5CardputerADV' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
             case board_t::board_M5CardputerADV:
                           ^~~~~~~~~~~~~~~~~~~~
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:1768:21: error: 'board_M5AtomEchoS3R' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
             case board_t::board_M5AtomEchoS3R:
                           ^~~~~~~~~~~~~~~~~~~
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:1839:21: error: 'board_M5CardputerADV' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
             case board_t::board_M5CardputerADV:
                           ^~~~~~~~~~~~~~~~~~~~
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:1847:34: error: 'board_M5CardputerADV' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
                 if (_board == board_t::board_M5CardputerADV) {
                                        ^~~~~~~~~~~~~~~~~~~~
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp: In member function 'virtual void m5::M5Unified::update()':
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:2232:19: error: 'board_M5CardputerADV' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
           case board_t::board_M5CardputerADV:
                         ^~~~~~~~~~~~~~~~~~~~
      .pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:2241:19: error: 'board_M5AtomEchoS3R' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
           case board_t::board_M5AtomEchoS3R:
                         ^~~~~~~~~~~~~~~~~~~
      Compiling .pio/build/xxx/libad7/M5Unified/utility/power/IP5306_Class.cpp.o
      Compiling .pio/build/xxx/libfc2/FS/FS.cpp.o
      *** [.pio/build/xxx/libad7/M5Unified/M5Unified.cpp.o] Error 1
      

      I try to use the version 0.2.7 in platform.ini:

      lib_deps = 
      	M5StamPLC=https://github.com/m5stack/M5StamPLC
      	M5Unified=https://github.com/m5stack/M5Unified^0.2.7
      

      It didn't work. The version 0.2.7 and 0.2.8 was used and I got the same errors.

      Who can help?

      1 Reply Last reply Reply Quote 0
      • G
        GermanSheepDog
        last edited by GermanSheepDog

        Hello,

        I've gotten a little closer to the problem. First, I performed a full clean in Visual Studio using platformio AND deactivated the entry for M5Unified. The new M5Unified@0.2.8 continued to load:

        
        Processing m5stampplc-test (platform: espressif32; board: esp32-s3-devkitc-1; framework: arduino)
        -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        Library Manager: Installing git+https://github.com/m5stack/M5StamPLC
        git version 2.43.0
        Cloning into '/Users/myname/.platformio/.cache/tmp/pkg-installing-pmi7_zhl'...
        remote: Enumerating objects: 70, done.
        remote: Counting objects: 100% (70/70), done.
        remote: Compressing objects: 100% (57/57), done.
        remote: Total 70 (delta 4), reused 29 (delta 1), pack-reused 0 (from 0)
        Receiving objects: 100% (70/70), 80.39 KiB | 2.77 MiB/s, done.
        Resolving deltas: 100% (4/4), done.
        Library Manager: M5StamPLC@1.0.0+sha.1021da5 has been installed!
        Library Manager: Resolving dependencies...
        Library Manager: Installing M5Unified @ *
        Unpacking  [####################################]  100%
        Library Manager: M5Unified@0.2.8 has been installed!
        Library Manager: Resolving dependencies...
        Library Manager: Installing M5GFX @ >=0.2.10
        Unpacking  [####################################]  100%
        Library Manager: M5GFX@0.2.10 has been installed!
        

        A look at the library.json revealed the challenge in my opinion: dependencies to "M5Unified" - No specific version of M5Unified, always the latest!

        
            "name": "M5StamPLC",
            "description": "Library for M5StamPLC",
            "keywords": "M5Stack,M5StamPLC",
            "authors": {
                "name": "M5Stack"
            },
            "repository": {
                "type": "git",
                "url": "https://github.com/M5Stack/M5StamPLC.git"
            },
            "dependencies": {
                "M5Unified": "*",
                "M5GFX": "*"
            },
            "version": "1.0.0",
            "frameworks": "arduino",
            "platforms": "espressif32"
        }
        

        Before I copy and adapt everything locally, it would certainly be helpful to adapt this. In my opinion, there must be an M5StamPLC version 1.0.1 with the new features, and the old version M5StamPLC 1.0.0 must use M5Unified version 0.2.7. Who (from M5Stack) can help me?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post