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

    Arduino IDE Configuration for Core2

    Scheduled Pinned Locked Moved Core 2
    5 Posts 2 Posters 8.4k 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.
    • J Offline
      jdonth
      last edited by

      I have the following additional boards in my Arduino Preferences:
      https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json

      Do I need any other additional board libraries to successfully compile a Core2 project?

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

        Hello @jdonth

        that boards URL worked for me.

        Here are the steps for the M5Core2 factory test. And yes, I have speaker output and the mic works too.

        Note: I am on Ubuntu 20.04

        • Download and install Arduino IDE 1.8.19
        • Run Arduino IDE
        • Open Preferences
          • Add Additional Board Manager URL and Save
            • https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
        • Open Boards Manager
          • Search for 'M5Stack'
          • Install M5Stack v2.0.1 <-- (if you want to try an earlier version change this to let's say v1.0.8 - then you can copy all the files and skip fixing the sketch)
        • Open Library Manager
          • Search for 'M5Core2'
          • Install M5Core2 v0.1.0 (I selected install M5Core2 only)
        • Save already open Sketch as 'Core2_Factory_test'
        • Close Arduino IDE
        • Copy all M5Core2 factory test files into <home>/Arduino/Core2_Factory_test (except ft6336_fw_updater.cpp - has errors when using v2.0.1)
        • Open Arduino IDE
        • Select Board: 'M5Stack-Core2'
        • Fix Sketch (only needed when using v2.0.1):
          • In Setup():
            • comment out: ft6336_fw_updater();
          • In InitI2SSpakerOrMic():
            • after the line: tx_pin_config.data_in_num = CONFIG_I2S_DATA_IN_PIN;
            • add this line: tx_pin_config.mck_io_num = GPIO_NUM_0;
        • Compile Sketch (ignore warnings)
        • Connect M5Core2
        • Select port
        • Download and Run Sketch

        Thanks
        Felix

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

        J 2 Replies Last reply Reply Quote 0
        • J Offline
          jdonth @felmue
          last edited by

          @felmue
          OMG! It worked!!!!
          Thank you, thank you, thank you.
          Joe

          1 Reply Last reply Reply Quote 0
          • J Offline
            jdonth @felmue
            last edited by

            @felmue
            These instructions should be posted as a Core2 Sticky. They would go a long way to provide an outstanding starting point for all the new M5Core2 developers.

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

              Hello @jdonth

              happy to hear it finally works for you. Thank you for letting me know.

              Happy New Year!

              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