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

    Error compiling for board M5Stack-Core2.

    Core 2
    2
    7
    11.3k
    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
      ganeyvim
      last edited by

      Have a newly developed Arduino M5Core2 problem.
      I hope the following is clear enough.
      Uflow sketches for Core2 and stick c plus ..... NO PROBLEMS
      Arduino programs for Stick C plus ..... NO PROBLEMS
      Arduino for Core2 with #include <M5Stack.h> compile and run , but no display on lcd
      Arduino for Core2 with #include <M5core2.h> = Error compiling for board M5Stack-Core2.
      Have reinstalled all Arduino libraries and M5 software
      Any help would be very appreciated

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @ganeyvim

        a typo? It should be #include <M5Core2.h> - uppercase C. If the issue persists, could you share the compiling error you get?

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        G 1 Reply Last reply Reply Quote 0
        • G
          ganeyvim @felmue
          last edited by

          @felmue

          G 1 Reply Last reply Reply Quote 0
          • G
            ganeyvim @ganeyvim
            last edited by

            The typo was just in this post.
            The include is definitely #include <M5Core2.h, and the compile error is
            " Error compiling for board M5Stack-Core2"

            1 Reply Last reply Reply Quote 0
            • felmueF
              felmue
              last edited by

              Hello @ganeyvim

              I admit I am not that familiar with the Arduino IDE, but I would be surprised if there wasn't a more verbose error log. 'Error compiling for board M5Stack-Core2' by itself is not very helpful so I suspect that is only the summary of the error.

              Thanks
              Felix

              GPIO translation table M5Stack / M5Core2
              Information about various M5Stack products.
              Code examples

              G 1 Reply Last reply Reply Quote 0
              • G
                ganeyvim @felmue
                last edited by ganeyvim

                @felmue
                Thanks for taking an interest. I am using the default libraries and samples without any mods or "improvements on my part"

                Arduino: 1.8.15 (Windows 7), Board: "M5Stack-Core2, Enabled, Default (2 x 6.5 MB app, 3.6 MB SPIFFS), 240MHz (WiFi/BT), 115200, None"

                In file included from D:\My Documents\Arduino\libraries\M5Core2\src/M5Core2.h:76,
                from
                D:\My Documents\Arduino\libraries\M5Core2\examples\Basics\display\display.ino:13:
                D:\My Documents\Arduino\libraries\M5Core2\src/M5Display.h:117:12:
                error: 'vector' in namespace 'std' does not name a template type
                std::vector<DisplayState> _displayStateStack; ^~~~~~ D:\My Documents\Arduino\libraries\M5Core2
                etc etc

                1 Reply Last reply Reply Quote 0
                • felmueF
                  felmue
                  last edited by

                  Hello @ganeyvim

                  ok, I think maybe the 'vector' library is missing.

                  Maybe you'll need to add it manually to your project? See here.

                  Thanks
                  Felix

                  GPIO translation table M5Stack / M5Core2
                  Information about various M5Stack products.
                  Code examples

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