🤖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.

    Scheduled Pinned Locked Moved Core 2
    7 Posts 2 Posters 14.0k Views
    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 Offline
      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 Offline
        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 Offline
          ganeyvim @felmue
          last edited by

          @felmue

          G 1 Reply Last reply Reply Quote 0
          • G Offline
            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 Offline
              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 Offline
                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 Offline
                  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

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post